[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
if($this->getData(['core', 'dataVersion']) < 9113) {
$this->setData(['theme','footer','template', 3 ]);
$this->setData(['theme','footer','margin', true ]);
$this->setData(['core', 'dataVersion', 9113]);
$this->SaveData();
}

View File

@ -237,6 +237,11 @@
$class['center'] = "col4";
$class['right'] = "col4";
break;
case '4' :
$class['left'] = "col12";
$class['center'] = "col12";
$class['right'] = "col12";
break;
}?>
<div class="row" id="footersite">
<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' ],
4 => [
'hide' => 'Masqué',
'top' => 'Bloc haut',
'middle' => 'Bloc au milieu',
'bottom' => 'Bloc inférieur' ]
'left' => 'En haut',
'center' => 'Au milieu',
'right' => 'En bas' ]
];
public static $fontWeights = [

View File

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