From 57b2055e5cc019ee7385e5fcef65994b9b078c8f Mon Sep 17 00:00:00 2001 From: fredtempez Date: Fri, 22 Feb 2019 22:38:06 +0100 Subject: [PATCH] news --- core/layout/common.css | 17 ----------------- module/blog/blog.php | 2 +- module/blog/view/article/article.css | 10 ++++++++-- module/blog/view/article/article.php | 18 +++++++++++------- module/blog/view/index/index.css | 22 +++++++++++++++++++--- module/blog/view/index/index.php | 10 ++++------ module/news/news.php | 2 +- module/news/view/index/index.css | 23 +++++++++++++++++++++++ module/news/view/index/index.php | 25 ++++++++++++++----------- 9 files changed, 81 insertions(+), 48 deletions(-) create mode 100644 module/news/view/index/index.css diff --git a/core/layout/common.css b/core/layout/common.css index 05e18022..10669c8e 100755 --- a/core/layout/common.css +++ b/core/layout/common.css @@ -90,23 +90,6 @@ img[align='right'] { Signature dans les articles blog et news */ -#blogPicture { - text-align: center; - margin-right: -10px; -} - -#blogTitle { - background-color: #ECEFF1; - padding: 3px; - margin-left: -10px; -} - -#blogDate { - font-size:0.8em; - font-style: italic; - color: grey; -} - .signature { font-size: 0.8em; font-style: italic; diff --git a/module/blog/blog.php b/module/blog/blog.php index 0756074d..57c205a4 100755 --- a/module/blog/blog.php +++ b/module/blog/blog.php @@ -37,7 +37,7 @@ class blog extends common { public static $users = []; - const BLOG_VERSION = '1.1'; + const BLOG_VERSION = '1.2'; /** * Édition diff --git a/module/blog/view/article/article.css b/module/blog/view/article/article.css index bd40018a..2b5abec5 100755 --- a/module/blog/view/article/article.css +++ b/module/blog/view/article/article.css @@ -4,6 +4,7 @@ background-size: cover; background-repeat: no-repeat; background-position: center center; + margin-top: 15px; } #blogArticleCommentShow { cursor: text; @@ -11,11 +12,16 @@ #blogArticleOr { padding: 10px; } -/* Modif CroqueWeb */ +.blogDate { + font-size:0.8em; + font-style: italic; + color: grey; + margin-left: 10px; +} @media (max-width: 767px) { #blogArticlePicture { height:150px; max-width: 100%;} } -/* fin modif croqueweb */ + diff --git a/module/blog/view/article/article.php b/module/blog/view/article/article.php index 3fe44fa4..b43f1445 100755 --- a/module/blog/view/article/article.php +++ b/module/blog/view/article/article.php @@ -1,18 +1,22 @@ -getData(['module', $this->getUrl(0), $this->getUrl(1), 'hidePicture']) == false) { - echo '
'; -} -?> +
+ + getData(['module', $this->getUrl(0), $this->getUrl(1), 'publishedOn']))); ?> + à getData(['module', $this->getUrl(0), $this->getUrl(1), 'publishedOn']))); ?> +
+ + getData(['module', $this->getUrl(0), $this->getUrl(1), 'hidePicture']) == false) { + echo '
'; + } ?> + getData(['module', $this->getUrl(0), $this->getUrl(1), 'content']); ?>

getData(['user', $this->getData(['module', $this->getUrl(0), $this->getUrl(1), 'userId']), 'firstname']); ?> getData(['user', $this->getData(['module', $this->getUrl(0), $this->getUrl(1), 'userId']), 'lastname']); ?> - getData(['module', $this->getUrl(0), $this->getUrl(1), 'publishedOn']))); ?> - à getData(['module', $this->getUrl(0), $this->getUrl(1), 'publishedOn']))); ?>

diff --git a/module/blog/view/index/index.css b/module/blog/view/index/index.css index ad4ad317..f8230f15 100755 --- a/module/blog/view/index/index.css +++ b/module/blog/view/index/index.css @@ -1,18 +1,34 @@ .blogPicture { - float: left; - margin: 10px 20px 0 0; + float: center; + margin-left: 10px; } .blogPicture:hover { opacity: .7; } -.block:after { +.row:after { content: " "; display: table; clear: both; } .blogComment { + padding-right: 10px; float: right; } +.blogTitle { + background-color: #ECEFF1; + padding: 5px; + margin-left: -10px; +} +.blogContent { + float: left; + margin-left: -10px; +} +.blogDate { + font-size:0.8em; + font-style: italic; + color: grey; + margin-left: 10px; +} @media (max-width: 768px) { .blogContent { display: none; diff --git a/module/blog/view/index/index.php b/module/blog/view/index/index.php index 2b962960..b8b55e03 100755 --- a/module/blog/view/index/index.php +++ b/module/blog/view/index/index.php @@ -3,13 +3,13 @@
$article): ?>
-
- +
-

+

@@ -20,16 +20,14 @@

-
+
-

... Lire la suite

-

diff --git a/module/news/news.php b/module/news/news.php index 6fe7b4f4..54d5e79e 100755 --- a/module/news/news.php +++ b/module/news/news.php @@ -32,7 +32,7 @@ class news extends common { false => 'Brouillon', true => 'Publié' ]; - const NEWS_VERSION = '1.1'; + const NEWS_VERSION = '1.2'; public static $users = []; diff --git a/module/news/view/index/index.css b/module/news/view/index/index.css new file mode 100644 index 00000000..7ddfb686 --- /dev/null +++ b/module/news/view/index/index.css @@ -0,0 +1,23 @@ +.newsTitle { + background-color: #ECEFF1; + padding:5px; +} +.newsContent { + clear: left; + margin-left: 10px; + padding: 5px; +} +.newsDate { + font-size:0.8em; + font-style: italic; + color: grey; + margin-left:10px; + float: left; +} +.newsSignature { + margin-right:10px; + float:right; + font-size:0.8em; + font-style: italic; + color: grey; +} \ No newline at end of file diff --git a/module/news/view/index/index.php b/module/news/view/index/index.php index b4421b00..bbb1a87b 100755 --- a/module/news/view/index/index.php +++ b/module/news/view/index/index.php @@ -2,18 +2,21 @@
$news): ?> -
-

- Le - à -

-

- -

- getData(['user', $news['userId'], 'firstname']) . ' ' . $this->getData(['user', $news['userId'], 'lastname']); ?> -

-
+

+ +

+
+ +
+
+ getData(['user', $news['userId'], 'firstname']) . ' ' . $this->getData(['user', $news['userId'], 'lastname']); ?> +
+
+ +
+
+