2019-05-02 13:21:48 +02:00
|
|
|
<!DOCTYPE html>
|
2021-06-14 18:54:31 +02:00
|
|
|
<html prefix="og: http://ogp.me/ns#" lang="<?php echo self::$i18n;?>">
|
2019-09-17 18:22:43 +02:00
|
|
|
<head>
|
2020-11-01 07:56:04 +01:00
|
|
|
<meta charset="UTF-8">
|
2019-09-17 18:22:43 +02:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
2021-06-14 18:37:45 +02:00
|
|
|
<?php $this->showMetaTitle(); ?>
|
|
|
|
<?php $this->showMetaDescription(); ?>
|
|
|
|
<?php $this->showMetaType(); ?>
|
|
|
|
<?php $this->showMetaImage(); ?>
|
|
|
|
<?php $this->showFavicon(); ?>
|
|
|
|
<?php $this->showVendor(); ?>
|
|
|
|
<?php $this->showAnalytics(); ?>
|
2021-03-21 14:12:32 +01:00
|
|
|
<link rel="stylesheet" href="<?php echo helper::baseUrl(false); ?>core/layout/common.css?<?php echo md5_file('core/layout/common.css');?>">
|
2020-03-23 16:16:45 +01:00
|
|
|
<link rel="stylesheet" href="<?php echo helper::baseUrl(false) . self::DATA_DIR; ?>theme.css?<?php echo md5_file(self::DATA_DIR.'theme.css'); ?>">
|
|
|
|
<link rel="stylesheet" href="<?php echo helper::baseUrl(false) . self::DATA_DIR; ?>custom.css?<?php echo md5_file(self::DATA_DIR.'custom.css'); ?>">
|
2020-11-20 17:08:19 +01:00
|
|
|
<!-- Détection RSS -->
|
|
|
|
<?php if ( ( $this->getData(['page', $this->getUrl(0), 'moduleId']) === 'blog'
|
|
|
|
OR $this->getData(['page', $this->getUrl(0), 'moduleId']) === 'news' )
|
|
|
|
AND $this->getData(['module', $this->getUrl(0), 'config', 'feeds']) === TRUE ): ?>
|
|
|
|
<link rel="alternate" type="application/rss+xml" href="'<?php echo helper::baseUrl(). $this->getUrl(0) . '/rss';?>" title="fLUX rss">
|
|
|
|
<?php endif; ?>
|
2021-06-14 18:37:45 +02:00
|
|
|
<?php $this->showStyle(); ?>
|
2020-03-23 16:16:45 +01:00
|
|
|
<?php if (file_exists(self::DATA_DIR .'head.inc.html')) {
|
2020-06-02 18:49:24 +02:00
|
|
|
include(self::DATA_DIR .'head.inc.html');
|
2019-09-17 18:22:43 +02:00
|
|
|
}?>
|
|
|
|
</head>
|
|
|
|
<body>
|
2020-06-17 19:07:51 +02:00
|
|
|
<?php if($this->getUser('group') > self::GROUP_MEMBER): ?>
|
2021-06-14 18:37:45 +02:00
|
|
|
<?php $this->showBar(); ?>
|
2020-06-17 19:07:51 +02:00
|
|
|
<?php endif;?>
|
2021-06-14 18:37:45 +02:00
|
|
|
<?php $this->showNotification(); ?>
|
2019-09-17 18:22:43 +02:00
|
|
|
<?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 -->
|
2020-09-25 16:19:07 +02:00
|
|
|
<!-- Détermine si le menu est fixe en haut de page lorsque l'utilisateur n'est pas connecté -->
|
|
|
|
<?php
|
|
|
|
if ( $this->getData(['theme', 'menu', 'position']) === 'top'
|
|
|
|
AND $this->getData(['theme', 'menu', 'fixed']) === true
|
2021-10-24 09:57:25 +02:00
|
|
|
AND $this->getUser('password') === $this->getInput('ZWII_USER_PASSWORD',true)
|
2020-09-26 17:13:59 +02:00
|
|
|
AND $this->getUser('group') > self::GROUP_MEMBER) {
|
2020-09-25 16:19:07 +02:00
|
|
|
echo '<nav id="navfixedconnected" >';
|
|
|
|
} else {
|
|
|
|
echo '<nav id="navfixedlogout" >';
|
2020-09-25 11:49:11 +02:00
|
|
|
}
|
2020-09-25 16:19:07 +02:00
|
|
|
?>
|
|
|
|
<!-- Menu Burger -->
|
2019-12-10 17:36:13 +01:00
|
|
|
<div id="toggle">
|
2021-10-24 18:01:13 +02:00
|
|
|
<?php echo $this->getData(['theme','menu','burgerTitle']) ? '<div class="notranslate" id="burgerText">' . $this->getData(['locale', 'title']) . '</div>' : '' ;?>
|
2019-12-10 17:36:13 +01:00
|
|
|
<?php echo template::ico('menu',null,null,'2em'); ?></div>
|
2021-10-24 18:01:13 +02:00
|
|
|
<div id="menu" <?php echo $this->getData(['theme', 'menu', 'position']) === 'top' ? 'class="container-large"' : 'class="container"'; ?> >
|
2021-06-14 18:37:45 +02:00
|
|
|
<?php $this->showMenu(); ?>
|
2019-09-17 18:22:43 +02:00
|
|
|
</div> <!--fin menu -->
|
|
|
|
</nav>
|
|
|
|
<?php endif; ?>
|
|
|
|
<?php if($this->getData(['theme', 'header', 'position']) === 'body'): ?>
|
|
|
|
<!-- Bannière dans le fond du site -->
|
2021-10-24 16:43:47 +02:00
|
|
|
<header <?php if($this->getData(['theme', 'header', 'tinyHidden']) === true): ?>class="bannerDisplay"<?php endif;?>>
|
2021-10-24 18:01:13 +02:00
|
|
|
<?php ?>
|
|
|
|
<?php echo $this->getData(['theme','header','linkHomePage']) ? '<a href="' . helper::baseUrl(false) . '">' : ''; ?>
|
2019-11-11 08:57:14 +01:00
|
|
|
<div id="headerContainer" class="container">
|
2019-09-17 18:22:43 +02:00
|
|
|
<?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')
|
|
|
|
): ?>
|
2021-09-17 11:47:39 +02:00
|
|
|
<span class="notranslate" id="themeHeaderTitle"><?php echo $this->getData(['locale', 'title']); ?></span>
|
2019-11-09 15:36:14 +01:00
|
|
|
<?php else: ?>
|
|
|
|
<span id="themeHeaderTitle"> </span>
|
2019-09-17 18:22:43 +02:00
|
|
|
<?php endif; ?>
|
2019-11-12 21:36:02 +01:00
|
|
|
</div> <!--fin container -->
|
2021-10-24 18:01:13 +02:00
|
|
|
<?php echo $this->getData(['theme','header','linkHomePage']) ? '</a>' : ''; ?>
|
2019-09-17 18:22:43 +02:00
|
|
|
</header>
|
2019-05-02 13:21:48 +02:00
|
|
|
<?php endif; ?>
|
|
|
|
|
2019-09-17 18:22:43 +02:00
|
|
|
<?php if($this->getData(['theme', 'menu', 'position']) === 'body-second'): ?>
|
|
|
|
<!-- Menu dans le fond du site après la bannière -->
|
|
|
|
<nav>
|
2019-12-10 17:36:13 +01:00
|
|
|
<div id="toggle">
|
2021-10-24 18:01:13 +02:00
|
|
|
<?php echo $this->getData(['theme','menu','burgerTitle']) ? '<div class="notranslate" id="burgerText">' . $this->getData(['locale', 'title']) . '</div>' : ''; ?>
|
2019-12-10 17:36:13 +01:00
|
|
|
<?php echo template::ico('menu',null,null,'2em'); ?></div>
|
2021-06-14 18:37:45 +02:00
|
|
|
<div id="menu" class="container"><?php $this->showMenu(); ?></div>
|
2019-09-17 18:22:43 +02:00
|
|
|
</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>
|
2019-12-10 17:36:13 +01:00
|
|
|
<div id="toggle">
|
2021-10-24 18:01:13 +02:00
|
|
|
<?php echo $this->getData(['theme','menu','burgerTitle']) ? '<div class="notranslate" id="burgerText">' . $this->getData(['locale', 'title']) . '</div>' : ''; ?>
|
2019-12-10 17:36:13 +01:00
|
|
|
<?php echo template::ico('menu',null,null,'2em'); ?></div>
|
2021-06-14 18:37:45 +02:00
|
|
|
<div id="menu" class="container"><?php $this->showMenu(); ?></div>
|
2019-09-17 18:22:43 +02:00
|
|
|
</nav>
|
|
|
|
<?php endif; ?>
|
2019-05-02 13:21:48 +02:00
|
|
|
<?php if(
|
2021-10-24 18:01:13 +02:00
|
|
|
$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 echo $this->getData(['theme','header','linkHomePage']) ? '<a href="' . helper::baseUrl(false) . '">' : ''; ?>
|
|
|
|
<header class="
|
|
|
|
<?php echo $this->getData(['theme', 'header', 'position']) === 'hide' ? 'displayNone' : ''; ?>
|
|
|
|
<?php echo $this->getData(['theme', 'header', 'tinyHidden']) ? ' bannerDisplay' : ''; ?>
|
|
|
|
">
|
|
|
|
<div id="headerContainer" class="container">
|
|
|
|
<?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')
|
|
|
|
): ?>
|
|
|
|
<span class="notranslate" id="themeHeaderTitle"><?php echo $this->getData(['locale', 'title']); ?></span>
|
|
|
|
<?php else: ?>
|
|
|
|
<span id="themeHeaderTitle"> </span>
|
|
|
|
<?php endif; ?>
|
|
|
|
</div> <!--fin container -->
|
|
|
|
</header>
|
|
|
|
<?php echo $this->getData(['theme','header','linkHomePage']) ? '</a>' : ''; ?>
|
2019-05-02 13:21:48 +02:00
|
|
|
<?php endif; ?>
|
2019-09-17 18:22:43 +02:00
|
|
|
<?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'
|
|
|
|
)
|
2021-10-24 18:01:13 +02:00
|
|
|
): ?>
|
|
|
|
<!-- Menu dans le site après la bannière -->
|
|
|
|
<nav <?php echo $this->getData(['theme', 'menu', 'position']) === 'hide' ? 'class="displayNone"' : ''; ?>>
|
|
|
|
<div id="toggle">
|
|
|
|
<?php echo $this->getData(['theme','menu','burgerTitle']) ? '<div class="notranslate" id="burgerText">' . $this->getData(['locale', 'title']) . '</div>' : ''; ?>
|
|
|
|
<?php echo template::ico('menu',null,null,'2em'); ?></div>
|
|
|
|
<div id="menu" class="container"><?php $this->showMenu(); ?></div>
|
|
|
|
</nav>
|
2019-09-17 18:22:43 +02:00
|
|
|
<?php endif; ?>
|
|
|
|
<!-- Corps de page -->
|
|
|
|
<section>
|
2020-06-02 18:49:24 +02:00
|
|
|
<?php
|
2019-09-17 18:22:43 +02:00
|
|
|
// Gabarit :
|
|
|
|
// Récupérer la config de la page courante
|
|
|
|
$blocks = explode('-',$this->getData(['page',$this->getUrl(0),'block']));
|
|
|
|
// Initialiser
|
|
|
|
$blockleft=$blockright="";
|
|
|
|
switch (sizeof($blocks)) {
|
|
|
|
case 1 : // une colonne
|
2020-06-02 18:49:24 +02:00
|
|
|
$content = 'col'. $blocks[0] ;
|
|
|
|
break;
|
|
|
|
case 2 : // 2 blocs
|
2019-09-17 18:22:43 +02:00
|
|
|
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];
|
2020-06-02 18:49:24 +02:00
|
|
|
$blockright = 'col' . $blocks[1];
|
2019-09-17 18:22:43 +02:00
|
|
|
}
|
|
|
|
break;
|
2020-06-02 18:49:24 +02:00
|
|
|
case 3 : // 3 blocs
|
2019-09-17 18:22:43 +02:00
|
|
|
$blockleft = 'col' . $blocks[0];
|
|
|
|
$content = 'col' . $blocks[1];
|
2020-06-02 18:49:24 +02:00
|
|
|
$blockright = 'col' . $blocks[2];
|
2019-09-17 18:22:43 +02:00
|
|
|
}
|
2020-06-02 18:49:24 +02:00
|
|
|
// Page pleine pour la configuration des modules et l'édition des pages sauf l'affichage d'un article de blog
|
2019-09-17 18:22:43 +02:00
|
|
|
$pattern = ['config','edit','add','comment','data'];
|
2020-06-02 18:49:24 +02:00
|
|
|
if ((sizeof($blocks) === 1 ||
|
2019-09-17 18:22:43 +02:00
|
|
|
in_array($this->getUrl(1),$pattern) )
|
|
|
|
) { // Pleine page en mode configuration
|
2021-06-14 18:37:45 +02:00
|
|
|
$this->showContent();
|
2020-03-23 16:16:45 +01:00
|
|
|
if (file_exists(self::DATA_DIR . 'body.inc.html')) {
|
2020-06-02 18:49:24 +02:00
|
|
|
include( self::DATA_DIR . 'body.inc.html');
|
|
|
|
}
|
2019-09-17 18:22:43 +02:00
|
|
|
} else {
|
|
|
|
?>
|
2020-06-02 18:49:24 +02:00
|
|
|
<div class="row siteContainer">
|
|
|
|
<?php
|
|
|
|
if ($blockleft !== "") :?>
|
2021-06-14 18:37:45 +02:00
|
|
|
<div class="<?php echo $blockleft; ?>" id="contentLeft"><aside><?php $this->showBarContentLeft(); ?></aside></div>
|
2019-09-17 18:22:43 +02:00
|
|
|
<?php endif; ?>
|
2020-11-21 17:49:24 +01:00
|
|
|
<div class="<?php echo $content; ?>" id="contentSite">
|
2021-06-14 18:37:45 +02:00
|
|
|
<?php $this->showContent();
|
2020-03-23 16:16:45 +01:00
|
|
|
if (file_exists(self::DATA_DIR . 'body.inc.html')) {
|
2020-06-02 18:49:24 +02:00
|
|
|
include(self::DATA_DIR . 'body.inc.html');
|
2019-09-17 18:22:43 +02:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
</div>
|
2020-06-02 18:49:24 +02:00
|
|
|
<?php
|
|
|
|
if ($blockright !== "") :?>
|
2021-06-14 18:37:45 +02:00
|
|
|
<div class="<?php echo $blockright; ?>" id="contentRight"><aside><?php $this->showBarContentRight(); ?></aside></div>
|
2020-06-02 18:49:24 +02:00
|
|
|
<?php endif; ?>
|
2019-09-17 18:22:43 +02:00
|
|
|
</div>
|
|
|
|
<?php }
|
|
|
|
?>
|
|
|
|
</section>
|
|
|
|
<!-- footer -->
|
|
|
|
<?php
|
|
|
|
// Déterminer la position
|
2020-04-27 09:12:52 +02:00
|
|
|
$positionFixed = '';
|
2019-09-17 18:22:43 +02:00
|
|
|
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'
|
|
|
|
)
|
2020-06-02 18:49:24 +02:00
|
|
|
) { $position = 'site';
|
2020-02-11 11:05:03 +01:00
|
|
|
} else {
|
2019-09-17 18:22:43 +02:00
|
|
|
$position = 'body';
|
2020-02-02 19:14:57 +01:00
|
|
|
if ( $this->getData(['theme', 'footer', 'fixed']) === true) {
|
|
|
|
$positionFixed = 'footerbodyFixed';
|
|
|
|
}
|
|
|
|
echo '</div>';
|
2019-09-17 18:22:43 +02:00
|
|
|
}
|
|
|
|
?>
|
2020-06-02 18:49:24 +02:00
|
|
|
<!-- Pied de page -->
|
2019-09-17 18:22:43 +02:00
|
|
|
<footer <?php if($this->getData(['theme', 'footer', 'position']) === 'hide'): ?>class="displayNone"<?php endif; ?>>
|
2021-10-24 18:01:13 +02:00
|
|
|
<?php echo ($position === 'site') ? '<div class="container"><div class="row" id="footersite">' : '<div class="container-large <?php echo $positionFixed; ?>"><div class="row" id="footerbody">'; ?>
|
2019-09-17 18:22:43 +02:00
|
|
|
<!-- Mise en page -->
|
|
|
|
<?php switch($this->getData(['theme', 'footer', 'template'])) {
|
|
|
|
case '1' :
|
|
|
|
$class['left'] = "displayNone";
|
|
|
|
$class['center'] = "col12";
|
|
|
|
$class['right'] = "displayNone";
|
|
|
|
break;
|
|
|
|
case '2' :
|
|
|
|
$class['left'] = "col6";
|
|
|
|
$class['center'] = "displayNone";
|
|
|
|
$class['right'] = "col6";
|
|
|
|
break;
|
|
|
|
case '3' :
|
|
|
|
$class['left'] = "col4";
|
|
|
|
$class['center'] = "col4";
|
|
|
|
$class['right'] = "col4";
|
|
|
|
break;
|
|
|
|
case '4' :
|
|
|
|
$class['left'] = "col12";
|
|
|
|
$class['center'] = "col12";
|
|
|
|
$class['right'] = "col12";
|
|
|
|
break;
|
|
|
|
}?>
|
|
|
|
<div class="<?php echo $class['left'];?>" id="footer<?php echo $position;?>Left">
|
2021-06-14 18:37:45 +02:00
|
|
|
<?php if($this->getData(['theme', 'footer', 'textPosition']) === 'left') { $this->showFooterText(); }
|
|
|
|
if($this->getData(['theme', 'footer', 'socialsPosition']) === 'left') { $this->showSocials(); }
|
|
|
|
if($this->getData(['theme', 'footer', 'copyrightPosition']) === 'left') {$this->showCopyright(); }
|
2019-09-17 18:22:43 +02:00
|
|
|
?>
|
|
|
|
</div>
|
|
|
|
<div class="<?php echo $class['center'];?>" id="footer<?php echo $position;?>Center">
|
2021-06-14 18:37:45 +02:00
|
|
|
<?php if($this->getData(['theme', 'footer', 'textPosition']) === 'center') { $this->showFooterText(); }
|
|
|
|
if($this->getData(['theme', 'footer', 'socialsPosition']) === 'center') { $this->showSocials(); }
|
|
|
|
if($this->getData(['theme', 'footer', 'copyrightPosition']) === 'center') { $this->showCopyright(); }
|
2019-09-17 18:22:43 +02:00
|
|
|
?>
|
|
|
|
</div>
|
|
|
|
<div class="<?php echo $class['right'];?>" id="footer<?php echo $position;?>Right">
|
2021-06-14 18:37:45 +02:00
|
|
|
<?php if($this->getData(['theme', 'footer', 'textPosition']) === 'right') { $this->showFooterText(); }
|
|
|
|
if($this->getData(['theme', 'footer', 'socialsPosition']) === 'right') { $this->showSocials(); }
|
|
|
|
if($this->getData(['theme', 'footer', 'copyrightPosition']) === 'right') { $this->showCopyright(); }
|
2019-09-17 18:22:43 +02:00
|
|
|
?>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-05-02 13:21:48 +02:00
|
|
|
</div>
|
2019-09-17 18:22:43 +02:00
|
|
|
</footer>
|
2021-10-24 18:01:13 +02:00
|
|
|
<?php echo $this->getData(['theme', 'footer', 'position']) === 'site'? '</div>' : '';?>
|
2019-09-17 18:22:43 +02:00
|
|
|
<!-- Lien remonter en haut -->
|
|
|
|
<div id="backToTop"><?php echo template::ico('up'); ?></div>
|
2021-06-14 18:37:45 +02:00
|
|
|
<?php $this->showScript();?>
|
2019-05-02 13:21:48 +02:00
|
|
|
</body>
|
2021-10-24 18:01:13 +02:00
|
|
|
</html>
|