Ajout : déplacement dynamique bloc footer
This commit is contained in:
parent
ad78b86984
commit
19de4ee5ed
@ -139,32 +139,44 @@
|
||||
<footer <?php if($this->getData(['theme', 'footer', 'position']) === 'hide'): ?>class="displayNone"<?php endif; ?>>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col4" id="left"> <!-- bloc gauche -->
|
||||
<div class="col4" id="siteLeft"> <!-- bloc gauche -->
|
||||
<?php
|
||||
if($this->getData(['theme', 'footer', 'textPosition']) === 'left') {
|
||||
$layout->showFooterText();}
|
||||
?>
|
||||
<?php
|
||||
if($this->getData(['theme', 'footer', 'socialsPosition']) === 'left') {
|
||||
$layout->showSocials(); }
|
||||
if($this->getData(['theme', 'footer', 'textPosition']) === 'left') {
|
||||
$layout->showFooterText(); }
|
||||
?>
|
||||
<?php
|
||||
if($this->getData(['theme', 'footer', 'copyrightPosition']) === 'left') {
|
||||
$layout->showCopyright(); }
|
||||
?>
|
||||
</div>
|
||||
<div class="col4" id="center"> <!-- bloc central -->
|
||||
<div class="col4" id="siteCenter"> <!-- bloc central -->
|
||||
<?php
|
||||
if($this->getData(['theme', 'footer', 'textPosition']) === 'center') {
|
||||
$layout->showFooterText(); }
|
||||
?>
|
||||
<?php
|
||||
if($this->getData(['theme', 'footer', 'socialsPosition']) === 'center') {
|
||||
$layout->showSocials(); }
|
||||
if($this->getData(['theme', 'footer', 'textPosition']) === 'center') {
|
||||
$layout->showFooterText(); }
|
||||
?>
|
||||
<?php
|
||||
if($this->getData(['theme', 'footer', 'copyrightPosition']) === 'center') {
|
||||
$layout->showCopyright(); }
|
||||
?>
|
||||
</div>
|
||||
<div class="col4" id="right"> <!-- bloc droite -->
|
||||
<div class="col4" id="siteRight"> <!-- bloc droite -->
|
||||
<?php
|
||||
if($this->getData(['theme', 'footer', 'textPosition']) === 'right') {
|
||||
$layout->showFooterText(); }
|
||||
?>
|
||||
<?php
|
||||
if($this->getData(['theme', 'footer', 'socialsPosition']) === 'right') {
|
||||
$layout->showSocials(); }
|
||||
if($this->getData(['theme', 'footer', 'textPosition']) === 'right') {
|
||||
$layout->showFooterText(); }
|
||||
?>
|
||||
<?php
|
||||
if($this->getData(['theme', 'footer', 'copyrightPosition']) === 'right') {
|
||||
$layout->showCopyright(); }
|
||||
?>
|
||||
@ -179,32 +191,44 @@
|
||||
<footer>
|
||||
<div class="container-large">
|
||||
<div class="row">
|
||||
<div class="col4" id="left"> <!-- bloc gauche -->
|
||||
<div class="col4" id="bodyLeft"> <!-- bloc gauche -->
|
||||
<?php
|
||||
if($this->getData(['theme', 'footer', 'textPosition']) === 'left') {
|
||||
$layout->showFooterText(); }
|
||||
?>
|
||||
<?php
|
||||
if($this->getData(['theme', 'footer', 'socialsPosition']) === 'left') {
|
||||
$layout->showSocials(); }
|
||||
if($this->getData(['theme', 'footer', 'textPosition']) === 'left') {
|
||||
$layout->showFooterText(); }
|
||||
?>
|
||||
<?php
|
||||
if($this->getData(['theme', 'footer', 'copyrightPosition']) === 'left') {
|
||||
$layout->showCopyright(); }
|
||||
?>
|
||||
</div>
|
||||
<div class="col4" id="center"> <!-- bloc central -->
|
||||
<div class="col4" id="bodyCenter"> <!-- bloc central -->
|
||||
<?php
|
||||
if($this->getData(['theme', 'footer', 'textPosition']) === 'center') {
|
||||
$layout->showFooterText(); }
|
||||
?>
|
||||
<?php
|
||||
if($this->getData(['theme', 'footer', 'socialsPosition']) === 'center') {
|
||||
$layout->showSocials(); }
|
||||
if($this->getData(['theme', 'footer', 'textPosition']) === 'center') {
|
||||
$layout->showFooterText(); }
|
||||
?>
|
||||
<?php
|
||||
if($this->getData(['theme', 'footer', 'copyrightPosition']) === 'center') {
|
||||
$layout->showCopyright(); }
|
||||
?>
|
||||
</div>
|
||||
<div class="col4" id="right"> <!-- bloc droite -->
|
||||
<div class="col4" id="bodyRight"> <!-- bloc droite -->
|
||||
<?php
|
||||
if($this->getData(['theme', 'footer', 'textPosition']) === 'right') {
|
||||
$layout->showFooterText(); }
|
||||
?>
|
||||
<?php
|
||||
if($this->getData(['theme', 'footer', 'socialsPosition']) === 'right') {
|
||||
$layout->showSocials(); }
|
||||
if($this->getData(['theme', 'footer', 'textPosition']) === 'right') {
|
||||
$layout->showFooterText(); }
|
||||
?>
|
||||
<?php
|
||||
if($this->getData(['theme', 'footer', 'copyrightPosition']) === 'right') {
|
||||
$layout->showCopyright();}
|
||||
?>
|
||||
|
@ -10,6 +10,7 @@
|
||||
* @copyright Copyright (C) 2008-2018, Rémi Jean
|
||||
* @license GNU General Public License, version 3
|
||||
* @link http://zwiicms.com/
|
||||
* @Edition : 23/9/18 Frédéric Tempez <frederic.tempez@outlook.com>
|
||||
*/
|
||||
|
||||
class theme extends common {
|
||||
|
@ -8,6 +8,7 @@
|
||||
* @copyright Copyright (C) 2008-2018, Rémi Jean
|
||||
* @license GNU General Public License, version 3
|
||||
* @link http://zwiicms.com/
|
||||
* @Author 23/9/18 Frédéric Tempez <frederic.tempez@outlook.com>
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -52,6 +53,77 @@ $("input, select").on("change", function() {
|
||||
break;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
// Position dans les blocs FT
|
||||
// Bloc texte personnalisé
|
||||
$("#themeFooterTextPosition").on("change",function() {
|
||||
switch($("#themeFooterTextPosition").val()) {
|
||||
case 'hide':
|
||||
$("#footerText").hide();
|
||||
break;
|
||||
case 'left':
|
||||
$("#footerText").show().appendTo("#bodyLeft");
|
||||
$("#footerText").show().appendTo("#siteLeft");
|
||||
break;
|
||||
case 'center':
|
||||
$("#footerText").show().appendTo("#bodyCenter");
|
||||
$("#footerText").show().appendTo("#siteCenter");
|
||||
break;
|
||||
case 'right':
|
||||
$("#footerText").show().appendTo("#bodyRight");
|
||||
$("#footerText").show().appendTo("#siteRight");
|
||||
break;
|
||||
}
|
||||
}).trigger("change");
|
||||
|
||||
// Bloc socials
|
||||
$("#themeFooterSocialsPosition").on("change",function() {
|
||||
switch($("#themeFooterSocialsPosition").val()) {
|
||||
case 'hide':
|
||||
$("#footerSocials").hide();
|
||||
break;
|
||||
case 'left':
|
||||
$("#footerSocials").show().appendTo("#bodyLeft");
|
||||
$("#footerSocials").show().appendTo("#siteLeft");
|
||||
break;
|
||||
case 'center':
|
||||
$("#footerSocials").show().appendTo("#bodyCenter");
|
||||
$("#footerSocials").show().appendTo("#siteCenter");
|
||||
break;
|
||||
case 'right':
|
||||
$("#footerSocials").show().appendTo("#bodyRight");
|
||||
$("#footerSocials").show().appendTo("#siteRight");
|
||||
break;
|
||||
}
|
||||
}).trigger("change");
|
||||
|
||||
// Bloc Copyright
|
||||
$("#themeFooterCopyrightPosition").on("change",function() {
|
||||
switch($("#themeFooterCopyrightPosition").val()) {
|
||||
case 'hide':
|
||||
$("#footerCopyright").hide();
|
||||
break;
|
||||
case 'left':
|
||||
$("#footerCopyright").show().appendTo("#bodyLeft");
|
||||
$("#footerCopyright").show().appendTo("#siteLeft");
|
||||
break;
|
||||
case 'center':
|
||||
$("#footerCopyright").show().appendTo("#bodyCenter");
|
||||
$("#footerCopyright").show().appendTo("#siteCenter");
|
||||
break;
|
||||
case 'right':
|
||||
$("#footerCopyright").show().appendTo("#bodyRight");
|
||||
$("#footerCopyright").show().appendTo("#siteRight");
|
||||
break;
|
||||
}
|
||||
}).trigger("change");
|
||||
|
||||
// Fin Position dans les blocs
|
||||
|
||||
|
||||
|
||||
|
||||
// Lien de connexion
|
||||
$("#themeFooterLoginLink").on("change", function() {
|
||||
if($(this).is(":checked")) {
|
||||
|
@ -77,19 +77,6 @@
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col4">
|
||||
<div class="block">
|
||||
<h4>Réseaux sociaux</h4>
|
||||
<?php echo template::select('themeFooterSocialsPosition', $module::$footerblocks, [
|
||||
'label' => 'Emplacement',
|
||||
'selected' => $this->getData(['theme', 'footer', 'socialsPosition'])
|
||||
]); ?>
|
||||
<?php echo template::select('themeFooterSocialsAlign', $module::$aligns, [
|
||||
'label' => 'Alignement',
|
||||
'selected' => $this->getData(['theme', 'footer', 'socialsAlign'])
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col4">
|
||||
<div class="block">
|
||||
<h4>Contenu personnalisé</h4>
|
||||
@ -104,6 +91,19 @@
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="col4">
|
||||
<div class="block">
|
||||
<h4>Réseaux sociaux</h4>
|
||||
<?php echo template::select('themeFooterSocialsPosition', $module::$footerblocks, [
|
||||
'label' => 'Emplacement',
|
||||
'selected' => $this->getData(['theme', 'footer', 'socialsPosition'])
|
||||
]); ?>
|
||||
<?php echo template::select('themeFooterSocialsAlign', $module::$aligns, [
|
||||
'label' => 'Alignement',
|
||||
'selected' => $this->getData(['theme', 'footer', 'socialsAlign'])
|
||||
]); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col4">
|
||||
<div class="block">
|
||||
<h4>Copyright</h4>
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user