Article link in config screen

This commit is contained in:
Fred Tempez 2020-07-16 12:24:52 +02:00
parent 4387390dbc
commit 90d281b483
2 changed files with 4 additions and 2 deletions

View File

@ -312,7 +312,9 @@ class blog extends common {
// Met en forme le tableau // Met en forme le tableau
self::$articles[] = [ self::$articles[] = [
$this->getData(['module', $this->getUrl(0), $articleIds[$i], 'title']), '<a href="' . helper::baseurl() . $this->getUrl(0) . '/' . $articleIds[$i] . '" target="_blank" >' .
$this->getData(['module', $this->getUrl(0), $articleIds[$i], 'title']) .
'</a>',
// date('d/m/Y H:i', $this->getData(['module', $this->getUrl(0), $articleIds[$i], 'publishedOn'])), // date('d/m/Y H:i', $this->getData(['module', $this->getUrl(0), $articleIds[$i], 'publishedOn'])),
utf8_encode(strftime('%d %B %Y', $this->getData(['module', $this->getUrl(0), $articleIds[$i], 'publishedOn']))) utf8_encode(strftime('%d %B %Y', $this->getData(['module', $this->getUrl(0), $articleIds[$i], 'publishedOn'])))
.' à '. .' à '.

View File

@ -16,7 +16,7 @@
</div> </div>
</div> </div>
<?php if($module::$articles): ?> <?php if($module::$articles): ?>
<?php echo template::table([4, 4, 1, 1, 1, 1], $module::$articles, ['Titre', 'Date de publication', 'État', '', '','']); ?> <?php echo template::table([4, 4, 1, 1, 1, 1], $module::$articles, ['Titre', 'Date de publication', 'État', 'Commentaires', '','']); ?>
<?php echo $module::$pages; ?> <?php echo $module::$pages; ?>
<?php else: ?> <?php else: ?>
<?php echo template::speech('Aucun article.'); ?> <?php echo template::speech('Aucun article.'); ?>