2018-04-02 08:29:19 +02:00
|
|
|
<?php if($module::$news): ?>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col12">
|
|
|
|
<?php foreach($module::$news as $newsId => $news): ?>
|
|
|
|
<div class="block">
|
|
|
|
<h4>
|
2018-11-13 22:01:34 +01:00
|
|
|
Le <?php echo utf8_encode(strftime('%d %B %Y', $news['publishedOn'])); ?>
|
|
|
|
à <?php echo utf8_encode(strftime('%H:%M', $news['publishedOn'])); ?>
|
2018-04-02 08:29:19 +02:00
|
|
|
</h4>
|
|
|
|
<h2><?php echo $news['title']; ?></h2>
|
|
|
|
<?php echo $news['content']; ?>
|
2018-11-13 18:33:22 +01:00
|
|
|
<p class="signature">
|
|
|
|
<?php echo $this->getData(['user', $news['userId'], 'firstname']) . ' ' . $this->getData(['user', $news['userId'], 'lastname']); ?>
|
|
|
|
</p>
|
2018-04-02 08:29:19 +02:00
|
|
|
<div class="clearBoth"></div>
|
|
|
|
</div>
|
|
|
|
<?php endforeach; ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<?php echo $module::$pages; ?>
|
|
|
|
<?php else: ?>
|
|
|
|
<?php echo template::speech('Aucune news.'); ?>
|
|
|
|
<?php endif; ?>
|