2018-04-17 15:33:01 +02:00
|
|
|
<?php $layout = new layout($this); ?>
|
|
|
|
<!DOCTYPE html>
|
2018-11-14 19:05:55 +01:00
|
|
|
<html prefix="og: http://ogp.me/ns#" lang="fr">
|
2018-04-17 15:33:01 +02:00
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<?php $layout->showMetaTitle(); ?>
|
|
|
|
<?php $layout->showMetaDescription(); ?>
|
2018-10-24 15:50:07 +02:00
|
|
|
<?php $layout->showMetaType(); ?>
|
|
|
|
<?php $layout->showMetaImage(); ?>
|
2018-04-17 15:33:01 +02:00
|
|
|
<?php $layout->showFavicon(); ?>
|
|
|
|
<?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); ?>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'); ?>">
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<?php $layout->showStyle(); ?>
|
|
|
|
<?php $layout->showBar(); ?>
|
|
|
|
<?php $layout->showNotification(); ?>
|
2019-01-22 13:46:35 +01:00
|
|
|
<?php if($this->getData(['theme', 'menu', 'position']) === 'body-first' || $this->getData(['theme', 'menu', 'position']) === 'top' ): ?>
|
2018-04-17 15:33:01 +02:00
|
|
|
<!-- Menu dans le fond du site avant la bannière -->
|
2019-01-24 14:26:54 +01:00
|
|
|
<nav
|
|
|
|
<?php
|
|
|
|
// Détermine si le menu est fixe en haut de page lorsque l'utilisateur n'est pas connecté
|
|
|
|
if($this->getData(['theme', 'menu', 'position']) === 'top' &&
|
|
|
|
$this->getData(['theme', 'menu', 'fixed']) === true &&
|
|
|
|
$this->getUser('password') !== $this->getInput('ZWII_USER_PASSWORD'))
|
|
|
|
|
|
|
|
{echo 'id="navfixed"';} ?>
|
|
|
|
>
|
2018-04-17 15:33:01 +02:00
|
|
|
<div id="toggle"><?php echo template::ico('menu'); ?></div>
|
|
|
|
<div id="menu" class="
|
2019-01-22 13:46:35 +01:00
|
|
|
<?php if($this->getData(['theme', 'menu', 'position']) === 'top'){echo 'container-large';}else{echo'container';}
|
2018-04-17 15:33:01 +02:00
|
|
|
?>">
|
2018-11-13 20:11:51 +01:00
|
|
|
|
|
|
|
<?php $layout->showMenu(); ?>
|
2018-04-17 15:33:01 +02:00
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
<?php endif; ?>
|
|
|
|
<?php if($this->getData(['theme', 'header', 'position']) === 'body'): ?>
|
|
|
|
<!-- Bannière dans le fond du site -->
|
|
|
|
<?php
|
|
|
|
if ($this->getData(['theme','header','linkHome'])){
|
|
|
|
echo "<a href='" . helper::baseUrl(false) . "'>" ;} ?>
|
|
|
|
|
|
|
|
<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')
|
|
|
|
): ?>
|
|
|
|
<div class="container">
|
|
|
|
<span><?php echo $this->getData(['config', 'title']); ?></span>
|
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|
2019-01-03 15:29:57 +01:00
|
|
|
</header>
|
2018-04-17 15:33:01 +02:00
|
|
|
<?php
|
|
|
|
if ($this->getData(['theme','header','linkHome'])){echo "</a>";}
|
2019-01-03 15:29:57 +01:00
|
|
|
?>
|
2018-04-17 15:33:01 +02:00
|
|
|
<?php endif; ?>
|
2019-01-03 15:29:57 +01:00
|
|
|
|
2018-04-17 15:33:01 +02:00
|
|
|
<?php if($this->getData(['theme', 'menu', 'position']) === 'body-second'): ?>
|
|
|
|
<!-- Menu dans le fond du site après la bannière -->
|
|
|
|
<nav>
|
|
|
|
<div id="toggle"><?php echo template::ico('menu'); ?></div>
|
|
|
|
<div id="menu" class="container">
|
|
|
|
<?php $layout->showMenu(); ?>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
<?php endif; ?>
|
|
|
|
<!-- Site -->
|
|
|
|
<div id="site" class="container">
|
|
|
|
<?php if($this->getData(['theme', 'menu', 'position']) === 'site-first'): ?>
|
|
|
|
<!-- Menu dans le site avant la bannière -->
|
|
|
|
<nav>
|
|
|
|
<div id="toggle"><?php echo template::ico('menu'); ?></div>
|
|
|
|
<div id="menu" class="container">
|
|
|
|
<?php $layout->showMenu(); ?>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
<?php endif; ?>
|
|
|
|
<?php if(
|
|
|
|
$this->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'
|
|
|
|
)
|
|
|
|
): ?>
|
|
|
|
<!-- Bannière dans le site -->
|
|
|
|
<?php
|
|
|
|
if ($this->getData(['theme','header','linkHome'])){
|
|
|
|
echo "<a href='" . helper::baseUrl(false) . "'>" ;} ?>
|
|
|
|
<header <?php if($this->getData(['theme', 'header', 'position']) === 'hide'): ?>class="displayNone"<?php endif; ?>>
|
|
|
|
<?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')
|
|
|
|
): ?>
|
2018-04-17 16:42:39 +02:00
|
|
|
<div class="container">
|
|
|
|
<span><?php echo $this->getData(['config', 'title']); ?></span>
|
|
|
|
</div>
|
2018-04-17 15:33:01 +02:00
|
|
|
<?php endif; ?>
|
|
|
|
</header>
|
2018-04-17 16:42:39 +02:00
|
|
|
<?php
|
|
|
|
if ($this->getData(['theme','header','linkHome'])){echo "</a>";} ?>
|
|
|
|
<?php endif; ?>
|
2018-04-17 15:33:01 +02:00
|
|
|
<?php if(
|
|
|
|
$this->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'
|
|
|
|
)
|
2018-11-27 18:21:30 +01:00
|
|
|
): ?>
|
2019-01-18 10:15:22 +01:00
|
|
|
<!-- Menu dans le site après la bannière -->
|
|
|
|
<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">
|
|
|
|
<?php $layout->showMenu(); ?>
|
|
|
|
</div>
|
|
|
|
</nav>
|
2018-04-17 15:33:01 +02:00
|
|
|
<?php endif; ?>
|
2019-01-18 10:15:22 +01:00
|
|
|
<!-- Corps de page -->
|
|
|
|
<section>
|
2019-01-11 22:24:46 +01:00
|
|
|
<?php
|
2019-01-16 20:30:30 +01:00
|
|
|
// Gabarit :
|
2019-01-14 20:54:55 +01:00
|
|
|
// Récupérer la config de la page courante
|
2019-01-30 19:38:17 +01:00
|
|
|
$blocks = explode('-',$this->getData(['page',$this->getUrl(0),'block']));
|
2019-01-14 20:54:55 +01:00
|
|
|
// Initialiser
|
2019-01-03 19:54:44 +01:00
|
|
|
$blockleft=$blockright="";
|
|
|
|
switch (sizeof($blocks)) {
|
|
|
|
case 1 : // une colonne
|
2019-01-16 20:30:30 +01:00
|
|
|
$content = 'col'. $blocks[0] ;
|
2019-01-03 19:54:44 +01:00
|
|
|
break;
|
|
|
|
case 2 : // 2 blocks
|
|
|
|
if ($blocks[0] < $blocks[1]) { // détermine la position de la colonne
|
2019-01-03 20:47:00 +01:00
|
|
|
$blockleft = 'col'. $blocks[0];
|
2019-01-03 19:54:44 +01:00
|
|
|
$content = 'col'. $blocks[1] ;
|
|
|
|
} else {
|
|
|
|
$content = 'col' . $blocks[0];
|
2019-01-03 20:47:00 +01:00
|
|
|
$blockright = 'col' . $blocks[1];
|
2019-01-03 19:54:44 +01:00
|
|
|
}
|
2019-01-03 15:29:57 +01:00
|
|
|
break;
|
2019-01-03 19:54:44 +01:00
|
|
|
case 3 : // 3 blocks
|
|
|
|
$blockleft = 'col' . $blocks[0];
|
|
|
|
$content = 'col' . $blocks[1];
|
2019-01-14 20:54:55 +01:00
|
|
|
$blockright = 'col' . $blocks[2];
|
2019-01-16 20:30:30 +01:00
|
|
|
}
|
2019-01-26 19:40:17 +01:00
|
|
|
if (sizeof($blocks) === 1 ||
|
|
|
|
($this->getData(['page', $this->getUrl(2), 'moduleId']) == '' &&
|
|
|
|
$this->getUrl(1) == 'config')
|
|
|
|
) {
|
2019-01-18 10:15:22 +01:00
|
|
|
?><?php $layout->showContent();?><?php
|
2019-01-16 20:30:30 +01:00
|
|
|
} else {
|
2019-01-18 10:15:22 +01:00
|
|
|
?>
|
|
|
|
<div class="row">
|
2019-01-30 19:38:17 +01:00
|
|
|
<?php if ($blockleft !== "") :?> <div class="<?php echo $blockleft; ?>" id="contentleft">
|
|
|
|
<?php
|
|
|
|
echo $this->getData(['page',$this->getData(['page',$this->getUrl(0),'barLeft']),'content']);
|
|
|
|
?></div> <?php endif; ?>
|
2019-01-16 20:30:30 +01:00
|
|
|
<div class="<?php echo $content; ?>" id="contentsite"><?php $layout->showContent(); ?></div>
|
2019-01-30 19:38:17 +01:00
|
|
|
<?php if ($blockright !== "") :?> <div class="<?php echo $blockright; ?>" id="contentright">
|
|
|
|
<?php echo $this->getData(['page',$this->getData(['page',$this->getUrl(0),'barRight']),'content']);
|
|
|
|
?></div> <?php endif; ?>
|
2019-01-18 10:15:22 +01:00
|
|
|
</div>
|
2019-01-16 20:30:30 +01:00
|
|
|
<?php } ?>
|
2019-01-18 10:15:22 +01:00
|
|
|
</section>
|
2019-01-03 15:29:57 +01:00
|
|
|
<!-- footer -->
|
2018-04-17 15:33:01 +02:00
|
|
|
<?php if(
|
|
|
|
$this->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'
|
|
|
|
)
|
|
|
|
): ?>
|
|
|
|
<!-- Pied de page dans le site -->
|
2018-09-22 19:09:20 +02:00
|
|
|
|
2018-04-17 15:33:01 +02:00
|
|
|
<footer <?php if($this->getData(['theme', 'footer', 'position']) === 'hide'): ?>class="displayNone"<?php endif; ?>>
|
|
|
|
<div class="container">
|
2018-12-30 14:23:08 +01:00
|
|
|
<div class="row" id="footersite">
|
|
|
|
<div class="col4" id="footersiteLeft"> <!-- bloc gauche -->
|
2018-09-23 18:55:08 +02:00
|
|
|
<?php
|
|
|
|
if($this->getData(['theme', 'footer', 'textPosition']) === 'left') {
|
|
|
|
$layout->showFooterText();}
|
|
|
|
?>
|
|
|
|
<?php
|
|
|
|
if($this->getData(['theme', 'footer', 'socialsPosition']) === 'left') {
|
|
|
|
$layout->showSocials(); }
|
|
|
|
?>
|
|
|
|
<?php
|
|
|
|
if($this->getData(['theme', 'footer', 'copyrightPosition']) === 'left') {
|
|
|
|
$layout->showCopyright(); }
|
|
|
|
?>
|
2018-09-09 21:28:05 +02:00
|
|
|
</div>
|
2018-12-30 14:23:08 +01:00
|
|
|
<div class="col4" id="footersiteCenter"> <!-- bloc central -->
|
2018-09-23 18:55:08 +02:00
|
|
|
<?php
|
|
|
|
if($this->getData(['theme', 'footer', 'textPosition']) === 'center') {
|
|
|
|
$layout->showFooterText(); }
|
|
|
|
?>
|
|
|
|
<?php
|
|
|
|
if($this->getData(['theme', 'footer', 'socialsPosition']) === 'center') {
|
|
|
|
$layout->showSocials(); }
|
|
|
|
?>
|
|
|
|
<?php
|
|
|
|
if($this->getData(['theme', 'footer', 'copyrightPosition']) === 'center') {
|
|
|
|
$layout->showCopyright(); }
|
|
|
|
?>
|
|
|
|
</div>
|
2018-12-30 14:23:08 +01:00
|
|
|
<div class="col4" id="footersiteRight"> <!-- bloc droite -->
|
2018-09-23 18:55:08 +02:00
|
|
|
<?php
|
|
|
|
if($this->getData(['theme', 'footer', 'textPosition']) === 'right') {
|
|
|
|
$layout->showFooterText(); }
|
|
|
|
?>
|
|
|
|
<?php
|
|
|
|
if($this->getData(['theme', 'footer', 'socialsPosition']) === 'right') {
|
|
|
|
$layout->showSocials(); }
|
|
|
|
?>
|
|
|
|
<?php
|
|
|
|
if($this->getData(['theme', 'footer', 'copyrightPosition']) === 'right') {
|
|
|
|
$layout->showCopyright(); }
|
|
|
|
?>
|
2018-09-09 21:28:05 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-04-17 15:33:01 +02:00
|
|
|
</div>
|
|
|
|
</footer>
|
|
|
|
<?php endif; ?>
|
|
|
|
</div>
|
|
|
|
<?php if($this->getData(['theme', 'footer', 'position']) === 'body'): ?>
|
|
|
|
<!-- Pied de page dans le fond du site -->
|
|
|
|
<footer>
|
2018-09-22 19:09:20 +02:00
|
|
|
<div class="container-large">
|
2018-12-30 14:23:08 +01:00
|
|
|
<div class="row" id="footerbody">
|
|
|
|
<div class="col4" id="footerbodyLeft"> <!-- bloc gauche -->
|
2018-09-23 18:55:08 +02:00
|
|
|
<?php
|
|
|
|
if($this->getData(['theme', 'footer', 'textPosition']) === 'left') {
|
|
|
|
$layout->showFooterText(); }
|
|
|
|
?>
|
|
|
|
<?php
|
|
|
|
if($this->getData(['theme', 'footer', 'socialsPosition']) === 'left') {
|
|
|
|
$layout->showSocials(); }
|
|
|
|
?>
|
|
|
|
<?php
|
|
|
|
if($this->getData(['theme', 'footer', 'copyrightPosition']) === 'left') {
|
|
|
|
$layout->showCopyright(); }
|
|
|
|
?>
|
2018-09-09 21:28:05 +02:00
|
|
|
</div>
|
2018-12-30 14:23:08 +01:00
|
|
|
<div class="col4" id="footerbodyCenter"> <!-- bloc central -->
|
2018-09-23 18:55:08 +02:00
|
|
|
<?php
|
|
|
|
if($this->getData(['theme', 'footer', 'textPosition']) === 'center') {
|
|
|
|
$layout->showFooterText(); }
|
|
|
|
?>
|
|
|
|
<?php
|
|
|
|
if($this->getData(['theme', 'footer', 'socialsPosition']) === 'center') {
|
|
|
|
$layout->showSocials(); }
|
|
|
|
?>
|
|
|
|
<?php
|
|
|
|
if($this->getData(['theme', 'footer', 'copyrightPosition']) === 'center') {
|
|
|
|
$layout->showCopyright(); }
|
|
|
|
?>
|
|
|
|
</div>
|
2018-12-30 14:23:08 +01:00
|
|
|
<div class="col4" id="footerbodyRight"> <!-- bloc droite -->
|
2018-09-23 18:55:08 +02:00
|
|
|
<?php
|
|
|
|
if($this->getData(['theme', 'footer', 'textPosition']) === 'right') {
|
|
|
|
$layout->showFooterText(); }
|
|
|
|
?>
|
|
|
|
<?php
|
|
|
|
if($this->getData(['theme', 'footer', 'socialsPosition']) === 'right') {
|
|
|
|
$layout->showSocials(); }
|
|
|
|
?>
|
|
|
|
<?php
|
|
|
|
if($this->getData(['theme', 'footer', 'copyrightPosition']) === 'right') {
|
|
|
|
$layout->showCopyright();}
|
|
|
|
?>
|
2018-09-09 21:28:05 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2018-09-22 19:09:20 +02:00
|
|
|
</div>
|
2018-04-17 15:33:01 +02:00
|
|
|
</footer>
|
|
|
|
<?php endif; ?>
|
|
|
|
<!-- Lien remonter en haut -->
|
|
|
|
<div id="backToTop"><?php echo template::ico('up'); ?></div>
|
|
|
|
<?php $layout->showAnalytics(); ?>
|
|
|
|
<?php $layout->showScript(); ?>
|
|
|
|
</body>
|
2019-01-18 10:15:22 +01:00
|
|
|
</html>
|