2019-05-02 13:21:48 +02:00
|
|
|
<?php $layout = new layout($this); ?>
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html prefix="og: http://ogp.me/ns#" lang="fr">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<?php $layout->showMetaTitle(); ?>
|
|
|
|
<?php $layout->showMetaDescription(); ?>
|
|
|
|
<?php $layout->showMetaType(); ?>
|
|
|
|
<?php $layout->showMetaImage(); ?>
|
|
|
|
<?php $layout->showFavicon(); ?>
|
|
|
|
<?php $layout->showVendor(); ?>
|
|
|
|
<?php $layout->showAnalytics(); ?>
|
|
|
|
<link rel="stylesheet" href="<?php echo helper::baseUrl(false); ?>core/layout/common.css">
|
2019-05-27 20:35:04 +02:00
|
|
|
<link rel="stylesheet" href="<?php echo helper::baseUrl(false); ?>site/data/theme.css?<?php echo md5_file(self::DATA_DIR.'theme.css'); ?>">
|
|
|
|
<link rel="stylesheet" href="<?php echo helper::baseUrl(false); ?>site/data/custom.css?<?php echo md5_file(self::DATA_DIR.'custom.css'); ?>">
|
2019-05-02 13:21:48 +02:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<?php $layout->showStyle(); ?>
|
|
|
|
<?php $layout->showBar(); ?>
|
|
|
|
<?php $layout->showNotification(); ?>
|
|
|
|
<?php if($this->getData(['theme', 'menu', 'position']) === 'body-first' || $this->getData(['theme', 'menu', 'position']) === 'top' ): ?>
|
|
|
|
<!-- Menu dans le fond du site avant la bannière -->
|
|
|
|
<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) {
|
|
|
|
if ($this->getUser('password') !== $this->getInput('ZWII_USER_PASSWORD'))
|
|
|
|
{echo 'id="navfixedlogout"';}
|
|
|
|
elseif ($this->getUrl(0) !== 'theme')
|
|
|
|
{echo 'id="navfixedconnected"';}
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
>
|
|
|
|
<div id="toggle"><?php echo template::ico('menu'); ?></div>
|
|
|
|
<div id="menu" class="
|
|
|
|
<?php if($this->getData(['theme', 'menu', 'position']) === 'top'){echo 'container-large';}else{echo'container';}
|
|
|
|
?>">
|
|
|
|
|
|
|
|
<?php $layout->showMenu(); ?>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
<?php endif; ?>
|
|
|
|
<?php if($this->getData(['theme', 'header', 'position']) === 'body'): ?>
|
|
|
|
<!-- Bannière dans le fond du site -->
|
|
|
|
<header>
|
|
|
|
<?php
|
|
|
|
if ($this->getData(['theme','header','linkHome'])){
|
|
|
|
echo "<a href='" . helper::baseUrl(false) . "'>" ;} ?>
|
|
|
|
<?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; ?>
|
|
|
|
<?php
|
|
|
|
if ($this->getData(['theme','header','linkHome'])){echo "</a>";}
|
|
|
|
?>
|
|
|
|
</header>
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
<?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')
|
|
|
|
): ?>
|
|
|
|
<div class="container">
|
|
|
|
<span><?php echo $this->getData(['config', 'title']); ?></span>
|
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|
|
|
|
</header>
|
|
|
|
<?php
|
|
|
|
if ($this->getData(['theme','header','linkHome'])){echo "</a>";} ?>
|
|
|
|
<?php endif; ?>
|
|
|
|
<?php if(
|
|
|
|
$this->getData(['theme', 'menu', 'position']) === 'site-second' ||
|
|
|
|
$this->getData(['theme', 'menu', 'position']) === 'site'
|
|
|
|
// Affiche toujours le menu pour l'édition du thème
|
|
|
|
OR (
|
|
|
|
$this->getData(['theme', 'menu', 'position']) === 'hide'
|
|
|
|
AND $this->getUrl(0) === 'theme'
|
|
|
|
)
|
|
|
|
): ?>
|
|
|
|
<!-- 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>
|
|
|
|
<?php endif; ?>
|
|
|
|
<!-- Corps de page -->
|
|
|
|
<section>
|
|
|
|
<?php
|
|
|
|
// Gabarit :
|
|
|
|
// Récupérer la config de la page courante
|
|
|
|
$blocks = explode('-',$this->getData(['page',$this->getUrl(0),'block']));
|
2019-05-05 15:42:49 +02:00
|
|
|
// recherche si la seconde URL fait référence à un article pour appliquer les barres
|
|
|
|
$blogItem = false;
|
|
|
|
if (is_array ($this->getdata(['module',$this->getData(['page', $this->getUrl(0), 'moduleId'])]))) {
|
|
|
|
$blogItem = array_key_exists($this->getUrl(1),$this->getdata(['module',$this->getData(['page', $this->getUrl(0), 'moduleId'])]));
|
|
|
|
}
|
2019-05-02 13:21:48 +02:00
|
|
|
// Initialiser
|
|
|
|
$blockleft=$blockright="";
|
|
|
|
switch (sizeof($blocks)) {
|
|
|
|
case 1 : // une colonne
|
|
|
|
$content = 'col'. $blocks[0] ;
|
|
|
|
break;
|
|
|
|
case 2 : // 2 blocks
|
|
|
|
if ($blocks[0] < $blocks[1]) { // détermine la position de la colonne
|
|
|
|
$blockleft = 'col'. $blocks[0];
|
|
|
|
$content = 'col'. $blocks[1] ;
|
|
|
|
} else {
|
|
|
|
$content = 'col' . $blocks[0];
|
|
|
|
$blockright = 'col' . $blocks[1];
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case 3 : // 3 blocks
|
|
|
|
$blockleft = 'col' . $blocks[0];
|
|
|
|
$content = 'col' . $blocks[1];
|
|
|
|
$blockright = 'col' . $blocks[2];
|
|
|
|
}
|
2019-05-05 15:42:49 +02:00
|
|
|
// Page pleine pour la configuration des modules et l'édition des pages sauf l'affichae d'un article de blog
|
|
|
|
if ((sizeof($blocks) === 1 ||
|
|
|
|
!empty($this->getUrl(1))) &&
|
|
|
|
$blogItem === false
|
|
|
|
) { // Pleine page en mode configuration
|
2019-05-02 13:21:48 +02:00
|
|
|
$layout->showContent();
|
|
|
|
} else {
|
|
|
|
?>
|
|
|
|
<div class="row siteContainer">
|
|
|
|
<?php
|
|
|
|
if ($blockleft !== "") :?>
|
|
|
|
<div class="<?php echo $blockleft; ?>" id="contentLeft">
|
2019-05-03 22:06:15 +02:00
|
|
|
<?php $layout->showBarContentLeft(); ?>
|
2019-05-02 13:21:48 +02:00
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|
|
|
|
<div class="<?php echo $content; ?>
|
|
|
|
" id="contentSite"><?php $layout->showContent(); ?>
|
2019-05-05 15:42:49 +02:00
|
|
|
|
2019-05-02 13:21:48 +02:00
|
|
|
</div>
|
|
|
|
<?php
|
|
|
|
if ($blockright !== "") :?>
|
|
|
|
<div class="<?php echo $blockright; ?>" id="contentRight">
|
2019-05-03 22:06:15 +02:00
|
|
|
<?php $layout->showBarContentRight(); ?>
|
2019-05-02 13:21:48 +02:00
|
|
|
</div>
|
|
|
|
<?php endif; ?>
|
|
|
|
</div>
|
|
|
|
<?php } ?>
|
|
|
|
</section>
|
|
|
|
<!-- footer -->
|
|
|
|
<?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 -->
|
|
|
|
|
|
|
|
<footer <?php if($this->getData(['theme', 'footer', 'position']) === 'hide'): ?>class="displayNone"<?php endif; ?>>
|
|
|
|
<div class="container">
|
|
|
|
<div class="row" id="footersite">
|
|
|
|
<div class="col4" id="footersiteLeft"> <!-- bloc gauche -->
|
|
|
|
<?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(); }
|
|
|
|
?>
|
|
|
|
</div>
|
|
|
|
<div class="col4" id="footersiteCenter"> <!-- bloc central -->
|
|
|
|
<?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>
|
|
|
|
<div class="col4" id="footersiteRight"> <!-- bloc droite -->
|
|
|
|
<?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(); }
|
|
|
|
?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</footer>
|
|
|
|
<?php endif; ?>
|
|
|
|
</div>
|
|
|
|
<?php if($this->getData(['theme', 'footer', 'position']) === 'body'): ?>
|
|
|
|
<!-- Pied de page dans le fond du site -->
|
|
|
|
<footer>
|
|
|
|
<div class="container-large">
|
|
|
|
<div class="row" id="footerbody">
|
|
|
|
<div class="col4" id="footerbodyLeft"> <!-- bloc gauche -->
|
|
|
|
<?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(); }
|
|
|
|
?>
|
|
|
|
</div>
|
|
|
|
<div class="col4" id="footerbodyCenter"> <!-- bloc central -->
|
|
|
|
<?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>
|
|
|
|
<div class="col4" id="footerbodyRight"> <!-- bloc droite -->
|
|
|
|
<?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();}
|
|
|
|
?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</footer>
|
|
|
|
<?php endif; ?>
|
|
|
|
<!-- Lien remonter en haut -->
|
|
|
|
<div id="backToTop"><?php echo template::ico('up'); ?></div>
|
2019-05-08 10:57:00 +02:00
|
|
|
<?php $layout->showScript();?>
|
2019-05-02 13:21:48 +02:00
|
|
|
</body>
|
2019-03-08 11:22:19 +01:00
|
|
|
</html>
|