From af2d87b198778d3a84b754bd5a11ba21083a231e Mon Sep 17 00:00:00 2001 From: Fred <23246457+fredtempez@users.noreply.github.com> Date: Tue, 17 Apr 2018 15:33:01 +0200 Subject: [PATCH 1/3] =?UTF-8?q?Correction=20:=20banni=C3=A8re=20non=20cliq?= =?UTF-8?q?uable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit en l'absence du titre du site. --- core/layout/main.php | 328 ++++++++++++++++++++++--------------------- 1 file changed, 171 insertions(+), 157 deletions(-) diff --git a/core/layout/main.php b/core/layout/main.php index c8930289..2938ada4 100755 --- a/core/layout/main.php +++ b/core/layout/main.php @@ -1,158 +1,172 @@ - - - - - - - showMetaTitle(); ?> - showMetaDescription(); ?> - showFavicon(); ?> - showVendor(); ?> - - - - - -showStyle(); ?> -showBar(); ?> -showNotification(); ?> -getData(['theme', 'menu', 'position']) === 'body-first' || $this->getData(['theme', 'menu', 'position']) === 'body-top' ): ?> - - - -getData(['theme', 'header', 'position']) === 'body'): ?> - -
- getData(['theme', 'header', 'textHide']) === false - // Affiche toujours le titre de la bannière pour l'édition du thème - OR ($this->getUrl(0) === 'theme' AND $this->getUrl(1) === 'header') - ): ?> - - getData(['theme','header','linkHome'])){ - echo "" ;} ?> - - -
- getData(['config', 'title']); ?> -
- - getData(['theme','header','linkHome'])){echo "
";} - ?> - - - -
- -getData(['theme', 'menu', 'position']) === 'body-second'): ?> - - - - -
- getData(['theme', 'menu', 'position']) === 'site-first'): ?> - - - - 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'): ?>class="displayNone"> - getData(['theme', 'header', 'textHide']) === false - // Affiche toujours le titre de la bannière pour l'édition du thème - OR ($this->getUrl(0) === 'theme' AND $this->getUrl(1) === 'header') - ): ?> - - getData(['theme','header','linkHome'])){ - echo "" ;} ?> -
- getData(['config', 'title']); ?> -
- getData(['theme','header','linkHome'])){echo "
";} - ?> - - - -
- - getData(['theme', 'menu', 'position']) === 'site-second' - // Affiche toujours le menu pour l'édition du thème - OR ( - $this->getData(['theme', 'menu', 'position']) === 'hide' - AND $this->getUrl(0) === 'theme' - ) - ): ?> - - - - -
showContent(); ?>
- getData(['theme', 'footer', 'position']) === 'site' - // Affiche toujours le pied de page pour l'édition du thème - OR ( - $this->getData(['theme', 'footer', 'position']) === 'hide' - AND $this->getUrl(0) === 'theme' - ) - ): ?> - - - -
-getData(['theme', 'footer', 'position']) === 'body'): ?> - - - - -
-showAnalytics(); ?> -showScript(); ?> - + + + + + + + showMetaTitle(); ?> + showMetaDescription(); ?> + showFavicon(); ?> + showVendor(); ?> + + + + + +showStyle(); ?> +showBar(); ?> +showNotification(); ?> +getData(['theme', 'menu', 'position']) === 'body-first' || $this->getData(['theme', 'menu', 'position']) === 'body-top' ): ?> + + + +getData(['theme', 'header', 'position']) === 'body'): ?> + + + + getData(['theme','header','linkHome'])){ + echo "" ;} ?> + + +
+ getData(['theme', 'header', 'textHide']) === false + // Affiche toujours le titre de la bannière pour l'édition du thème + OR ($this->getUrl(0) === 'theme' AND $this->getUrl(1) === 'header') + ): ?> + + +
+ getData(['config', 'title']); ?> +
+ + + +
+ + getData(['theme','header','linkHome'])){echo "
";} + ?> + + + +getData(['theme', 'menu', 'position']) === 'body-second'): ?> + + + + +
+ getData(['theme', 'menu', 'position']) === 'site-first'): ?> + + + + 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','linkHome'])){ + echo "" ;} ?> + + + +
getData(['theme', 'header', 'position']) === 'hide'): ?>class="displayNone"> + getData(['theme', 'header', 'textHide']) === false + // Affiche toujours le titre de la bannière pour l'édition du thème + OR ($this->getUrl(0) === 'theme' AND $this->getUrl(1) === 'header') + ): ?> + + getData(['theme','header','linkHome'])){ + echo "" ;} ?> +
+ getData(['config', 'title']); ?> +
+ getData(['theme','header','linkHome'])){echo "
";} + ?> + + + +
+ + + getData(['theme', 'menu', 'position']) === 'site-second' + // Affiche toujours le menu pour l'édition du thème + OR ( + $this->getData(['theme', 'menu', 'position']) === 'hide' + AND $this->getUrl(0) === 'theme' + ) + ): ?> + + + + +
showContent(); ?>
+ getData(['theme', 'footer', 'position']) === 'site' + // Affiche toujours le pied de page pour l'édition du thème + OR ( + $this->getData(['theme', 'footer', 'position']) === 'hide' + AND $this->getUrl(0) === 'theme' + ) + ): ?> + + + +
+getData(['theme', 'footer', 'position']) === 'body'): ?> + + + + +
+showAnalytics(); ?> +showScript(); ?> + \ No newline at end of file From d7836ebf8b7a6c20c9e7bacd335dd79ca95d5ba9 Mon Sep 17 00:00:00 2001 From: Fred <23246457+fredtempez@users.noreply.github.com> Date: Tue, 17 Apr 2018 15:35:29 +0200 Subject: [PATCH 2/3] Update CHANGES-DEV.MD --- CHANGES-DEV.MD | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGES-DEV.MD b/CHANGES-DEV.MD index d01b1aff..507118b7 100755 --- a/CHANGES-DEV.MD +++ b/CHANGES-DEV.MD @@ -1,4 +1,5 @@ ChangeLog version bêta 8.3 : +- 0.9.9 Correction : la bannière renvoie vers la home si l'option est active et qu'il n'y a pas de titre texte dans celle-ci. - 0.9.8 Améliore la correction du bug RFM - 0.9.7 Permet au menu de sortir de la largeur du site quand il est au-dessus de la bannière - 0.9.6 Corrige l'affichage d'une erreur 404 si le contenu d'une page est supprimé From 4dacf6027709cff29209cb05c35f954789fbd000 Mon Sep 17 00:00:00 2001 From: Fred <23246457+fredtempez@users.noreply.github.com> Date: Tue, 17 Apr 2018 16:42:39 +0200 Subject: [PATCH 3/3] Correction menu cliquable --- core/layout/main.php | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/core/layout/main.php b/core/layout/main.php index 2938ada4..bf482ce2 100755 --- a/core/layout/main.php +++ b/core/layout/main.php @@ -94,30 +94,20 @@ if ($this->getData(['theme','header','linkHome'])){ echo "" ;} ?> - -
getData(['theme', 'header', 'position']) === 'hide'): ?>class="displayNone"> getData(['theme', 'header', 'textHide']) === false // Affiche toujours le titre de la bannière pour l'édition du thème OR ($this->getUrl(0) === 'theme' AND $this->getUrl(1) === 'header') ): ?> - - getData(['theme','header','linkHome'])){ - echo "" ;} ?> -
- getData(['config', 'title']); ?> -
- getData(['theme','header','linkHome'])){echo "
";} - ?> +
+ getData(['config', 'title']); ?> +
- -
- - + getData(['theme','header','linkHome'])){echo "";} ?> + getData(['theme', 'menu', 'position']) === 'site-second' // Affiche toujours le menu pour l'édition du thème