Merge remote-tracking branch 'origin/master'

This commit is contained in:
Fred Tempez 2018-04-17 20:40:10 +02:00
commit f201c6c912
2 changed files with 162 additions and 157 deletions

View File

@ -1,4 +1,5 @@
ChangeLog version bêta 8.3 : 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.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.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é - 0.9.6 Corrige l'affichage d'une erreur 404 si le contenu d'une page est supprimé

View File

@ -1,158 +1,162 @@
<?php $layout = new layout($this); ?> <?php $layout = new layout($this); ?>
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<?php $layout->showMetaTitle(); ?> <?php $layout->showMetaTitle(); ?>
<?php $layout->showMetaDescription(); ?> <?php $layout->showMetaDescription(); ?>
<?php $layout->showFavicon(); ?> <?php $layout->showFavicon(); ?>
<?php $layout->showVendor(); ?> <?php $layout->showVendor(); ?>
<link rel="stylesheet" href="<?php echo helper::baseUrl(false); ?>core/layout/common.css"> <link rel="stylesheet" href="<?php echo helper::baseUrl(false); ?>core/layout/common.css">
<link rel="stylesheet" href="<?php echo helper::baseUrl(false); ?>site/data/theme.css?<?php echo md5_file('site/data/theme.css'); ?>"> <link rel="stylesheet" href="<?php echo helper::baseUrl(false); ?>site/data/theme.css?<?php echo md5_file('site/data/theme.css'); ?>">
<link rel="stylesheet" href="<?php echo helper::baseUrl(false); ?>site/data/custom.css?<?php echo md5_file('site/data/custom.css'); ?>"> <link rel="stylesheet" href="<?php echo helper::baseUrl(false); ?>site/data/custom.css?<?php echo md5_file('site/data/custom.css'); ?>">
</head> </head>
<body> <body>
<?php $layout->showStyle(); ?> <?php $layout->showStyle(); ?>
<?php $layout->showBar(); ?> <?php $layout->showBar(); ?>
<?php $layout->showNotification(); ?> <?php $layout->showNotification(); ?>
<?php if($this->getData(['theme', 'menu', 'position']) === 'body-first' || $this->getData(['theme', 'menu', 'position']) === 'body-top' ): ?> <?php if($this->getData(['theme', 'menu', 'position']) === 'body-first' || $this->getData(['theme', 'menu', 'position']) === 'body-top' ): ?>
<!-- Menu dans le fond du site avant la bannière --> <!-- Menu dans le fond du site avant la bannière -->
<nav> <nav>
<div id="toggle"><?php echo template::ico('menu'); ?></div> <div id="toggle"><?php echo template::ico('menu'); ?></div>
<div id="menu" class=" <div id="menu" class="
<?php if($this->getData(['theme', 'menu', 'position']) === 'body-top'){echo 'container-large';}else{echo'container';} <?php if($this->getData(['theme', 'menu', 'position']) === 'body-top'){echo 'container-large';}else{echo'container';}
?>"> ?>">
<?php $layout->showMenu(); ?> <?php $layout->showMenu(); ?>
</div> </div>
</nav> </nav>
<?php endif; ?> <?php endif; ?>
<?php if($this->getData(['theme', 'header', 'position']) === 'body'): ?> <?php if($this->getData(['theme', 'header', 'position']) === 'body'): ?>
<!-- Bannière dans le fond du site --> <!-- Bannière dans le fond du site -->
<header>
<?php if( <!-- menu image -->
$this->getData(['theme', 'header', 'textHide']) === false <?php
// Affiche toujours le titre de la bannière pour l'édition du thème if ($this->getData(['theme','header','linkHome'])){
OR ($this->getUrl(0) === 'theme' AND $this->getUrl(1) === 'header') echo "<a href='" . helper::baseUrl(false) . "'>" ;} ?>
): ?> <!-- menu image -->
<!-- menu image -->
<?php <header>
if ($this->getData(['theme','header','linkHome'])){ <?php if(
echo "<a href='" . helper::baseUrl(false) . "'>" ;} ?> $this->getData(['theme', 'header', 'textHide']) === false
<!-- menu image --> // Affiche toujours le titre de la bannière pour l'édition du thème
OR ($this->getUrl(0) === 'theme' AND $this->getUrl(1) === 'header')
<div class="container"> ): ?>
<span><?php echo $this->getData(['config', 'title']); ?></span>
</div>
<!-- menu image --> <div class="container">
<?php <span><?php echo $this->getData(['config', 'title']); ?></span>
if ($this->getData(['theme','header','linkHome'])){echo "</a>";} </div>
?>
<!-- menu image -->
<?php endif; ?>
<?php endif; ?> </header>
</header> <!-- menu image -->
<?php endif; ?> <?php
<?php if($this->getData(['theme', 'menu', 'position']) === 'body-second'): ?> if ($this->getData(['theme','header','linkHome'])){echo "</a>";}
<!-- Menu dans le fond du site après la bannière --> ?>
<nav> <!-- menu image -->
<div id="toggle"><?php echo template::ico('menu'); ?></div>
<div id="menu" class="container"> <?php endif; ?>
<?php $layout->showMenu(); ?> <?php if($this->getData(['theme', 'menu', 'position']) === 'body-second'): ?>
</div> <!-- Menu dans le fond du site après la bannière -->
</nav> <nav>
<?php endif; ?> <div id="toggle"><?php echo template::ico('menu'); ?></div>
<!-- Site --> <div id="menu" class="container">
<div id="site" class="container"> <?php $layout->showMenu(); ?>
<?php if($this->getData(['theme', 'menu', 'position']) === 'site-first'): ?> </div>
<!-- Menu dans le site avant la bannière --> </nav>
<nav> <?php endif; ?>
<div id="toggle"><?php echo template::ico('menu'); ?></div> <!-- Site -->
<div id="menu" class="container"> <div id="site" class="container">
<?php $layout->showMenu(); ?> <?php if($this->getData(['theme', 'menu', 'position']) === 'site-first'): ?>
</div> <!-- Menu dans le site avant la bannière -->
</nav> <nav>
<?php endif; ?> <div id="toggle"><?php echo template::ico('menu'); ?></div>
<?php if( <div id="menu" class="container">
$this->getData(['theme', 'header', 'position']) === 'site' <?php $layout->showMenu(); ?>
// Affiche toujours la bannière pour l'édition du thème </div>
OR ( </nav>
$this->getData(['theme', 'header', 'position']) === 'hide' <?php endif; ?>
AND $this->getUrl(0) === 'theme' <?php if(
) $this->getData(['theme', 'header', 'position']) === 'site'
): ?> // Affiche toujours la bannière pour l'édition du thème
<!-- Bannière dans le site --> OR (
<header <?php if($this->getData(['theme', 'header', 'position']) === 'hide'): ?>class="displayNone"<?php endif; ?>> $this->getData(['theme', 'header', 'position']) === 'hide'
<?php if( AND $this->getUrl(0) === 'theme'
$this->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') <!-- Bannière dans le site -->
): ?>
<!-- menu image --> <!-- menu image -->
<?php <?php
if ($this->getData(['theme','header','linkHome'])){ if ($this->getData(['theme','header','linkHome'])){
echo "<a href='" . helper::baseUrl(false) . "'>" ;} ?> echo "<a href='" . helper::baseUrl(false) . "'>" ;} ?>
<div class="container"> <!-- menu image -->
<span><?php echo $this->getData(['config', 'title']); ?></span> <header <?php if($this->getData(['theme', 'header', 'position']) === 'hide'): ?>class="displayNone"<?php endif; ?>>
</div> <?php if(
<?php $this->getData(['theme', 'header', 'textHide']) === false
if ($this->getData(['theme','header','linkHome'])){echo "</a>";} // Affiche toujours le titre de la bannière pour l'édition du thème
?> OR ($this->getUrl(0) === 'theme' AND $this->getUrl(1) === 'header')
<?php endif; ?> ): ?>
<!-- menu image --> <div class="container">
<span><?php echo $this->getData(['config', 'title']); ?></span>
</header> </div>
<?php endif; ?> <?php endif; ?>
<?php if( </header>
$this->getData(['theme', 'menu', 'position']) === 'site-second' <?php
// Affiche toujours le menu pour l'édition du thème if ($this->getData(['theme','header','linkHome'])){echo "</a>";} ?>
OR ( <?php endif; ?>
$this->getData(['theme', 'menu', 'position']) === 'hide' <?php if(
AND $this->getUrl(0) === 'theme' $this->getData(['theme', 'menu', 'position']) === 'site-second'
) // Affiche toujours le menu pour l'édition du thème
): ?> OR (
<!-- Menu dans le site après la bannière --> $this->getData(['theme', 'menu', 'position']) === 'hide'
<nav <?php if($this->getData(['theme', 'menu', 'position']) === 'hide'): ?>class="displayNone"<?php endif; ?>> AND $this->getUrl(0) === 'theme'
<div id="toggle"><?php echo template::ico('menu'); ?></div> )
<div id="menu" class="container"> ): ?>
<?php $layout->showMenu(); ?> <!-- Menu dans le site après la bannière -->
</div> <nav <?php if($this->getData(['theme', 'menu', 'position']) === 'hide'): ?>class="displayNone"<?php endif; ?>>
</nav> <div id="toggle"><?php echo template::ico('menu'); ?></div>
<?php endif; ?> <div id="menu" class="container">
<!-- Corps --> <?php $layout->showMenu(); ?>
<section><?php $layout->showContent(); ?></section> </div>
<?php if( </nav>
$this->getData(['theme', 'footer', 'position']) === 'site' <?php endif; ?>
// Affiche toujours le pied de page pour l'édition du thème <!-- Corps -->
OR ( <section><?php $layout->showContent(); ?></section>
$this->getData(['theme', 'footer', 'position']) === 'hide' <?php if(
AND $this->getUrl(0) === 'theme' $this->getData(['theme', 'footer', 'position']) === 'site'
) // Affiche toujours le pied de page pour l'édition du thème
): ?> OR (
<!-- Pied de page dans le site --> $this->getData(['theme', 'footer', 'position']) === 'hide'
<footer <?php if($this->getData(['theme', 'footer', 'position']) === 'hide'): ?>class="displayNone"<?php endif; ?>> AND $this->getUrl(0) === 'theme'
<div class="container"> )
<?php $layout->showSocials(); ?> ): ?>
<?php $layout->showFooterText(); ?> <!-- Pied de page dans le site -->
<?php $layout->showCopyright(); ?> <footer <?php if($this->getData(['theme', 'footer', 'position']) === 'hide'): ?>class="displayNone"<?php endif; ?>>
</div> <div class="container">
</footer> <?php $layout->showSocials(); ?>
<?php endif; ?> <?php $layout->showFooterText(); ?>
</div> <?php $layout->showCopyright(); ?>
<?php if($this->getData(['theme', 'footer', 'position']) === 'body'): ?> </div>
<!-- Pied de page dans le fond du site --> </footer>
<footer> <?php endif; ?>
<div class="container"> </div>
<?php $layout->showSocials(); ?> <?php if($this->getData(['theme', 'footer', 'position']) === 'body'): ?>
<?php $layout->showFooterText(); ?> <!-- Pied de page dans le fond du site -->
<?php $layout->showCopyright(); ?> <footer>
</div> <div class="container">
</footer> <?php $layout->showSocials(); ?>
<?php endif; ?> <?php $layout->showFooterText(); ?>
<!-- Lien remonter en haut --> <?php $layout->showCopyright(); ?>
<div id="backToTop"><?php echo template::ico('up'); ?></div> </div>
<?php $layout->showAnalytics(); ?> </footer>
<?php $layout->showScript(); ?> <?php endif; ?>
</body> <!-- Lien remonter en haut -->
<div id="backToTop"><?php echo template::ico('up'); ?></div>
<?php $layout->showAnalytics(); ?>
<?php $layout->showScript(); ?>
</body>
</html> </html>