blog date complète dans la liste des articles
This commit is contained in:
parent
98ab381b0e
commit
fc4900c66b
@ -278,10 +278,16 @@ class blog extends common {
|
||||
'value' => $comment['approval'] === true ? 'A' : 'R'
|
||||
]);
|
||||
}
|
||||
//Date et heure
|
||||
$gdh = mb_detect_encoding(\PHP81_BC\strftime('%d %B %Y', $comment['createdOn']), 'UTF-8', true)
|
||||
? \PHP81_BC\strftime('%d %B %Y ', $comment['createdOn'])
|
||||
: utf8_encode(\PHP81_BC\strftime('%d %B %Y', $comment['createdOn']));
|
||||
$gdh .= ' - ';
|
||||
$gdh .= mb_detect_encoding(\PHP81_BC\strftime('%H:%M', $comment['createdOn']), 'UTF-8', true)
|
||||
? \PHP81_BC\strftime('%H:%M', $comment['createdOn'])
|
||||
: utf8_encode(\PHP81_BC\strftime('%H:%M', $comment['createdOn']));
|
||||
self::$comments[] = [
|
||||
mb_detect_encoding(\PHP81_BC\strftime('%d %B %Y - %H:%M', $comment['createdOn']), 'UTF-8', true)
|
||||
? \PHP81_BC\strftime('%d %B %Y - %H:%M', $comment['createdOn'])
|
||||
: utf8_encode(\PHP81_BC\strftime('%d %B %Y - %H:%M', $comment['createdOn'])),
|
||||
$gdh,
|
||||
$comment['content'],
|
||||
$comment['userId'] ? $this->getData(['user', $comment['userId'], 'firstname']) . ' ' . $this->getData(['user', $comment['userId'], 'lastname']) : $comment['author'],
|
||||
$buttonApproval,
|
||||
|
@ -36,9 +36,16 @@
|
||||
</div>
|
||||
<div class="blogDate">
|
||||
<?php echo template::ico('calendar-empty'); ?>
|
||||
<?php echo mb_detect_encoding(\PHP81_BC\strftime('%d %B %Y - %H:%M', $article['publishedOn']), 'UTF-8', true)
|
||||
<?php
|
||||
// Date et heure
|
||||
echo mb_detect_encoding(\PHP81_BC\strftime('%d %B %Y', $article['publishedOn']), 'UTF-8', true)
|
||||
? \PHP81_BC\strftime('%d %B %Y', $article['publishedOn'])
|
||||
: utf8_encode(\PHP81_BC\strftime('%d %B %Y', $article['publishedOn'])); ?>
|
||||
: utf8_encode(\PHP81_BC\strftime('%d %B %Y', $article['publishedOn']));
|
||||
echo ' - ';
|
||||
echo mb_detect_encoding(\PHP81_BC\strftime('%H:%M',$article['publishedOn']), 'UTF-8', true)
|
||||
? \PHP81_BC\strftime('%H:%M', $article['publishedOn'])
|
||||
: utf8_encode(\PHP81_BC\strftime('%H:%M', $article['publishedOn']));
|
||||
?>
|
||||
</div>
|
||||
<p class="blogContent">
|
||||
<?php echo helper::subword(strip_tags($article['content'],'<br><p>'), 0, 400); ?>...
|
||||
|
Loading…
Reference in New Issue
Block a user