ZwiiCMS, le gestionnaire de site Web sans base de données. #zwii #cms #nosql #json
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
784 B

<?php if($module::$news): ?>
<div class="row">
<div class="col12">
<?php foreach($module::$news as $newsId => $news): ?>
<div class="block">
Le <?php echo utf8_encode(strftime('%d %B %Y', $news['publishedOn'])); ?>
à <?php echo utf8_encode(strftime('%H:%M', $news['publishedOn'])); ?>
<h2><?php echo $news['title']; ?></h2>
<?php echo $news['content']; ?>
<p class="signature">
<?php echo $this->getData(['user', $news['userId'], 'firstname']) . ' ' . $this->getData(['user', $news['userId'], 'lastname']); ?>
<div class="clearBoth"></div>
<?php endforeach; ?>
<?php echo $module::$pages; ?>
<?php else: ?>
<?php echo template::speech('Aucune news.'); ?>
<?php endif; ?>