[10.0.11] merge 9205
This commit is contained in:
commit
e496e5f322
@ -15,6 +15,10 @@
|
|||||||
- Procédure d'importation :
|
- Procédure d'importation :
|
||||||
- L'importation des données est possible uniquement à partir d'une version 9.
|
- L'importation des données est possible uniquement à partir d'une version 9.
|
||||||
- Une notification est affichée après l'importation.
|
- Une notification est affichée après l'importation.
|
||||||
|
## Version 9.2.06
|
||||||
|
- Correction :
|
||||||
|
- Validation html
|
||||||
|
- Syntaxe du fichier robots.txt
|
||||||
|
|
||||||
## Version 9.2.05
|
## Version 9.2.05
|
||||||
- Correction :
|
- Correction :
|
||||||
|
@ -35,7 +35,7 @@ class common {
|
|||||||
const TEMP_DIR = 'site/tmp/';
|
const TEMP_DIR = 'site/tmp/';
|
||||||
|
|
||||||
// Numéro de version
|
// Numéro de version
|
||||||
const ZWII_VERSION = '10.0.10.dev';
|
const ZWII_VERSION = '10.0.11.dev';
|
||||||
|
|
||||||
public static $actions = [];
|
public static $actions = [];
|
||||||
public static $coreModuleIds = [
|
public static $coreModuleIds = [
|
||||||
@ -707,11 +707,11 @@ class common {
|
|||||||
PHP_EOL .
|
PHP_EOL .
|
||||||
'# ZWII CONFIG ---------' . PHP_EOL .
|
'# ZWII CONFIG ---------' . PHP_EOL .
|
||||||
'User-agent: *' . PHP_EOL .
|
'User-agent: *' . PHP_EOL .
|
||||||
'Disallow: /core/' . PHP_EOL .
|
// 'Disallow: /core/' . PHP_EOL .
|
||||||
'Disallow: /module/' .PHP_EOL .
|
// 'Disallow: /module/' .PHP_EOL .
|
||||||
'Disallow: /site/data' .PHP_EOL .
|
'Disallow: /site/data/' .PHP_EOL .
|
||||||
'Disallow: /site/tmp' .PHP_EOL .
|
'Disallow: /site/tmp/' .PHP_EOL .
|
||||||
'Disallow: /site/backup' .PHP_EOL .
|
'Disallow: /site/backup/' .PHP_EOL .
|
||||||
'Allow: /site/file/' .PHP_EOL .
|
'Allow: /site/file/' .PHP_EOL .
|
||||||
'Sitemap: ' . helper::baseUrl(false) . 'sitemap.xml' . PHP_EOL .
|
'Sitemap: ' . helper::baseUrl(false) . 'sitemap.xml' . PHP_EOL .
|
||||||
'Sitemap: ' . helper::baseUrl(false) . 'sitemap.xml.gz' . PHP_EOL .
|
'Sitemap: ' . helper::baseUrl(false) . 'sitemap.xml.gz' . PHP_EOL .
|
||||||
|
@ -1,270 +1,253 @@
|
|||||||
<?php $layout = new layout($this); ?>
|
<?php $layout = new layout($this); ?>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html prefix="og: http://ogp.me/ns#" lang="fr">
|
<html prefix="og: http://ogp.me/ns#" lang="fr">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<?php $layout->showMetaTitle(); ?>
|
<?php $layout->showMetaTitle(); ?>
|
||||||
<?php $layout->showMetaDescription(); ?>
|
<?php $layout->showMetaDescription(); ?>
|
||||||
<?php $layout->showMetaType(); ?>
|
<?php $layout->showMetaType(); ?>
|
||||||
<?php $layout->showMetaImage(); ?>
|
<?php $layout->showMetaImage(); ?>
|
||||||
<?php $layout->showFavicon(); ?>
|
<?php $layout->showFavicon(); ?>
|
||||||
<?php $layout->showVendor(); ?>
|
<?php $layout->showVendor(); ?>
|
||||||
<?php $layout->showAnalytics(); ?>
|
<?php $layout->showAnalytics(); ?>
|
||||||
<link rel="stylesheet" href="<?php echo helper::baseUrl(false); ?>core/layout/common.css">
|
<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(self::DATA_DIR.'theme.css'); ?>">
|
<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'); ?>">
|
<link rel="stylesheet" href="<?php echo helper::baseUrl(false); ?>site/data/custom.css?<?php echo md5_file(self::DATA_DIR.'custom.css'); ?>">
|
||||||
<?php $layout->showStyle(); ?>
|
<?php $layout->showStyle(); ?>
|
||||||
<?php
|
<?php if (file_exists('site/data/head.inc.html')) {
|
||||||
if (file_exists('site/data/head.inc.html')) {
|
include('site/data/head.inc.html');
|
||||||
include('site/data/head.inc.html');
|
}?>
|
||||||
}
|
</head>
|
||||||
?>
|
<body>
|
||||||
</head>
|
<?php $layout->showBar(); ?>
|
||||||
<body>
|
<?php $layout->showNotification(); ?>
|
||||||
<?php $layout->showBar(); ?>
|
<?php if($this->getData(['theme', 'menu', 'position']) === 'body-first' || $this->getData(['theme', 'menu', 'position']) === 'top' ): ?>
|
||||||
<?php $layout->showNotification(); ?>
|
<!-- Menu dans le fond du site avant la bannière -->
|
||||||
<?php if($this->getData(['theme', 'menu', 'position']) === 'body-first' || $this->getData(['theme', 'menu', 'position']) === 'top' ): ?>
|
<nav
|
||||||
<!-- Menu dans le fond du site avant la bannière -->
|
<?php
|
||||||
<nav
|
// Détermine si le menu est fixe en haut de page lorsque l'utilisateur n'est pas connecté
|
||||||
<?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->getData(['theme', 'menu', 'position']) === 'top' &&
|
if ($this->getUser('password') !== $this->getInput('ZWII_USER_PASSWORD'))
|
||||||
$this->getData(['theme', 'menu', 'fixed']) === true) {
|
{echo 'id="navfixedlogout"';}
|
||||||
if ($this->getUser('password') !== $this->getInput('ZWII_USER_PASSWORD'))
|
elseif ($this->getUrl(0) !== 'theme')
|
||||||
{echo 'id="navfixedlogout"';}
|
{echo 'id="navfixedconnected"';}
|
||||||
elseif ($this->getUrl(0) !== 'theme')
|
}
|
||||||
{echo 'id="navfixedconnected"';}
|
?>
|
||||||
}
|
>
|
||||||
?>
|
<div id="toggle"><?php echo template::ico('menu',null,null,'2em'); ?></div>
|
||||||
>
|
<div id="menu" class="
|
||||||
<div id="toggle"><?php echo template::ico('menu',null,null,'2em'); ?></div>
|
<?php if($this->getData(['theme', 'menu', 'position']) === 'top'){echo 'container-large';}else{echo'container';}
|
||||||
<div id="menu" class="
|
?>">
|
||||||
<?php if($this->getData(['theme', 'menu', 'position']) === 'top'){echo 'container-large';}else{echo'container';}
|
|
||||||
?>">
|
|
||||||
|
|
||||||
<?php $layout->showMenu(); ?>
|
<?php $layout->showMenu(); ?>
|
||||||
</div>
|
</div> <!--fin menu -->
|
||||||
</nav>
|
</nav>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?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>
|
<header>
|
||||||
<?php
|
<?php
|
||||||
if ($this->getData(['theme','header','linkHome'])){
|
if ($this->getData(['theme','header','linkHome'])){
|
||||||
echo "<a href='" . helper::baseUrl(false) . "'>" ;} ?>
|
echo "<a href='" . helper::baseUrl(false) . "'>" ;} ?>
|
||||||
<?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')
|
||||||
): ?>
|
): ?>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<span><?php echo $this->getData(['config', 'title']); ?></span>
|
<span><?php echo $this->getData(['config', 'title']); ?></span>
|
||||||
</div>
|
</div> <!--fin container -->
|
||||||
|
<?php endif; ?>
|
||||||
|
<?php
|
||||||
|
if ($this->getData(['theme','header','linkHome'])){echo "</a>";}
|
||||||
|
?>
|
||||||
|
</header>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<?php
|
|
||||||
if ($this->getData(['theme','header','linkHome'])){echo "</a>";}
|
|
||||||
?>
|
|
||||||
</header>
|
|
||||||
<?php endif; ?>
|
|
||||||
|
|
||||||
<?php if($this->getData(['theme', 'menu', 'position']) === 'body-second'): ?>
|
<?php if($this->getData(['theme', 'menu', 'position']) === 'body-second'): ?>
|
||||||
<!-- 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"><?php echo template::ico('menu',null,null,'2em'); ?></div>
|
<div id="toggle"><?php echo template::ico('menu',null,null,'2em'); ?></div>
|
||||||
<div id="menu" class="container">
|
<div id="menu" class="container"><?php $layout->showMenu(); ?></div>
|
||||||
<?php $layout->showMenu(); ?>
|
</nav>
|
||||||
</div>
|
<?php endif; ?>
|
||||||
</nav>
|
<!-- Site -->
|
||||||
<?php endif; ?>
|
<div id="site" class="container">
|
||||||
<!-- Site -->
|
<?php if($this->getData(['theme', 'menu', 'position']) === 'site-first'): ?>
|
||||||
<div id="site" class="container">
|
<!-- Menu dans le site avant la bannière -->
|
||||||
<?php if($this->getData(['theme', 'menu', 'position']) === 'site-first'): ?>
|
<nav>
|
||||||
<!-- Menu dans le site avant la bannière -->
|
<div id="toggle"><?php echo template::ico('menu',null,null,'2em'); ?></div>
|
||||||
<nav>
|
<div id="menu" class="container"><?php $layout->showMenu(); ?></div>
|
||||||
<div id="toggle"><?php echo template::ico('menu',null,null,'2em'); ?></div>
|
</nav>
|
||||||
<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; ?>
|
<?php endif; ?>
|
||||||
</header>
|
<?php if(
|
||||||
<?php
|
$this->getData(['theme', 'header', 'position']) === 'site'
|
||||||
if ($this->getData(['theme','header','linkHome'])){echo "</a>";} ?>
|
// Affiche toujours la bannière pour l'édition du thème
|
||||||
<?php endif; ?>
|
OR (
|
||||||
<?php if(
|
$this->getData(['theme', 'header', 'position']) === 'hide'
|
||||||
$this->getData(['theme', 'menu', 'position']) === 'site-second' ||
|
AND $this->getUrl(0) === 'theme'
|
||||||
$this->getData(['theme', 'menu', 'position']) === 'site'
|
)
|
||||||
// Affiche toujours le menu pour l'édition du thème
|
): ?>
|
||||||
OR (
|
<!-- Bannière dans le site -->
|
||||||
$this->getData(['theme', 'menu', 'position']) === 'hide'
|
<?php
|
||||||
AND $this->getUrl(0) === 'theme'
|
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; ?>>
|
||||||
<!-- Menu dans le site après la bannière -->
|
<?php if(
|
||||||
<nav <?php if($this->getData(['theme', 'menu', 'position']) === 'hide'): ?>class="displayNone"<?php endif; ?>>
|
$this->getData(['theme', 'header', 'textHide']) === false
|
||||||
<div id="toggle"><?php echo template::ico('menu',null,null,'2em'); ?></div>
|
// Affiche toujours le titre de la bannière pour l'édition du thème
|
||||||
<div id="menu" class="container">
|
OR ($this->getUrl(0) === 'theme' AND $this->getUrl(1) === 'header')
|
||||||
<?php $layout->showMenu(); ?>
|
): ?>
|
||||||
</div>
|
<div class="container"><span><?php echo $this->getData(['config', 'title']); ?></span></div>
|
||||||
</nav>
|
<?php endif; ?>
|
||||||
<?php endif; ?>
|
</header>
|
||||||
<!-- Corps de page -->
|
<?php
|
||||||
<section>
|
if ($this->getData(['theme','header','linkHome'])){echo "</a>";} ?>
|
||||||
<?php
|
<?php endif; ?>
|
||||||
// Gabarit :
|
<?php if(
|
||||||
// Récupérer la config de la page courante
|
$this->getData(['theme', 'menu', 'position']) === 'site-second' ||
|
||||||
$blocks = explode('-',$this->getData(['page',$this->getUrl(0),'block']));
|
$this->getData(['theme', 'menu', 'position']) === 'site'
|
||||||
// Initialiser
|
// Affiche toujours le menu pour l'édition du thème
|
||||||
$blockleft=$blockright="";
|
OR (
|
||||||
switch (sizeof($blocks)) {
|
$this->getData(['theme', 'menu', 'position']) === 'hide'
|
||||||
case 1 : // une colonne
|
AND $this->getUrl(0) === 'theme'
|
||||||
$content = 'col'. $blocks[0] ;
|
)
|
||||||
break;
|
): ?>
|
||||||
case 2 : // 2 blocks
|
<!-- Menu dans le site après la bannière -->
|
||||||
if ($blocks[0] < $blocks[1]) { // détermine la position de la colonne
|
<nav <?php if($this->getData(['theme', 'menu', 'position']) === 'hide'): ?>class="displayNone"<?php endif; ?>>
|
||||||
$blockleft = 'col'. $blocks[0];
|
<div id="toggle"><?php echo template::ico('menu',null,null,'2em'); ?></div>
|
||||||
$content = 'col'. $blocks[1] ;
|
<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']));
|
||||||
|
// 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];
|
||||||
|
}
|
||||||
|
// Page pleine pour la configuration des modules et l'édition des pages sauf l'affichae d'un article de blog
|
||||||
|
$pattern = ['config','edit','add','comment','data'];
|
||||||
|
if ((sizeof($blocks) === 1 ||
|
||||||
|
in_array($this->getUrl(1),$pattern) )
|
||||||
|
) { // Pleine page en mode configuration
|
||||||
|
$layout->showContent();
|
||||||
|
if (file_exists('site/data/body.inc.html')) {
|
||||||
|
include('site/data/body.inc.html');
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$content = 'col' . $blocks[0];
|
?>
|
||||||
$blockright = 'col' . $blocks[1];
|
<div class="row siteContainer">
|
||||||
}
|
<?php
|
||||||
break;
|
if ($blockleft !== "") :?>
|
||||||
case 3 : // 3 blocks
|
<div class="<?php echo $blockleft; ?>" id="contentLeft"><?php $layout->showBarContentLeft(); ?></div>
|
||||||
$blockleft = 'col' . $blocks[0];
|
<?php endif; ?>
|
||||||
$content = 'col' . $blocks[1];
|
<div class="<?php echo $content; ?>" id="contentSite"><?php $layout->showContent();
|
||||||
$blockright = 'col' . $blocks[2];
|
if (file_exists('site/data/body.inc.html')) {
|
||||||
}
|
include('site/data/body.inc.html');
|
||||||
// Page pleine pour la configuration des modules et l'édition des pages sauf l'affichae d'un article de blog
|
}
|
||||||
$pattern = ['config','edit','add','comment','data'];
|
?>
|
||||||
if ((sizeof($blocks) === 1 ||
|
</div>
|
||||||
in_array($this->getUrl(1),$pattern) )
|
<?php
|
||||||
) { // Pleine page en mode configuration
|
if ($blockright !== "") :?>
|
||||||
$layout->showContent();
|
<div class="<?php echo $blockright; ?>" id="contentRight"><?php $layout->showBarContentRight(); ?></div>
|
||||||
if (file_exists('site/data/body.inc.html')) {
|
<?php endif; ?>
|
||||||
include('site/data/body.inc.html');
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
?>
|
|
||||||
<div class="row siteContainer">
|
|
||||||
<?php
|
|
||||||
if ($blockleft !== "") :?>
|
|
||||||
<div class="<?php echo $blockleft; ?>" id="contentLeft">
|
|
||||||
<?php $layout->showBarContentLeft(); ?>
|
|
||||||
</div>
|
|
||||||
<?php endif; ?>
|
|
||||||
<div class="<?php echo $content; ?>" id="contentSite"><?php $layout->showContent();
|
|
||||||
if (file_exists('site/data/body.inc.html')) {
|
|
||||||
include('site/data/body.inc.html');
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</div>
|
|
||||||
<?php
|
|
||||||
if ($blockright !== "") :?>
|
|
||||||
<div class="<?php echo $blockright; ?>" id="contentRight">
|
|
||||||
<?php $layout->showBarContentRight(); ?>
|
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php }
|
||||||
|
?>
|
||||||
|
</section>
|
||||||
|
<!-- footer -->
|
||||||
|
<?php
|
||||||
|
// Déterminer la position
|
||||||
|
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'
|
||||||
|
)
|
||||||
|
) { $position = 'site'; } else {
|
||||||
|
$position = 'body';
|
||||||
|
//echo '</div>';
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<!-- Pied de page -->
|
||||||
|
<footer <?php if($this->getData(['theme', 'footer', 'position']) === 'hide'): ?>class="displayNone"<?php endif; ?>>
|
||||||
|
<?php
|
||||||
|
if ($position === 'site'): ?>
|
||||||
|
<div class="container"><div class="row" id="footersite">
|
||||||
|
<?php else: ?>
|
||||||
|
<div class="container-large"><div class="row" id="footerbody">
|
||||||
|
<?php endif?>
|
||||||
|
<!-- 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">
|
||||||
|
<?php if($this->getData(['theme', 'footer', 'textPosition']) === 'left') { $layout->showFooterText(); }
|
||||||
|
if($this->getData(['theme', 'footer', 'socialsPosition']) === 'left') { $layout->showSocials(); }
|
||||||
|
if($this->getData(['theme', 'footer', 'copyrightPosition']) === 'left') {$layout->showCopyright(); }
|
||||||
|
?>
|
||||||
|
</div>
|
||||||
|
<div class="<?php echo $class['center'];?>" id="footer<?php echo $position;?>Center">
|
||||||
|
<?php if($this->getData(['theme', 'footer', 'textPosition']) === 'center') { $layout->showFooterText(); }
|
||||||
|
if($this->getData(['theme', 'footer', 'socialsPosition']) === 'center') { $layout->showSocials(); }
|
||||||
|
if($this->getData(['theme', 'footer', 'copyrightPosition']) === 'center') { $layout->showCopyright(); }
|
||||||
|
?>
|
||||||
|
</div>
|
||||||
|
<div class="<?php echo $class['right'];?>" id="footer<?php echo $position;?>Right">
|
||||||
|
<?php if($this->getData(['theme', 'footer', 'textPosition']) === 'right') { $layout->showFooterText(); }
|
||||||
|
if($this->getData(['theme', 'footer', 'socialsPosition']) === 'right') { $layout->showSocials(); }
|
||||||
|
if($this->getData(['theme', 'footer', 'copyrightPosition']) === 'right') { $layout->showCopyright(); }
|
||||||
|
?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
<?php }
|
<!-- Lien remonter en haut -->
|
||||||
?>
|
<div id="backToTop"><?php echo template::ico('up'); ?></div>
|
||||||
</section>
|
<?php $layout->showScript();?>
|
||||||
<!-- footer -->
|
|
||||||
|
|
||||||
<?php
|
|
||||||
|
|
||||||
// Déterminer la position
|
|
||||||
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'
|
|
||||||
)
|
|
||||||
) { $position = 'site'; } else {
|
|
||||||
$position = 'body';
|
|
||||||
echo '</div>';
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
<!-- Pied de page -->
|
|
||||||
<footer <?php if($this->getData(['theme', 'footer', 'position']) === 'hide'): ?>class="displayNone"<?php endif; ?>>
|
|
||||||
<?php
|
|
||||||
if ($position === 'site'): ?>
|
|
||||||
<div class="container">
|
|
||||||
<div class="row" id="footersite">
|
|
||||||
<?php else: ?>
|
|
||||||
<div class="container-large">
|
|
||||||
<div class="row" id="footerbody">
|
|
||||||
<?php endif?>
|
|
||||||
<!-- 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">
|
|
||||||
<?php if($this->getData(['theme', 'footer', 'textPosition']) === 'left') { $layout->showFooterText(); }
|
|
||||||
if($this->getData(['theme', 'footer', 'socialsPosition']) === 'left') { $layout->showSocials(); }
|
|
||||||
if($this->getData(['theme', 'footer', 'copyrightPosition']) === 'left') {$layout->showCopyright(); }
|
|
||||||
?>
|
|
||||||
</div>
|
|
||||||
<div class="<?php echo $class['center'];?>" id="footer<?php echo $position;?>Center">
|
|
||||||
<?php if($this->getData(['theme', 'footer', 'textPosition']) === 'center') { $layout->showFooterText(); }
|
|
||||||
if($this->getData(['theme', 'footer', 'socialsPosition']) === 'center') { $layout->showSocials(); }
|
|
||||||
if($this->getData(['theme', 'footer', 'copyrightPosition']) === 'center') { $layout->showCopyright(); }
|
|
||||||
?>
|
|
||||||
</div>
|
|
||||||
<div class="<?php echo $class['right'];?>" id="footer<?php echo $position;?>Right">
|
|
||||||
<?php if($this->getData(['theme', 'footer', 'textPosition']) === 'right') { $layout->showFooterText(); }
|
|
||||||
if($this->getData(['theme', 'footer', 'socialsPosition']) === 'right') { $layout->showSocials(); }
|
|
||||||
if($this->getData(['theme', 'footer', 'copyrightPosition']) === 'right') { $layout->showCopyright(); }
|
|
||||||
?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</footer>
|
|
||||||
<!-- Lien remonter en haut -->
|
|
||||||
<div id="backToTop"><?php echo template::ico('up'); ?></div>
|
|
||||||
<?php $layout->showScript();?>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
Reference in New Issue
Block a user