[9.1.14.dev] footer sur 3 lignes OK

This commit is contained in:
fredtempez 2019-06-23 23:37:12 +02:00
parent bc66591ccf
commit 15c9ac7e5d
4 changed files with 29 additions and 18 deletions

View File

@ -924,6 +924,7 @@ class common {
// Version 9.1.13 // Version 9.1.13
if($this->getData(['core', 'dataVersion']) < 9113) { if($this->getData(['core', 'dataVersion']) < 9113) {
$this->setData(['theme','footer','template', 3 ]); $this->setData(['theme','footer','template', 3 ]);
$this->setData(['theme','footer','margin', true ]);
$this->setData(['core', 'dataVersion', 9113]); $this->setData(['core', 'dataVersion', 9113]);
$this->SaveData(); $this->SaveData();
} }

View File

@ -237,6 +237,11 @@
$class['center'] = "col4"; $class['center'] = "col4";
$class['right'] = "col4"; $class['right'] = "col4";
break; break;
case '4' :
$class['left'] = "col12";
$class['center'] = "col12";
$class['right'] = "col12";
break;
}?> }?>
<div class="row" id="footersite"> <div class="row" id="footersite">
<div class="<?php echo $class['left'];?>" id="footer<?php echo $position;?>Left"> <div class="<?php echo $class['left'];?>" id="footer<?php echo $position;?>Left">

View File

@ -82,9 +82,9 @@ class theme extends common {
'right' => 'Bloc Droite' ], 'right' => 'Bloc Droite' ],
4 => [ 4 => [
'hide' => 'Masqué', 'hide' => 'Masqué',
'top' => 'Bloc haut', 'left' => 'En haut',
'middle' => 'Bloc au milieu', 'center' => 'Au milieu',
'bottom' => 'Bloc inférieur' ] 'right' => 'En bas' ]
]; ];
public static $fontWeights = [ public static $fontWeights = [

View File

@ -75,24 +75,24 @@ $(".themeFooterContent").on("change",function() {
break; break;
case "left": case "left":
$("#footerText").show().appendTo("#footer" + position + "Left"); $("#footerText").show().appendTo("#footer" + position + "Left");
break; break;
case "center": case "center":
$("#footerText").show().appendTo("#footer" + position + "Center"); $("#footerText").show().appendTo("#footer" + position + "Center");
break; break;
case "right": case "right":
$("#footerText").show().appendTo("#footer" + position + "Right"); $("#footerText").show().appendTo("#footer" + position + "Right");
break; break;
} }
switch($("#themeFooterSocialsPosition").val()) { switch($("#themeFooterSocialsPosition").val()) {
case 'hide': case 'hide':
$("#footerSocials").hide(); $("#footerSocials").hide();
break; break;
case 'left': case 'left':
$("#footerSocials").show().appendTo("#footer" + position + "Left"); $("#footerSocials").show().appendTo("#footer" + position + "Left");
break; break;
case 'center': case 'center':
$("#footerSocials").show().appendTo("#footer" + position + "Center"); $("#footerSocials").show().appendTo("#footer" + position + "Center");
break; break;
case 'right': case 'right':
$("#footerSocials").show().appendTo("#footer" + position + "Right"); $("#footerSocials").show().appendTo("#footer" + position + "Right");
break; break;
@ -100,13 +100,13 @@ $(".themeFooterContent").on("change",function() {
switch($("#themeFooterCopyrightPosition").val()) { switch($("#themeFooterCopyrightPosition").val()) {
case 'hide': case 'hide':
$("#footerCopyright").hide(); $("#footerCopyright").hide();
break; break;
case 'left': case 'left':
$("#footerCopyright").show().appendTo("#footer" + position + "Left"); $("#footerCopyright").show().appendTo("#footer" + position + "Left");
break; break;
case 'center': case 'center':
$("#footerCopyright").show().appendTo("#footer" + position + "Center"); $("#footerCopyright").show().appendTo("#footer" + position + "Center");
break; break;
case 'right': case 'right':
$("#footerCopyright").show().appendTo("#footer" + position + "Right"); $("#footerCopyright").show().appendTo("#footer" + position + "Right");
break; break;
@ -151,7 +151,9 @@ $("#themeFooterTemplate").on("change",function() {
$("#footer" + position + "Right").css("display",""); $("#footer" + position + "Right").css("display","");
// Dimension de blocs // Dimension de blocs
$("#footer" + position + "Left").removeAttr('class'); $("#footer" + position + "Left").removeAttr('class');
$("#footer" + position + "Center").removeAttr('class');
$("#footer" + position + "Right").removeAttr('class'); $("#footer" + position + "Right").removeAttr('class');
$("#footer" + position + "Left").addClass('col6'); $("#footer" + position + "Left").addClass('col6');
$("#footer" + position + "Right").addClass('col6'); $("#footer" + position + "Right").addClass('col6');
break; break;
@ -171,17 +173,20 @@ $("#themeFooterTemplate").on("change",function() {
$("#footer" + position + "Left").css("display",""); $("#footer" + position + "Left").css("display","");
$("#footer" + position + "Left").removeAttr('class'); $("#footer" + position + "Left").removeAttr('class');
$("#footer" + position + "Left").addClass('col12'); $("#footer" + position + "Left").addClass('col12');
//$("#footer" + position + "Left").css("footersite > " + "#footer" + position + "Left","order: " + $("#footer" + position + "Left").val() );
$("#footer" + position + "Center").css("display",""); $("#footer" + position + "Center").css("display","");
$("#footer" + position + "center").removeAttr('class'); $("#footer" + position + "Center").removeAttr('class');
$("#footer" + position + "Center").addClass('col12'); $("#footer" + position + "Center").addClass('col12');
//$("#footer" + position + "Center").css("footersite > " + "#footer" + position + "Center","order: " + $("#footer" + position + "Left").val() );
$("#footer" + position + "Right").css("display",""); $("#footer" + position + "Right").css("display","");
$("#footer" + position + "Right").removeAttr('class'); $("#footer" + position + "Right").removeAttr('class');
$("#footer" + position + "Right").addClass('col12'); $("#footer" + position + "Right").addClass('col12');
// Ordre des blocs du haut vers le bas:
// $("#footer" + position + "Left").css("footersite > " + "#footer" + position + "Left","order: " + $("#footer" + position + "Left").val() );
// $("#footer" + position + "Center").css("footersite > " + "#footer" + position + "Center","order: " + $("#footer" + position + "Left").val() );
//$("#footer" + position + "Right").css("footersite > "+ "#footer" + position + "Right","order: " + $("#footer" + position + "Left").val() ); //$("#footer" + position + "Right").css("footersite > "+ "#footer" + position + "Right","order: " + $("#footer" + position + "Left").val() );
break; break;
} }