From aeb3e70a52a792b0c7ba3e5d630c13fd2ab4575c Mon Sep 17 00:00:00 2001 From: fredtempez Date: Fri, 22 Mar 2019 18:43:10 +0100 Subject: [PATCH] [9.0.08] blog 1.3 : article image responsive --- module/blog/blog.php | 2 +- module/blog/view/article/article.css | 4 ++-- module/blog/view/article/article.php | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/module/blog/blog.php b/module/blog/blog.php index ca99658f..9e2edd82 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.2'; + const BLOG_VERSION = '1.3'; /** * Édition diff --git a/module/blog/view/article/article.css b/module/blog/view/article/article.css index 2b5abec5..1e9564ad 100755 --- a/module/blog/view/article/article.css +++ b/module/blog/view/article/article.css @@ -1,5 +1,5 @@ #blogArticlePicture { - height: 350px; + height: auto; width: 100%; background-size: cover; background-repeat: no-repeat; @@ -20,7 +20,7 @@ } @media (max-width: 767px) { #blogArticlePicture { - height:150px; + height:auto; max-width: 100%;} } diff --git a/module/blog/view/article/article.php b/module/blog/view/article/article.php index a87c7272..44196686 100755 --- a/module/blog/view/article/article.php +++ b/module/blog/view/article/article.php @@ -5,7 +5,8 @@ getData(['module', $this->getUrl(0), $this->getUrl(1), 'hidePicture']) == false) { - echo '
'; + // echo '
'; + echo '
'; } ?> getData(['module', $this->getUrl(0), $this->getUrl(1), 'content']); ?>