ZwiiCMS/module/news/view/article/article.php

48 lines
1.9 KiB
PHP
Raw Normal View History

2021-04-02 15:24:30 +02:00
<div class="row">
<div class="col12">
<?php echo $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(1), 'content']); ?>
</div>
2021-04-02 15:24:30 +02:00
</div>
<div class="row verticalAlignMiddle">
2023-12-20 12:54:31 +01:00
<div class="col6 textAlignLeft">
<?php if ($this->getData(['module', $this->getUrl(0), 'config', 'buttonBack'])): ?>
<a href="<?php echo helper::baseUrl() . $this->getUrl(0); ?>">
<?php echo template::ico('left') . helper::translate('Retour'); ?>
</a>
2023-12-20 12:54:31 +01:00
<?php endif; ?>
</div>
<div class="col6 newsDate textAlignRight">
2021-04-02 15:24:30 +02:00
<!-- bloc signature et date -->
<?php echo template::ico('user'); ?>
<?php echo $module::$articleSignature . ' - '; ?>
2022-02-04 09:12:07 +01:00
<?php echo template::ico('calendar-empty'); ?>
2023-12-20 13:43:32 +01:00
<?php echo helper::dateUTF8('%d %B %Y', $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(1), 'publishedOn']), self::$siteContent) . '&nbsp' . helper::dateUTF8('%H:%M', $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(1), 'publishedOn']), self::$siteContent); ?>
2021-04-02 15:24:30 +02:00
<!-- Bloc edition -->
<?php if (
$this->getUser('password') === $this->getInput('ZWII_USER_PASSWORD')
and
( // Propriétaire
($this->getUser('group') === self::GROUP_ADMIN)
)
): ?>
2023-12-20 13:43:32 +01:00
&nbsp;-&nbsp;
<a href="<?php echo helper::baseUrl() . $this->getUrl(0) . '/edit/' . $this->getUrl(1); ?>">
2023-12-19 19:20:20 +01:00
<?php echo template::ico('pencil'); ?>
2023-12-20 12:54:31 +01:00
<?php echo helper::translate('Éditer'); ?>
</a>
<?php endif; ?>
2021-04-02 15:24:30 +02:00
<!-- Bloc RSS-->
<?php if ($this->getData(['module', $this->getUrl(0), 'config', 'feeds'])): ?>
2023-12-20 13:43:32 +01:00
&nbsp;-&nbsp;
2021-04-02 15:24:30 +02:00
<div id="rssFeed">
<a type="application/rss+xml" href="<?php echo helper::baseUrl() . $this->getUrl(0) . '/rss'; ?>"
target="_blank">
<img src='module/news/ressource/feed-icon-16.gif' />
<?php
echo '<p>' . $this->getData(['module', $this->getUrl(0), 'config', 'feedsLabel']) . '</p>';
2021-04-02 15:24:30 +02:00
?>
</a>
</div>
<?php endif; ?>
</div>
</div>