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

@ -30,29 +30,34 @@
<?php endif; ?>
<?php if($this->getData(['theme', 'header', 'position']) === 'body'): ?>
<!-- Bannière dans le fond du site -->
<!-- menu image -->
<?php
if ($this->getData(['theme','header','linkHome'])){
echo "<a href='" . helper::baseUrl(false) . "'>" ;} ?>
<!-- menu image -->
<header>
<?php if(
$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')
): ?>
<!-- menu image -->
<?php
if ($this->getData(['theme','header','linkHome'])){
echo "<a href='" . helper::baseUrl(false) . "'>" ;} ?>
<!-- menu image -->
<div class="container">
<span><?php echo $this->getData(['config', 'title']); ?></span>
</div>
<!-- menu image -->
<?php
if ($this->getData(['theme','header','linkHome'])){echo "</a>";}
?>
<!-- menu image -->
<?php endif; ?>
</header>
<!-- menu image -->
<?php
if ($this->getData(['theme','header','linkHome'])){echo "</a>";}
?>
<!-- menu image -->
<?php endif; ?>
<?php if($this->getData(['theme', 'menu', 'position']) === 'body-second'): ?>
<!-- Menu dans le fond du site après la bannière -->
@ -83,6 +88,14 @@
)
): ?>
<!-- Bannière dans le site -->
<!-- menu image -->
<?php
if ($this->getData(['theme','header','linkHome'])){
echo "<a href='" . helper::baseUrl(false) . "'>" ;} ?>
<!-- menu image -->
<header <?php if($this->getData(['theme', 'header', 'position']) === 'hide'): ?>class="displayNone"<?php endif; ?>>
<?php if(
$this->getData(['theme', 'header', 'textHide']) === false
@ -103,6 +116,7 @@
<!-- menu image -->
</header>
<?php endif; ?>
<?php if(
$this->getData(['theme', 'menu', 'position']) === 'site-second'