forked from ZwiiCMS-Team/ZwiiCMS
init à tester
This commit is contained in:
parent
d8cb766519
commit
85dc3a3386
@ -44,13 +44,9 @@
|
|||||||
?>
|
?>
|
||||||
<!-- Menu Burger -->
|
<!-- Menu Burger -->
|
||||||
<div id="toggle">
|
<div id="toggle">
|
||||||
<?php if ($this->getData(['theme','menu','burgerTitle']) === true ): ?>
|
<?php echo $this->getData(['theme','menu','burgerTitle']) ? '<div class="notranslate" id="burgerText">' . $this->getData(['locale', 'title']) . '</div>' : '' ;?>
|
||||||
<div class="notranslate" id="burgerText"><?php echo $this->getData(['locale', 'title']);?></div>
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php echo template::ico('menu',null,null,'2em'); ?></div>
|
<?php echo template::ico('menu',null,null,'2em'); ?></div>
|
||||||
<div id="menu" class="
|
<div id="menu" <?php echo $this->getData(['theme', 'menu', 'position']) === 'top' ? 'class="container-large"' : 'class="container"'; ?> >
|
||||||
<?php if($this->getData(['theme', 'menu', 'position']) === 'top'){echo 'container-large';}else{echo'container';}
|
|
||||||
?>">
|
|
||||||
<?php $this->showMenu(); ?>
|
<?php $this->showMenu(); ?>
|
||||||
</div> <!--fin menu -->
|
</div> <!--fin menu -->
|
||||||
</nav>
|
</nav>
|
||||||
@ -58,10 +54,8 @@
|
|||||||
<?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($this->getData(['theme', 'header', 'tinyHidden']) === true): ?>class="bannerDisplay"<?php endif;?>>
|
<header <?php if($this->getData(['theme', 'header', 'tinyHidden']) === true): ?>class="bannerDisplay"<?php endif;?>>
|
||||||
<?php //$this->showi18n();?>
|
<?php ?>
|
||||||
<?php
|
<?php echo $this->getData(['theme','header','linkHomePage']) ? '<a href="' . helper::baseUrl(false) . '">' : ''; ?>
|
||||||
if ($this->getData(['theme','header','linkHomePage'])){
|
|
||||||
echo "<a href='" . helper::baseUrl(false) . "'>" ;} ?>
|
|
||||||
<div id="headerContainer" class="container">
|
<div id="headerContainer" class="container">
|
||||||
<?php if(
|
<?php if(
|
||||||
$this->getData(['theme', 'header', 'textHide']) === false
|
$this->getData(['theme', 'header', 'textHide']) === false
|
||||||
@ -73,9 +67,7 @@
|
|||||||
<span id="themeHeaderTitle"> </span>
|
<span id="themeHeaderTitle"> </span>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div> <!--fin container -->
|
</div> <!--fin container -->
|
||||||
<?php
|
<?php echo $this->getData(['theme','header','linkHomePage']) ? '</a>' : ''; ?>
|
||||||
if ($this->getData(['theme','header','linkHomePage'])){echo "</a>";}
|
|
||||||
?>
|
|
||||||
</header>
|
</header>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
@ -83,9 +75,7 @@
|
|||||||
<!-- Menu dans le fond du site après la bannière -->
|
<!-- Menu dans le fond du site après la bannière -->
|
||||||
<nav>
|
<nav>
|
||||||
<div id="toggle">
|
<div id="toggle">
|
||||||
<?php if ($this->getData(['theme','menu','burgerTitle']) === true ): ?>
|
<?php echo $this->getData(['theme','menu','burgerTitle']) ? '<div class="notranslate" id="burgerText">' . $this->getData(['locale', 'title']) . '</div>' : ''; ?>
|
||||||
<div class="notranslate" id="burgerText"><?php echo $this->getData(['locale', 'title']);?></div>
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php echo template::ico('menu',null,null,'2em'); ?></div>
|
<?php echo template::ico('menu',null,null,'2em'); ?></div>
|
||||||
<div id="menu" class="container"><?php $this->showMenu(); ?></div>
|
<div id="menu" class="container"><?php $this->showMenu(); ?></div>
|
||||||
</nav>
|
</nav>
|
||||||
@ -96,42 +86,38 @@
|
|||||||
<!-- Menu dans le site avant la bannière -->
|
<!-- Menu dans le site avant la bannière -->
|
||||||
<nav>
|
<nav>
|
||||||
<div id="toggle">
|
<div id="toggle">
|
||||||
<?php if ($this->getData(['theme','menu','burgerTitle']) === true ): ?>
|
<?php echo $this->getData(['theme','menu','burgerTitle']) ? '<div class="notranslate" id="burgerText">' . $this->getData(['locale', 'title']) . '</div>' : ''; ?>
|
||||||
<div class="notranslate" id="burgerText"><?php echo $this->getData(['locale', 'title']);?></div>
|
|
||||||
<?php endif; ?>
|
|
||||||
<?php echo template::ico('menu',null,null,'2em'); ?></div>
|
<?php echo template::ico('menu',null,null,'2em'); ?></div>
|
||||||
<div id="menu" class="container"><?php $this->showMenu(); ?></div>
|
<div id="menu" class="container"><?php $this->showMenu(); ?></div>
|
||||||
</nav>
|
</nav>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php if(
|
<?php if(
|
||||||
$this->getData(['theme', 'header', 'position']) === 'site'
|
$this->getData(['theme', 'header', 'position']) === 'site'
|
||||||
// Affiche toujours la bannière pour l'édition du thème
|
// Affiche toujours la bannière pour l'édition du thème
|
||||||
OR (
|
OR (
|
||||||
$this->getData(['theme', 'header', 'position']) === 'hide'
|
$this->getData(['theme', 'header', 'position']) === 'hide'
|
||||||
AND $this->getUrl(0) === 'theme'
|
AND $this->getUrl(0) === 'theme'
|
||||||
)
|
)
|
||||||
): ?>
|
): ?>
|
||||||
<!-- Bannière dans le site -->
|
<!-- Bannière dans le site -->
|
||||||
<?php
|
<?php echo $this->getData(['theme','header','linkHomePage']) ? '<a href="' . helper::baseUrl(false) . '">' : ''; ?>
|
||||||
if ($this->getData(['theme','header','linkHomePage'])){
|
<header class="
|
||||||
echo "<a href='" . helper::baseUrl(false) . "'>" ;} ?>
|
<?php echo $this->getData(['theme', 'header', 'position']) === 'hide' ? 'displayNone' : ''; ?>
|
||||||
<header <?php if($this->getData(['theme', 'header', 'position']) === 'hide'): ?>class="displayNone"<?php endif;
|
<?php echo $this->getData(['theme', 'header', 'tinyHidden']) ? ' bannerDisplay' : ''; ?>
|
||||||
if($this->getData(['theme', 'header', 'tinyHidden']) === true): ?>class="bannerDisplay"<?php endif;
|
">
|
||||||
?>>
|
<div id="headerContainer" class="container">
|
||||||
<div id="headerContainer" class="container">
|
<?php if(
|
||||||
<?php if(
|
$this->getData(['theme', 'header', 'textHide']) === false
|
||||||
$this->getData(['theme', 'header', 'textHide']) === false
|
// Affiche toujours le titre de la bannière pour l'édition du thème
|
||||||
// Affiche toujours le titre de la bannière pour l'édition du thème
|
OR ($this->getUrl(0) === 'theme' AND $this->getUrl(1) === 'header')
|
||||||
OR ($this->getUrl(0) === 'theme' AND $this->getUrl(1) === 'header')
|
): ?>
|
||||||
): ?>
|
<span class="notranslate" id="themeHeaderTitle"><?php echo $this->getData(['locale', 'title']); ?></span>
|
||||||
<span class="notranslate" id="themeHeaderTitle"><?php echo $this->getData(['locale', 'title']); ?></span>
|
<?php else: ?>
|
||||||
<?php else: ?>
|
<span id="themeHeaderTitle"> </span>
|
||||||
<span id="themeHeaderTitle"> </span>
|
<?php endif; ?>
|
||||||
<?php endif; ?>
|
</div> <!--fin container -->
|
||||||
</div> <!--fin container -->
|
</header>
|
||||||
</header>
|
<?php echo $this->getData(['theme','header','linkHomePage']) ? '</a>' : ''; ?>
|
||||||
<?php
|
|
||||||
if ($this->getData(['theme','header','linkHomePage'])){echo "</a>";} ?>
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php if(
|
<?php if(
|
||||||
$this->getData(['theme', 'menu', 'position']) === 'site-second' ||
|
$this->getData(['theme', 'menu', 'position']) === 'site-second' ||
|
||||||
@ -141,20 +127,17 @@
|
|||||||
$this->getData(['theme', 'menu', 'position']) === 'hide'
|
$this->getData(['theme', 'menu', 'position']) === 'hide'
|
||||||
AND $this->getUrl(0) === 'theme'
|
AND $this->getUrl(0) === 'theme'
|
||||||
)
|
)
|
||||||
): ?>
|
): ?>
|
||||||
<!-- Menu dans le site après la bannière -->
|
<!-- Menu dans le site après la bannière -->
|
||||||
<nav <?php if($this->getData(['theme', 'menu', 'position']) === 'hide'): ?>class="displayNone"<?php endif; ?>>
|
<nav <?php echo $this->getData(['theme', 'menu', 'position']) === 'hide' ? 'class="displayNone"' : ''; ?>>
|
||||||
<div id="toggle">
|
<div id="toggle">
|
||||||
<?php if ($this->getData(['theme','menu','burgerTitle']) === true ): ?>
|
<?php echo $this->getData(['theme','menu','burgerTitle']) ? '<div class="notranslate" id="burgerText">' . $this->getData(['locale', 'title']) . '</div>' : ''; ?>
|
||||||
<div class="notranslate" id="burgerText"><?php echo $this->getData(['locale', 'title']);?></div>
|
<?php echo template::ico('menu',null,null,'2em'); ?></div>
|
||||||
<?php endif; ?>
|
<div id="menu" class="container"><?php $this->showMenu(); ?></div>
|
||||||
<?php echo template::ico('menu',null,null,'2em'); ?></div>
|
</nav>
|
||||||
<div id="menu" class="container"><?php $this->showMenu(); ?></div>
|
|
||||||
</nav>
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<!-- Corps de page -->
|
<!-- Corps de page -->
|
||||||
<section>
|
<section>
|
||||||
<?php //$this->showi18n();?>
|
|
||||||
<?php
|
<?php
|
||||||
// Gabarit :
|
// Gabarit :
|
||||||
// Récupérer la config de la page courante
|
// Récupérer la config de la page courante
|
||||||
@ -232,12 +215,7 @@
|
|||||||
?>
|
?>
|
||||||
<!-- Pied de page -->
|
<!-- Pied de page -->
|
||||||
<footer <?php if($this->getData(['theme', 'footer', 'position']) === 'hide'): ?>class="displayNone"<?php endif; ?>>
|
<footer <?php if($this->getData(['theme', 'footer', 'position']) === 'hide'): ?>class="displayNone"<?php endif; ?>>
|
||||||
<?php
|
<?php echo ($position === 'site') ? '<div class="container"><div class="row" id="footersite">' : '<div class="container-large <?php echo $positionFixed; ?>"><div class="row" id="footerbody">'; ?>
|
||||||
if ($position === 'site'): ?>
|
|
||||||
<div class="container"><div class="row" id="footersite">
|
|
||||||
<?php else: ?>
|
|
||||||
<div class="container-large <?php echo $positionFixed; ?>"><div class="row" id="footerbody">
|
|
||||||
<?php endif?>
|
|
||||||
<!-- Mise en page -->
|
<!-- Mise en page -->
|
||||||
<?php switch($this->getData(['theme', 'footer', 'template'])) {
|
<?php switch($this->getData(['theme', 'footer', 'template'])) {
|
||||||
case '1' :
|
case '1' :
|
||||||
@ -282,12 +260,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
<?php
|
<?php echo $this->getData(['theme', 'footer', 'position']) === 'site'? '</div>' : '';?>
|
||||||
if ($this->getData(['theme', 'footer', 'position']) === 'site') {
|
|
||||||
echo '</div>';
|
|
||||||
} ?>
|
|
||||||
<!-- Lien remonter en haut -->
|
<!-- Lien remonter en haut -->
|
||||||
<div id="backToTop"><?php echo template::ico('up'); ?></div>
|
<div id="backToTop"><?php echo template::ico('up'); ?></div>
|
||||||
<?php $this->showScript();?>
|
<?php $this->showScript();?>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
Loading…
Reference in New Issue
Block a user