';
+ } else {
+ $heightMod = $size[1] * ( $wclient / $size[0]);
+ $replace = '
';
+ }
+ $string = $this->getData(['theme','header','swiperContent']);
+ $start = strpos( $string, '
'; }
showFavicon();
$this->showVendor('jshead');
- ?>
-
- getData(['page', $this->getUrl(0), 'moduleId']) === 'blog'
+ // Détection RSS
+ if ( ( $this->getData(['page', $this->getUrl(0), 'moduleId']) === 'blog'
OR $this->getData(['page', $this->getUrl(0), 'moduleId']) === 'news' )
AND $this->getData(['module', $this->getUrl(0), 'config', 'feeds']) === TRUE ): ?>
@@ -114,39 +113,16 @@ else { echo ''; }
getUrl(0) !== 'theme' ){
if( $this->getUrl(0) !== $this->getData(['locale', 'homePageId' ]) && $this->getData(['theme','header','homePageOnly']) === true) $homePageOnly = true;
- }?>
- getData(['theme', 'header', 'position']) === 'body'): ?>
- getData(['theme', 'header', 'position']) === 'body'){
$headerClass = ($this->getData(['theme', 'header', 'position']) === 'hide' || $homePageOnly === true) ? 'displayNone' : '';
$headerClass .= $this->getData(['theme', 'header', 'tinyHidden']) ? ' bannerDisplay ' : '';
$headerClass .= $this->getData(['theme', 'header', 'wide']) === 'none' ? '' : 'container';
- ?>
-
-
+ $this->showHeader($homePageOnly, $headerClass);
+ }?>
- getData(['theme', 'menu', 'position']) === 'body-second' ):
+ getData(['theme', 'menu', 'position']) === 'body-second'):
// Menu dans le fond du site après la bannière et bannière limitée au site
$navStyle = '';
if( $this->getData(['theme', 'header', 'position'])==='body' && $this->getData(['theme', 'header', 'wide'])==='container' ){
@@ -160,9 +136,11 @@ else { echo ''; }
getData(['theme','menu','burgerContent']) === 'logo' ? '
' : '' ;?>
- getData(['theme', 'menu', 'wide']) === 'none' ? 'class="container-large"' : 'class="container"';
- ?>
+ getData(['theme', 'menu', 'wide']) === 'none' ? 'class="container-large"' : 'class="container"';
+ ?>
+
@@ -177,44 +155,22 @@ else { echo ''; }
-
- getData(['theme', 'header', 'position']) === 'site'
- // Affiche toujours la bannière pour l'édition du thème
- OR (
- $this->getData(['theme', 'header', 'position']) === 'hide'
- AND $this->getUrl(0) === 'theme'
- )
- ): ?>
-
- getData(['theme', 'header', 'position']) === 'hide' || $homePageOnly === true) ? 'displayNone' : '';
- $headerClass .= $this->getData(['theme', 'header', 'tinyHidden']) ? ' bannerDisplay ' : '';
- ?>
-
-
- getData(['theme', 'header', 'position']) === 'site'
+ // Affiche toujours la bannière pour l'édition du thème
+ OR (
+ $this->getData(['theme', 'header', 'position']) === 'hide'
+ AND $this->getUrl(0) === 'theme'
+ )
+ ): ?>
+
+ getData(['theme', 'header', 'position']) === 'hide' || $homePageOnly === true) ? 'displayNone' : '';
+ $headerClass .= $this->getData(['theme', 'header', 'tinyHidden']) ? ' bannerDisplay ' : '';
+ $this->showHeader($homePageOnly, $headerClass);
+ endif;
+ if(
$this->getData(['theme', 'menu', 'position']) === 'site-second' ||
$this->getData(['theme', 'menu', 'position']) === 'site'
// Affiche toujours le menu pour l'édition du thème
diff --git a/core/module/theme/lang/en/lex_theme.php b/core/module/theme/lang/en/lex_theme.php
index a6ab379..1cdb459 100644
--- a/core/module/theme/lang/en/lex_theme.php
+++ b/core/module/theme/lang/en/lex_theme.php
@@ -205,7 +205,7 @@ $text['core_theme_view']['menu'][1] = 'Help';
$text['core_theme_view']['menu'][2] = 'Save';
$text['core_theme_view']['menu'][3] = 'Settings';
$text['core_theme_view']['menu'][4] = 'Position';
-$text['core_theme_view']['menu'][5] = 'Width';
+$text['core_theme_view']['menu'][5] = 'Layout';
$text['core_theme_view']['menu'][6] = 'Rounded edges';
$text['core_theme_view']['menu'][7] = 'Around the selected page';
$text['core_theme_view']['menu'][8] = 'Height';
@@ -240,6 +240,7 @@ $text['core_theme_view']['menu'][36] = 'Automatic background color';
$text['core_theme_view']['menu'][37] = 'Minimum width of a tab';
$text['core_theme_view']['menu'][38] = 'Minimum width of menu tabs. The submenu has a width imposed by that of the parent tab.';
$text['core_theme_view']['menu'][39] = 'On: all / Off: with submenu only';
+$text['core_theme_view']['menu'][40] = 'Layout of menu items. The width of the menu banner is automatically adjusted.';
$text['core_theme_view']['site'][0] = 'Back';
$text['core_theme_view']['site'][1] = 'Help';
$text['core_theme_view']['site'][2] = 'Save';
diff --git a/core/module/theme/lang/fr/lex_theme.php b/core/module/theme/lang/fr/lex_theme.php
index b437f43..d767cf1 100644
--- a/core/module/theme/lang/fr/lex_theme.php
+++ b/core/module/theme/lang/fr/lex_theme.php
@@ -205,7 +205,7 @@ $text['core_theme_view']['menu'][1] = 'Aide';
$text['core_theme_view']['menu'][2] = 'Enregistrer';
$text['core_theme_view']['menu'][3] = 'Paramètres';
$text['core_theme_view']['menu'][4] = 'Position';
-$text['core_theme_view']['menu'][5] = 'Largeur';
+$text['core_theme_view']['menu'][5] = 'Disposition';
$text['core_theme_view']['menu'][6] = 'Bords arrondis';
$text['core_theme_view']['menu'][7] = 'Autour de la page sélectionnée';
$text['core_theme_view']['menu'][8] = 'Hauteur';
@@ -240,6 +240,7 @@ $text['core_theme_view']['menu'][36] = 'Couleur de fond automatique';
$text['core_theme_view']['menu'][37] = 'Largeur minimale d\'un onglet';
$text['core_theme_view']['menu'][38] = 'Largeur minimum des onglets du menu.Le sous-menu a une largeur imposée par celle de l\'onglet parent.';
$text['core_theme_view']['menu'][39] = 'On : tous / Off : avec sous-menu uniquement';
+$text['core_theme_view']['menu'][40] = 'Disposition des élèemnts de menu. La largeur du bandeau du menu, elle, s\'adapte automatiquement.';
$text['core_theme_view']['site'][0] = 'Retour';
$text['core_theme_view']['site'][1] = 'Aide';
$text['core_theme_view']['site'][2] = 'Enregistrer';
diff --git a/core/module/theme/theme.php b/core/module/theme/theme.php
index a1a402b..6ed7408 100644
--- a/core/module/theme/theme.php
+++ b/core/module/theme/theme.php
@@ -504,7 +504,10 @@ class theme extends common {
// Si pas d'image ou bannière personnalisée
$this->setData(['theme', 'header', 'height', $this->getData(['theme', 'header', 'heightSelect']) ]);
}
-
+ // Bannière animée avec swiper mettre le background de la bannière à la couleur du background body
+ if( $this->getData(['theme', 'header', 'feature']) ==='swiper'){
+ $this->setData(['theme', 'header', 'backgroundColor', $this->getData(['theme', 'body', 'backgroundColor']) ]);
+ }
// Valeurs en sortie
if (isset($_POST['themeHeaderSubmit'])){
$this->addOutput([
@@ -979,10 +982,40 @@ class theme extends common {
// Adaptation du css au client pour l'option de défilement vertical
if( $effect === 'vertical'){
$size = getimagesize($imageFile[0]);
- $swiperContent .= '';
- $swiperContent .= '';
- }
- $swiperContent .= '