[9.0.08] blog 1.3 : article image responsive

This commit is contained in:
fredtempez 2019-03-22 18:43:10 +01:00
parent 702ead8cdd
commit aeb3e70a52
3 changed files with 5 additions and 4 deletions

View File

@ -37,7 +37,7 @@ class blog extends common {
public static $users = [];
const BLOG_VERSION = '1.2';
const BLOG_VERSION = '1.3';
/**
* Édition

View File

@ -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%;}
}

View File

@ -5,7 +5,8 @@
</div>
<?php if ($this->getData(['module', $this->getUrl(0), $this->getUrl(1), 'hidePicture']) == false) {
echo '<div id="blogArticlePicture" style="background-image:url(' . helper::baseUrl(false) . 'site/file/source/' . $this->getData(['module', $this->getUrl(0), $this->getUrl(1), 'picture']) . ');"></div>';
// echo '<div id="blogArticlePicture" style="background-image:url(' . helper::baseUrl(false) . 'site/file/source/' . $this->getData(['module', $this->getUrl(0), $this->getUrl(1), 'picture']) . ');"></div>';
echo '<div id="blogArticlePicture"><img id="blogArticlePicture" src="' . helper::baseUrl(false) . 'site/file/source/' . $this->getData(['module', $this->getUrl(0), $this->getUrl(1), 'picture']) . '"></div>';
} ?>
<?php echo $this->getData(['module', $this->getUrl(0), $this->getUrl(1), 'content']); ?>