From ca406d114acd0fda440d2a3fcb40be3ca41eaff3 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Sat, 24 Nov 2018 14:25:51 +0100 Subject: [PATCH] v8.4.9 : mod presentation listes articles --- module/blog/blog.php | 4 +++- module/news/news.php | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/module/blog/blog.php b/module/blog/blog.php index 1882efe9..d1fe9eed 100755 --- a/module/blog/blog.php +++ b/module/blog/blog.php @@ -163,7 +163,9 @@ class blog extends common { self::$articles[] = [ $this->getData(['module', $this->getUrl(0), $articleIds[$i], 'title']), // date('d/m/Y H:i', $this->getData(['module', $this->getUrl(0), $articleIds[$i], 'publishedOn'])), - utf8_encode(strftime('%d %B %Y - %H:%M', $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('%H:%M', $this->getData(['module', $this->getUrl(0), $articleIds[$i], 'publishedOn']))), self::$states[$this->getData(['module', $this->getUrl(0), $articleIds[$i], 'state'])], template::button('blogConfigEdit' . $articleIds[$i], [ 'href' => helper::baseUrl() . $this->getUrl(0) . '/edit/' . $articleIds[$i], diff --git a/module/news/news.php b/module/news/news.php index 4d0c7b05..b4b93fdc 100755 --- a/module/news/news.php +++ b/module/news/news.php @@ -90,7 +90,9 @@ class news extends common { // Met en forme le tableau self::$news[] = [ $this->getData(['module', $this->getUrl(0), $newsIds[$i], 'title']), - utf8_encode(strftime('%d %B %Y - %H:%M', $this->getData(['module', $this->getUrl(0), $newsIds[$i], 'publishedOn']))), + utf8_encode(strftime('%d %B %Y', $this->getData(['module', $this->getUrl(0), $newsIds[$i], 'publishedOn']))) + .' à '. + utf8_encode(strftime('%H:%M', $this->getData(['module', $this->getUrl(0), $newsIds[$i], 'publishedOn']))), self::$states[$this->getData(['module', $this->getUrl(0), $newsIds[$i], 'state'])], template::button('newsConfigEdit' . $newsIds[$i], [ 'href' => helper::baseUrl() . $this->getUrl(0) . '/edit/' . $newsIds[$i],