2022-01-31 09:10:49 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="col12">
|
|
|
|
<?php echo $this->getData(['module', $this->getUrl(0),'posts', $this->getUrl(1), 'content']); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row verticalAlignMiddle">
|
|
|
|
<div class="col12 newsDate">
|
|
|
|
<!-- bloc signature et date -->
|
2022-05-11 08:58:38 +02:00
|
|
|
<?php
|
|
|
|
// Pour les dates suivant la langue de rédaction du site
|
|
|
|
$zone = 'Europe/Paris';
|
|
|
|
$fmt = datefmt_create(
|
|
|
|
$this->getData(['config', 'i18n', 'langBase']),
|
|
|
|
IntlDateFormatter::LONG,
|
|
|
|
IntlDateFormatter::SHORT,
|
|
|
|
$zone,
|
|
|
|
IntlDateFormatter::GREGORIAN
|
|
|
|
);
|
|
|
|
echo $module::$articleSignature . ' - ';?>
|
2022-01-31 09:10:49 +01:00
|
|
|
<i class="far fa-calendar-alt"></i>
|
2022-05-11 08:58:38 +02:00
|
|
|
<?php echo datefmt_format($fmt, strtotime( date('Y/m/d H:i:s',$this->getData(['module', $this->getUrl(0), 'posts', $this->getUrl(1), 'publishedOn'])))); ?>
|
2022-01-31 09:10:49 +01:00
|
|
|
<!-- Bloc edition -->
|
|
|
|
<?php if (
|
|
|
|
$this->getUser('password') === $this->getInput('DELTA_USER_PASSWORD')
|
|
|
|
AND
|
|
|
|
( // Propriétaire
|
|
|
|
( $this->getUser('group') === self::GROUP_ADMIN )
|
|
|
|
)
|
|
|
|
): ?>
|
|
|
|
<a href ="<?php echo helper::baseUrl() . $this->getUrl(0) . '/edit/' . $this->getUrl(1) . '/' . $_SESSION['csrf'];?>">
|
|
|
|
<?php echo template::ico('pencil');?> Editer
|
|
|
|
</a>
|
|
|
|
<?php endif; ?>
|
|
|
|
<!-- Bloc RSS-->
|
|
|
|
<?php if ($this->getData(['module',$this->getUrl(0), 'config', 'feeds'])): ?>
|
|
|
|
<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>' ;
|
|
|
|
?>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|
|
|
|
</div>
|
|
|
|
</div>
|