diff --git a/core/core.php b/core/core.php index 7809e5b5..89566f25 100644 --- a/core/core.php +++ b/core/core.php @@ -1038,25 +1038,6 @@ class core extends common { if($themeHeaderImage = $this->getData(['theme', 'header', 'image'])) { $css .= 'header{background-image:url("../file/source/' . $themeHeaderImage . '");background-position:' . $this->getData(['theme', 'header', 'imagePosition']) . ';background-repeat:' . $this->getData(['theme', 'header', 'imageRepeat']) . '}'; } - - if($themeHeaderImage = $this->getData(['theme', 'header', 'image'])) { - switch($themeHeaderPosition = $this->getData(['theme', 'header', 'position'])) { - case'body': - - $css .= '/*@media (max-width: 767px) {header{height:' . $this->getData(['theme', 'header', 'height'])/2 . 'px;line-height:' . $this->getData(['theme', 'header', 'height'])/2 . 'px;}}*/'; - - $css .= '/*header{background-image:url("../file/source/' . $themeHeaderImage . '");background-position:' . $this->getData(['theme', 'header', 'imagePosition']) . ';background-repeat:' . $this->getData(['theme', 'header', 'imageRepeat']) . '}*/'; - break; - default: - - $css .= '@media (max-width: 767px) {header{height:' . $this->getData(['theme', 'header', 'height'])/2 . 'px;line-height:' . $this->getData(['theme', 'header', 'height'])/2 . 'px;}}'; - - $css .= 'header{background-image:url("../file/source/' . $themeHeaderImage . '");background-position:' . $this->getData(['theme', 'header', 'imagePosition']) . ';background-repeat:' . $this->getData(['theme', 'header', 'imageRepeat']) . '}'; - break; - } - } - - $colors = helper::colorVariants($this->getData(['theme', 'header', 'textColor'])); $css .= 'header span{color:' . $colors['normal'] . ';font-family:"' . str_replace('+', ' ', $this->getData(['theme', 'header', 'font'])) . '",sans-serif;font-weight:' . $this->getData(['theme', 'header', 'fontWeight']) . ';font-size:' . $this->getData(['theme', 'header', 'fontSize']) . ';text-transform:' . $this->getData(['theme', 'header', 'textTransform']) . '}'; // Menu diff --git a/core/layout/common.css b/core/layout/common.css index 3a84ab88..1f7d7d19 100755 --- a/core/layout/common.css +++ b/core/layout/common.css @@ -311,12 +311,6 @@ header .container { height: 100%; } - /* Bannière image reponsive */ -.responsive-banner img { - display:block; - width:100%; -} - /* Menu */ body > nav { margin: 0 -10px; diff --git a/core/layout/main.php b/core/layout/main.php index 393d09b9..9c5363d2 100755 --- a/core/layout/main.php +++ b/core/layout/main.php @@ -117,15 +117,7 @@ $this->getData(['theme', 'menu', 'position']) === 'hide' AND $this->getUrl(0) === 'theme' ) - ): ?> - - - getData(['theme', 'header', 'position']) == 'body') { - $themeHeaderImage = $this->getData(['theme', 'header', 'image']); - echo '
Accueil
'; - } ?> - - + ): ?>