forked from ZwiiCMS-Team/ZwiiCMS
34 lines
1.1 KiB
PHP
34 lines
1.1 KiB
PHP
<?php if($module::$news): ?>
|
|
<div class="row">
|
|
<div class="col3 offset9 textAlignRight">
|
|
<a type="application/rss+xml" href="<?php echo $module::$rssUrl ?> ">
|
|
<img id="rssIcon" src='module/news/ressource/feed-icon-16.gif'>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col12">
|
|
<?php foreach($module::$news as $newsId => $news): ?>
|
|
<h1 class="newsTitle">
|
|
<?php echo $news['title']; ?>
|
|
</h1>
|
|
<div class="newsContent">
|
|
<?php echo $news['content']; ?>
|
|
</div>
|
|
<div class="newsSignature">
|
|
<i class="far fa-calendar-alt"></i>
|
|
<?php echo mb_detect_encoding(strftime('%d %B %Y', $news['publishedOn']), 'UTF-8', true)
|
|
? strftime('%d %B %Y', $news['publishedOn'])
|
|
: utf8_encode(strftime('%d %B %Y', $news['publishedOn'])); ?>
|
|
- <?php echo $this->getData(['user', $news['userId'], 'firstname']) . ' ' . $this->getData(['user', $news['userId'], 'lastname']); ?>
|
|
</div>
|
|
<div class="clearBoth"></div>
|
|
<hr />
|
|
<?php endforeach; ?>
|
|
</div>
|
|
</div>
|
|
<?php echo $module::$pages; ?>
|
|
<?php else: ?>
|
|
<?php echo template::speech('Aucune news.'); ?>
|
|
<?php endif; ?>
|