2023-09-05 15:21:01 +02:00
|
|
|
<div class="row">
|
2023-12-19 19:10:49 +01:00
|
|
|
<div class="col12">
|
|
|
|
<?php echo $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(1), 'content']); ?>
|
|
|
|
</div>
|
2023-09-05 15:21:01 +02:00
|
|
|
</div>
|
|
|
|
<div class="row verticalAlignMiddle">
|
2023-12-19 19:10:49 +01:00
|
|
|
<?php if ($this->getData(['module', $this->getUrl(0), 'config', 'buttonBack'])): ?>
|
|
|
|
<div class="col6 textAlignLeft">
|
|
|
|
<a href="<?php echo helper::baseUrl() . $this->getUrl(0); ?>">
|
|
|
|
<?php echo template::ico('left') . helper::translate('Retour'); ?>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|
|
|
|
<div class="col6 newsDate textAlignRight">
|
2023-09-05 15:21:01 +02:00
|
|
|
<!-- bloc signature et date -->
|
|
|
|
<?php echo template::ico('user'); ?>
|
2023-12-19 19:10:49 +01:00
|
|
|
<?php echo $module::$articleSignature . ' - '; ?>
|
2023-09-05 15:21:01 +02:00
|
|
|
<?php echo template::ico('calendar-empty'); ?>
|
2023-11-13 22:15:16 +01:00
|
|
|
<?php echo helper::dateUTF8('%d %B %Y', $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(1), 'publishedOn']), self::$siteContent) . ' - ' . helper::dateUTF8('%H:%M', $this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(1), 'publishedOn']), self::$siteContent); ?>
|
2023-09-05 15:21:01 +02:00
|
|
|
<!-- Bloc edition -->
|
2023-12-19 19:10:49 +01:00
|
|
|
<?php if (
|
|
|
|
$this->getUser('password') === $this->getInput('ZWII_USER_PASSWORD')
|
|
|
|
and
|
|
|
|
( // Propriétaire
|
|
|
|
($this->getUser('group') === self::GROUP_ADMIN)
|
|
|
|
)
|
|
|
|
): ?>
|
2023-12-20 12:48:44 +01:00
|
|
|
|
2023-12-19 19:10:49 +01:00
|
|
|
<a href="<?php echo helper::baseUrl() . $this->getUrl(0) . '/edit/' . $this->getUrl(1); ?>">
|
2023-12-19 19:20:22 +01:00
|
|
|
<?php echo template::ico('pencil'); ?>
|
2023-12-20 12:48:44 +01:00
|
|
|
<?php echo helper::translate('Éditer');?>
|
2023-12-19 19:10:49 +01:00
|
|
|
</a>
|
|
|
|
<?php endif; ?>
|
2023-09-05 15:21:01 +02:00
|
|
|
<!-- Bloc RSS-->
|
2023-12-19 19:10:49 +01:00
|
|
|
<?php if ($this->getData(['module', $this->getUrl(0), 'config', 'feeds'])): ?>
|
2023-09-05 15:21:01 +02:00
|
|
|
<div id="rssFeed">
|
2023-12-20 12:48:44 +01:00
|
|
|
|
2023-12-19 19:10:49 +01:00
|
|
|
<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>';
|
2023-09-05 15:21:01 +02:00
|
|
|
?>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|
|
|
|
</div>
|
|
|
|
</div>
|