Correction : bannière non cliquable

en l'absence du titre du site.
This commit is contained in:
Fred 2018-04-17 15:33:01 +02:00 committed by GitHub
parent 3b30533ed5
commit af2d87b198
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 171 additions and 157 deletions

View File

@ -1,158 +1,172 @@
<?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>
</div>
<?php <header <?php if($this->getData(['theme', 'header', 'position']) === 'hide'): ?>class="displayNone"<?php endif; ?>>
if ($this->getData(['theme','header','linkHome'])){echo "</a>";} <?php if(
?> $this->getData(['theme', 'header', 'textHide']) === false
<?php endif; ?> // Affiche toujours le titre de la bannière pour l'édition du thème
<!-- menu image --> OR ($this->getUrl(0) === 'theme' AND $this->getUrl(1) === 'header')
): ?>
</header> <!-- menu image -->
<?php endif; ?> <?php
<?php if( if ($this->getData(['theme','header','linkHome'])){
$this->getData(['theme', 'menu', 'position']) === 'site-second' echo "<a href='" . helper::baseUrl(false) . "'>" ;} ?>
// Affiche toujours le menu pour l'édition du thème <div class="container">
OR ( <span><?php echo $this->getData(['config', 'title']); ?></span>
$this->getData(['theme', 'menu', 'position']) === 'hide' </div>
AND $this->getUrl(0) === 'theme' <?php
) if ($this->getData(['theme','header','linkHome'])){echo "</a>";}
): ?> ?>
<!-- Menu dans le site après la bannière --> <?php endif; ?>
<nav <?php if($this->getData(['theme', 'menu', 'position']) === 'hide'): ?>class="displayNone"<?php endif; ?>> <!-- menu image -->
<div id="toggle"><?php echo template::ico('menu'); ?></div>
<div id="menu" class="container"> </header>
<?php $layout->showMenu(); ?>
</div> <?php endif; ?>
</nav> <?php if(
<?php endif; ?> $this->getData(['theme', 'menu', 'position']) === 'site-second'
<!-- Corps --> // Affiche toujours le menu pour l'édition du thème
<section><?php $layout->showContent(); ?></section> OR (
<?php if( $this->getData(['theme', 'menu', 'position']) === 'hide'
$this->getData(['theme', 'footer', 'position']) === 'site' AND $this->getUrl(0) === 'theme'
// Affiche toujours le pied de page pour l'édition du thème )
OR ( ): ?>
$this->getData(['theme', 'footer', 'position']) === 'hide' <!-- Menu dans le site après la bannière -->
AND $this->getUrl(0) === 'theme' <nav <?php if($this->getData(['theme', 'menu', 'position']) === 'hide'): ?>class="displayNone"<?php endif; ?>>
) <div id="toggle"><?php echo template::ico('menu'); ?></div>
): ?> <div id="menu" class="container">
<!-- Pied de page dans le site --> <?php $layout->showMenu(); ?>
<footer <?php if($this->getData(['theme', 'footer', 'position']) === 'hide'): ?>class="displayNone"<?php endif; ?>> </div>
<div class="container"> </nav>
<?php $layout->showSocials(); ?> <?php endif; ?>
<?php $layout->showFooterText(); ?> <!-- Corps -->
<?php $layout->showCopyright(); ?> <section><?php $layout->showContent(); ?></section>
</div> <?php if(
</footer> $this->getData(['theme', 'footer', 'position']) === 'site'
<?php endif; ?> // Affiche toujours le pied de page pour l'édition du thème
</div> OR (
<?php if($this->getData(['theme', 'footer', 'position']) === 'body'): ?> $this->getData(['theme', 'footer', 'position']) === 'hide'
<!-- Pied de page dans le fond du site --> AND $this->getUrl(0) === 'theme'
<footer> )
<div class="container"> ): ?>
<?php $layout->showSocials(); ?> <!-- Pied de page dans le site -->
<?php $layout->showFooterText(); ?> <footer <?php if($this->getData(['theme', 'footer', 'position']) === 'hide'): ?>class="displayNone"<?php endif; ?>>
<?php $layout->showCopyright(); ?> <div class="container">
</div> <?php $layout->showSocials(); ?>
</footer> <?php $layout->showFooterText(); ?>
<?php endif; ?> <?php $layout->showCopyright(); ?>
<!-- Lien remonter en haut --> </div>
<div id="backToTop"><?php echo template::ico('up'); ?></div> </footer>
<?php $layout->showAnalytics(); ?> <?php endif; ?>
<?php $layout->showScript(); ?> </div>
</body> <?php if($this->getData(['theme', 'footer', 'position']) === 'body'): ?>
<!-- Pied de page dans le fond du site -->
<footer>
<div class="container">
<?php $layout->showSocials(); ?>
<?php $layout->showFooterText(); ?>
<?php $layout->showCopyright(); ?>
</div>
</footer>
<?php endif; ?>
<!-- Lien remonter en haut -->
<div id="backToTop"><?php echo template::ico('up'); ?></div>
<?php $layout->showAnalytics(); ?>
<?php $layout->showScript(); ?>
</body>
</html> </html>