2018-04-02 08:29:19 +02:00
|
|
|
<?php if($module::$articles): ?>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col12">
|
2019-02-22 00:12:33 +01:00
|
|
|
<?php foreach($module::$articles as $articleId => $article): ?>
|
|
|
|
<div class="row">
|
2019-02-22 22:38:06 +01:00
|
|
|
<div class="col3">
|
|
|
|
<a href="<?php echo helper::baseUrl() . $this->getUrl(0) . '/' . $articleId; ?>" class="blogPicture">
|
2019-03-22 12:19:44 +01:00
|
|
|
<img src="<?php echo helper::baseUrl(false) . 'site/file/thumb/' . $article['picture']; ?>">
|
2019-02-22 00:12:33 +01:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="col9">
|
2019-02-22 22:38:06 +01:00
|
|
|
<h1 class="blogTitle">
|
2019-02-22 00:12:33 +01:00
|
|
|
<a href="<?php echo helper::baseUrl() . $this->getUrl(0) . '/' . $articleId; ?>">
|
|
|
|
<?php echo $article['title']; ?>
|
|
|
|
</a>
|
|
|
|
</h1>
|
2018-04-02 08:29:19 +02:00
|
|
|
<div class="blogComment">
|
|
|
|
<a href="<?php echo helper::baseUrl() . $this->getUrl(0) . '/' . $articleId; ?>#comment">
|
|
|
|
<?php echo count($article['comment']); ?>
|
|
|
|
</a>
|
|
|
|
<?php echo template::ico('comment', 'left'); ?>
|
2019-02-22 12:19:38 +01:00
|
|
|
</div>
|
2019-02-22 22:38:06 +01:00
|
|
|
<div class="blogDate">
|
2019-02-22 12:19:38 +01:00
|
|
|
<i class="far fa-calendar-alt"></i>
|
|
|
|
<?php echo utf8_encode(strftime('%d %B %Y', $article['publishedOn'])); ?>
|
2018-04-02 08:29:19 +02:00
|
|
|
</div>
|
2019-02-22 12:19:38 +01:00
|
|
|
<p class="blogContent">
|
|
|
|
<?php echo helper::subword(strip_tags($article['content']), 0, 300); ?>...
|
|
|
|
<a href="<?php echo helper::baseUrl() . $this->getUrl(0) . '/' . $articleId; ?>">Lire la suite</a>
|
|
|
|
</p>
|
2019-02-22 00:12:33 +01:00
|
|
|
</div>
|
2018-04-02 08:29:19 +02:00
|
|
|
</div>
|
2019-02-22 00:12:33 +01:00
|
|
|
<hr />
|
2018-04-02 08:29:19 +02:00
|
|
|
<?php endforeach; ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<?php echo $module::$pages; ?>
|
|
|
|
<?php else: ?>
|
|
|
|
<?php echo template::speech('Aucun article.'); ?>
|
|
|
|
<?php endif; ?>
|