forked from ZwiiCMS-Team/ZwiiCMS
Amélioration des liens dans le footer + gestion des drapeaux + masque de traduction
This commit is contained in:
parent
ca067121f9
commit
3cabadc501
@ -425,19 +425,31 @@ class template {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Crée un drapeau du site courante
|
* Crée un drapeau du site courante
|
||||||
|
* @param string $langId Id de la langue à affiche ou site pour la langue traduite courante
|
||||||
* @param string $margin Ajoute un margin autour de l'icône (choix : left, right, all)
|
* @param string $margin Ajoute un margin autour de l'icône (choix : left, right, all)
|
||||||
* @param string $size Taille en pixels (default = auto)
|
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
public static function flag( $size = 'auto') {
|
public static function flag($langId, $size = 'auto') {
|
||||||
if ( isset($_COOKIE['ZWII_I18N_SITE'])
|
switch ($langId) {
|
||||||
) {
|
case '':
|
||||||
$lang = $_COOKIE['ZWII_I18N_SITE'];
|
$lang = 'fr';
|
||||||
return '<img class="flag" src="' . helper::baseUrl(false) . 'core/vendor/i18n/png/' . $lang . '.png"
|
break;
|
||||||
width="' . $size .'"
|
case in_array($langId,['fr', 'de', 'en', 'es', 'it', 'nl', 'pt']):
|
||||||
height="' . $size .'"
|
$lang = $langId;
|
||||||
alt="(' . $lang . ')"/>';
|
break;
|
||||||
|
case 'site':
|
||||||
|
if ( isset($_COOKIE['ZWII_I18N_SITE'])
|
||||||
|
) {
|
||||||
|
$lang = $_COOKIE['ZWII_I18N_SITE'];
|
||||||
|
} else {
|
||||||
|
$lang = 'fr';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
return '<img class="flag" src="' . helper::baseUrl(false) . 'core/vendor/i18n/png/' . $lang . '.png"
|
||||||
|
width="' . $size .'"
|
||||||
|
height="' . $size .'"
|
||||||
|
title="' . $lang .'"
|
||||||
|
alt="(' . $lang . ')"/>';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -48,11 +48,11 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col12">
|
<div class="col12">
|
||||||
<div class="block">
|
<div class="block">
|
||||||
<h4>Identité du site</h4>
|
<h4>Identité du site <?php echo template::flag('site', '20px');?></h4>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col9">
|
<div class="col9">
|
||||||
<?php echo template::text('configTitle', [
|
<?php echo template::text('configTitle', [
|
||||||
'label' => 'Titre du site '. template::flag('20px') ,
|
'label' => 'Titre du site' ,
|
||||||
'value' => $this->getData(['locale', 'title']),
|
'value' => $this->getData(['locale', 'title']),
|
||||||
'help' => 'Il apparaît dans la barre de titre et les partages sur les réseaux sociaux.'
|
'help' => 'Il apparaît dans la barre de titre et les partages sur les réseaux sociaux.'
|
||||||
]); ?>
|
]); ?>
|
||||||
@ -68,7 +68,7 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col12">
|
<div class="col12">
|
||||||
<?php echo template::textarea('configMetaDescription', [
|
<?php echo template::textarea('configMetaDescription', [
|
||||||
'label' => 'Description du site ' . template::flag('20px'),
|
'label' => 'Description du site',
|
||||||
'value' => $this->getData(['locale', 'metaDescription']),
|
'value' => $this->getData(['locale', 'metaDescription']),
|
||||||
'help' => 'La description d\'une page participe à son référencement, chaque page doit disposer d\'une description différente.'
|
'help' => 'La description d\'une page participe à son référencement, chaque page doit disposer d\'une description différente.'
|
||||||
]); ?>
|
]); ?>
|
||||||
@ -154,25 +154,25 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col12">
|
<div class="col12">
|
||||||
<div class="block">
|
<div class="block">
|
||||||
<h4>Etiquettes des pages spéciales dans le pied de page</h4>
|
<h4>Etiquettes des pages spéciales dans le pied de page <?php echo template::flag('site', '20px');?></h4>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col4">
|
<div class="col4">
|
||||||
<?php echo template::text('configLegalPageLabel', [
|
<?php echo template::text('configLegalPageLabel', [
|
||||||
'label' => 'Mentions légales ' . template::flag('20px'),
|
'label' => 'Mentions légales',
|
||||||
'placeholder' => 'Mentions légales',
|
'placeholder' => 'Mentions légales',
|
||||||
'value' => $this->getData(['locale', 'legalPageLabel']),
|
'value' => $this->getData(['locale', 'legalPageLabel'])
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col4">
|
<div class="col4">
|
||||||
<?php echo template::text('configSearchPageLabel', [
|
<?php echo template::text('configSearchPageLabel', [
|
||||||
'label' => 'Rechercher ' . template::flag('20px'),
|
'label' => 'Rechercher',
|
||||||
'placeholder' => 'Rechercher',
|
'placeholder' => 'Rechercher',
|
||||||
'value' => $this->getData(['locale', 'searchPageLabel']),
|
'value' => $this->getData(['locale', 'searchPageLabel'])
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col4">
|
<div class="col4">
|
||||||
<?php echo template::text('configSitemapPageLabel', [
|
<?php echo template::text('configSitemapPageLabel', [
|
||||||
'label' => 'Plan du site ' . template::flag('20px'),
|
'label' => 'Plan du site',
|
||||||
'placeholder' => 'Plan du site',
|
'placeholder' => 'Plan du site',
|
||||||
'value' => $this->getData(['locale', 'sitemapPageLabel']),
|
'value' => $this->getData(['locale', 'sitemapPageLabel']),
|
||||||
]); ?>
|
]); ?>
|
||||||
|
@ -240,6 +240,10 @@ class theme extends common {
|
|||||||
'4' => 'Trois lignes superposées'
|
'4' => 'Trois lignes superposées'
|
||||||
];
|
];
|
||||||
|
|
||||||
|
// Variables pour construire la liste des pages du site
|
||||||
|
public static $pages = [];
|
||||||
|
public static $orphans = [];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Thème des écrans d'administration
|
* Thème des écrans d'administration
|
||||||
*/
|
*/
|
||||||
|
@ -18,18 +18,18 @@
|
|||||||
$("input, select").on("change", function() {
|
$("input, select").on("change", function() {
|
||||||
// Import des polices de caractères
|
// Import des polices de caractères
|
||||||
var footerFont = $("#themeFooterFont").val();
|
var footerFont = $("#themeFooterFont").val();
|
||||||
var css = "@import url('https://fonts.googleapis.com/css?family=" + footerFont + "');";
|
var css = "@import url('https://fonts.googleapis.com/css?family=" + footerFont + "');";
|
||||||
// Couleurs du pied de page
|
// Couleurs du pied de page
|
||||||
var colors = core.colorVariants($("#themeFooterBackgroundColor").val());
|
var colors = core.colorVariants($("#themeFooterBackgroundColor").val());
|
||||||
var textColor = $("#themeFooterTextColor").val();
|
var textColor = $("#themeFooterTextColor").val();
|
||||||
var css = "footer {background-color:" + colors.normal + ";color:" + textColor + "}";
|
var css = "footer {background-color:" + colors.normal + ";color:" + textColor + "}";
|
||||||
css += "footer a{color:" + textColor + "}";
|
css += "footer a{color:" + textColor + "}";
|
||||||
// Couleur de l'éditeur
|
// Couleur de l'éditeur
|
||||||
css += ".editorWysiwyg{background-color:" + colors.normal + " !important; color:" + textColor + " !important;}";
|
css += ".editorWysiwyg{background-color:" + colors.normal + " !important; color:" + textColor + " !important;}";
|
||||||
// Hauteur du pied de page
|
// Hauteur du pied de page
|
||||||
//css += "#footersiteLeft, #footersiteCenter, #footersiteRight, #footerbodyLeft, #footerbodyCenter, #footerbodyRight {margin:" + $("#themeFooterHeight").val() + " 0}";
|
//css += "#footersiteLeft, #footersiteCenter, #footersiteRight, #footerbodyLeft, #footerbodyCenter, #footerbodyRight {margin:" + $("#themeFooterHeight").val() + " 0}";
|
||||||
css += "footer #footersite > div{margin:" + $("#themeFooterHeight").val() + " 0}";
|
css += "footer #footersite > div{margin:" + $("#themeFooterHeight").val() + " 0}";
|
||||||
css += "footer #footerbody > div{margin:" + $("#themeFooterHeight").val() + " 0}";
|
css += "footer #footerbody > div{margin:" + $("#themeFooterHeight").val() + " 0}";
|
||||||
// Alignement du contenu
|
// Alignement du contenu
|
||||||
css += "#footerSocials{text-align:" + $("#themeFooterSocialsAlign").val() + "}";
|
css += "#footerSocials{text-align:" + $("#themeFooterSocialsAlign").val() + "}";
|
||||||
css += "#footerText > p {text-align:" + $("#themeFooterTextAlign").val() + "}";
|
css += "#footerText > p {text-align:" + $("#themeFooterTextAlign").val() + "}";
|
||||||
@ -77,7 +77,7 @@ $("input, select").on("change", function() {
|
|||||||
// Bloc texte personnalisé
|
// Bloc texte personnalisé
|
||||||
$(".themeFooterContent").on("change",function() {
|
$(".themeFooterContent").on("change",function() {
|
||||||
// Position site ou body
|
// Position site ou body
|
||||||
var footerPosition = $("#themeFooterPosition").val();
|
var footerPosition = $("#themeFooterPosition").val();
|
||||||
switch($("#themeFooterTextPosition").val()) {
|
switch($("#themeFooterTextPosition").val()) {
|
||||||
case "hide":
|
case "hide":
|
||||||
$("#footerText").hide();
|
$("#footerText").hide();
|
||||||
@ -89,12 +89,12 @@ $(".themeFooterContent").on("change",function() {
|
|||||||
$("#footerText").show().appendTo("#footer" + footerPosition + textPosition);
|
$("#footerText").show().appendTo("#footer" + footerPosition + textPosition);
|
||||||
//console.log("text");
|
//console.log("text");
|
||||||
//console.log("#footer" + footerPosition + textPosition);
|
//console.log("#footer" + footerPosition + textPosition);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
switch($("#themeFooterSocialsPosition").val()) {
|
switch($("#themeFooterSocialsPosition").val()) {
|
||||||
case 'hide':
|
case 'hide':
|
||||||
$("#footerSocials").hide();
|
$("#footerSocials").hide();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
// Choix de la position du bloc
|
// Choix de la position du bloc
|
||||||
socialsPosition = $("#themeFooterSocialsPosition").val();
|
socialsPosition = $("#themeFooterSocialsPosition").val();
|
||||||
@ -107,7 +107,7 @@ $(".themeFooterContent").on("change",function() {
|
|||||||
switch($("#themeFooterCopyrightPosition").val()) {
|
switch($("#themeFooterCopyrightPosition").val()) {
|
||||||
case 'hide':
|
case 'hide':
|
||||||
$("#footerCopyright").hide();
|
$("#footerCopyright").hide();
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
// Choix de la position du bloc
|
// Choix de la position du bloc
|
||||||
copyrightPosition = $("#themeFooterCopyrightPosition").val();
|
copyrightPosition = $("#themeFooterCopyrightPosition").val();
|
||||||
@ -115,32 +115,32 @@ $(".themeFooterContent").on("change",function() {
|
|||||||
$("#footerCopyright").show().appendTo("#footer" + footerPosition + copyrightPosition);
|
$("#footerCopyright").show().appendTo("#footer" + footerPosition + copyrightPosition);
|
||||||
//console.log("copyright");
|
//console.log("copyright");
|
||||||
//console.log("#footer" + footerPosition + copyrightPosition);
|
//console.log("#footer" + footerPosition + copyrightPosition);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}).trigger("change");
|
}).trigger("change");
|
||||||
|
|
||||||
// Fin Position dans les blocs
|
// Fin Position dans les blocs
|
||||||
|
|
||||||
// Modification dynamique de la mise en page
|
// Modification dynamique de la mise en page
|
||||||
$("#themeFooterTemplate").on("change",function() {
|
$("#themeFooterTemplate").on("change",function() {
|
||||||
// Nettoyage des sélecteurs des contenus
|
// Nettoyage des sélecteurs des contenus
|
||||||
var newOptions = {
|
var newOptions = {
|
||||||
4: {'hide' : 'Masqué', 'left' : 'En haut', 'center' : 'Au milieu', 'right' : 'En bas'} ,
|
4: {'hide' : 'Masqué', 'left' : 'En haut', 'center' : 'Au milieu', 'right' : 'En bas'} ,
|
||||||
3: {'hide': 'Masqué', 'left': 'A gauche', 'center': 'Au centre', 'right': 'A droite'} ,
|
3: {'hide': 'Masqué', 'left': 'A gauche', 'center': 'Au centre', 'right': 'A droite'} ,
|
||||||
2: {'hide': 'Masqué', 'left': 'A gauche', 'right': 'A droite'} ,
|
2: {'hide': 'Masqué', 'left': 'A gauche', 'right': 'A droite'} ,
|
||||||
1: {'hide': 'Masqué', 'center': 'Affiché'}
|
1: {'hide': 'Masqué', 'center': 'Affiché'}
|
||||||
};
|
};
|
||||||
var $el = $(".themeFooterContent");
|
var $el = $(".themeFooterContent");
|
||||||
$el.empty();
|
$el.empty();
|
||||||
// Eléments des position de contenus
|
// Eléments des position de contenus
|
||||||
$.each(newOptions[$("#themeFooterTemplate").val()], function(key,value) {
|
$.each(newOptions[$("#themeFooterTemplate").val()], function(key,value) {
|
||||||
$el.append($("<option></option>")
|
$el.append($("<option></option>")
|
||||||
.attr("value", key).text(value));
|
.attr("value", key).text(value));
|
||||||
});
|
});
|
||||||
var position = $("#themeFooterPosition").val();
|
var position = $("#themeFooterPosition").val();
|
||||||
// Masquer les contenus
|
// Masquer les contenus
|
||||||
$("#footerCopyright").hide();
|
$("#footerCopyright").hide();
|
||||||
$("#footerText").hide();
|
$("#footerText").hide();
|
||||||
$("#footerSocials").hide();
|
$("#footerSocials").hide();
|
||||||
@ -150,13 +150,13 @@ $("#themeFooterTemplate").on("change",function() {
|
|||||||
$("#footer" + position + "Left").css("display","none");
|
$("#footer" + position + "Left").css("display","none");
|
||||||
$("#footer" + position + "Center").removeAttr('class').addClass("col12").css("display","");
|
$("#footer" + position + "Center").removeAttr('class').addClass("col12").css("display","");
|
||||||
$("#footer" + position + "Right").css("display","none");
|
$("#footer" + position + "Right").css("display","none");
|
||||||
break;
|
break;
|
||||||
case "2":
|
case "2":
|
||||||
$("#footer" + position + "Left").removeAttr('class').addClass('col6').css("display","");
|
$("#footer" + position + "Left").removeAttr('class').addClass('col6').css("display","");
|
||||||
$("#footer" + position + "Center").css("display","none").removeAttr('class');
|
$("#footer" + position + "Center").css("display","none").removeAttr('class');
|
||||||
$("#footer" + position + "Right").removeAttr('class').addClass('col6').css("display","");
|
$("#footer" + position + "Right").removeAttr('class').addClass('col6').css("display","");
|
||||||
break;
|
break;
|
||||||
case "3":
|
case "3":
|
||||||
$("#footer" + position + "Left").removeAttr('class').addClass('col4').css("display","");
|
$("#footer" + position + "Left").removeAttr('class').addClass('col4').css("display","");
|
||||||
$("#footer" + position + "Center").removeAttr('class').addClass('col4').css("display","");
|
$("#footer" + position + "Center").removeAttr('class').addClass('col4').css("display","");
|
||||||
$("#footer" + position + "Right").removeAttr('class').addClass('col4').css("display","");
|
$("#footer" + position + "Right").removeAttr('class').addClass('col4').css("display","");
|
||||||
@ -167,18 +167,18 @@ $("#themeFooterTemplate").on("change",function() {
|
|||||||
$("#footer" + position + "Right").removeAttr('class').addClass('col12').css("display","");
|
$("#footer" + position + "Right").removeAttr('class').addClass('col12').css("display","");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
// Désactivation des sélections multiples
|
// Désactivation des sélections multiples
|
||||||
$("#themeFooterSocialsPosition").on("change", function() {
|
$("#themeFooterSocialsPosition").on("change", function() {
|
||||||
if ($(this).prop('selectedIndex') >= 1 ) {
|
if ($(this).prop('selectedIndex') >= 1 ) {
|
||||||
if ( $("#themeFooterTextPosition").prop('selectedIndex') === $(this).prop('selectedIndex') ) {
|
if ( $("#themeFooterTextPosition").prop('selectedIndex') === $(this).prop('selectedIndex') ) {
|
||||||
$("#themeFooterTextPosition").prop('selectedIndex',0);
|
$("#themeFooterTextPosition").prop('selectedIndex',0);
|
||||||
$("#footerText").hide();
|
$("#footerText").hide();
|
||||||
}
|
}
|
||||||
if ( $("#themeFooterCopyrightPosition").prop('selectedIndex') === $(this).prop('selectedIndex') ) {
|
if ( $("#themeFooterCopyrightPosition").prop('selectedIndex') === $(this).prop('selectedIndex') ) {
|
||||||
$("#themeFooterCopyrightPosition").prop('selectedIndex',0);
|
$("#themeFooterCopyrightPosition").prop('selectedIndex',0);
|
||||||
$("#footerCopyright").hide();
|
$("#footerCopyright").hide();
|
||||||
}
|
}
|
||||||
@ -190,7 +190,7 @@ $("#themeFooterTextPosition").on("change", function() {
|
|||||||
$("#themeFooterSocialsPosition").prop('selectedIndex',0);
|
$("#themeFooterSocialsPosition").prop('selectedIndex',0);
|
||||||
$("#footerSocials").hide();
|
$("#footerSocials").hide();
|
||||||
}
|
}
|
||||||
if ( $("#themeFooterCopyrightPosition").prop('selectedIndex') === $(this).prop('selectedIndex') ) {
|
if ( $("#themeFooterCopyrightPosition").prop('selectedIndex') === $(this).prop('selectedIndex') ) {
|
||||||
$("#themeFooterCopyrightPosition").prop('selectedIndex',0);
|
$("#themeFooterCopyrightPosition").prop('selectedIndex',0);
|
||||||
$("#footerCopyright").hide();
|
$("#footerCopyright").hide();
|
||||||
}
|
}
|
||||||
@ -203,16 +203,16 @@ $("#themeFooterCopyrightPosition").on("change", function() {
|
|||||||
$("#themeFooterTextPosition").prop('selectedIndex',0);
|
$("#themeFooterTextPosition").prop('selectedIndex',0);
|
||||||
$("#footerText").hide();
|
$("#footerText").hide();
|
||||||
}
|
}
|
||||||
if ( $("#themeFooterSocialsPosition").prop('selectedIndex') === $(this).prop('selectedIndex') ) {
|
if ( $("#themeFooterSocialsPosition").prop('selectedIndex') === $(this).prop('selectedIndex') ) {
|
||||||
$("#themeFooterSocialsPosition").prop('selectedIndex',0);
|
$("#themeFooterSocialsPosition").prop('selectedIndex',0);
|
||||||
$("#footerSocials").hide();
|
$("#footerSocials").hide();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}).trigger("change");
|
}).trigger("change");
|
||||||
// Affiche / Cache les options du footer fixe
|
// Affiche / Cache les options du footer fixe
|
||||||
$("#themeFooterPosition").on("change", function() {
|
$("#themeFooterPosition").on("change", function() {
|
||||||
if($(this).val() === 'body') {
|
if($(this).val() === 'body') {
|
||||||
$("#themeFooterPositionFixed").slideDown();
|
$("#themeFooterPositionFixed").slideDown();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$("#themeFooterPositionFixed").slideUp(function() {
|
$("#themeFooterPositionFixed").slideUp(function() {
|
||||||
@ -230,7 +230,7 @@ $("#themeFooterLoginLink").on("change", function() {
|
|||||||
$("#footerLoginLink").hide();
|
$("#footerLoginLink").hide();
|
||||||
}
|
}
|
||||||
}).trigger("change");
|
}).trigger("change");
|
||||||
|
|
||||||
// Numéro de version
|
// Numéro de version
|
||||||
$("#themefooterDisplayVersion").on("change", function() {
|
$("#themefooterDisplayVersion").on("change", function() {
|
||||||
if($(this).is(":checked")) {
|
if($(this).is(":checked")) {
|
||||||
@ -271,6 +271,40 @@ $("#themeFooterDisplaySearch").on("change", function() {
|
|||||||
}
|
}
|
||||||
}).trigger("change");
|
}).trigger("change");
|
||||||
|
|
||||||
|
// Mentions légales
|
||||||
|
$("#themeFooterDisplayLegal").on("change", function() {
|
||||||
|
if($(this).is(":checked")) {
|
||||||
|
$("#footerDisplayLegal").show();
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
$("#footerDisplayLegal").hide();
|
||||||
|
}
|
||||||
|
}).trigger("change");
|
||||||
|
|
||||||
|
|
||||||
|
// Pages spéciales : activation si une page est sélectionnée
|
||||||
|
$("#configLegalPageId").on("change", function() {
|
||||||
|
console.log($("#configLegalPageId option:selected").text());
|
||||||
|
if ( $("#configLegalPageId option:selected").text() === 'Aucune') {
|
||||||
|
$("#themeFooterDisplayLegal").prop('checked', false);
|
||||||
|
$("#themeFooterDisplayLegal").prop( "disabled", true );
|
||||||
|
$("#footerDisplayLegal").hide();
|
||||||
|
} else {
|
||||||
|
$("#themeFooterDisplayLegal").prop( "disabled", false );
|
||||||
|
}
|
||||||
|
}).trigger("change");
|
||||||
|
$("#configSearchPageId").on("change", function() {
|
||||||
|
console.log($("#configSearchPageId option:selected").text());
|
||||||
|
if ( $("#configSearchPageId option:selected").text() === 'Aucune') {
|
||||||
|
$("#themeFooterDisplaySearch").prop('checked', false);
|
||||||
|
$("#themeFooterDisplaySearch").prop( "disabled", true );
|
||||||
|
$("#footerDisplaySearch").hide();
|
||||||
|
} else {
|
||||||
|
$("#themeFooterDisplaySearch").prop( "disabled", false );
|
||||||
|
}
|
||||||
|
}).trigger("change");
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
// Affiche / Cache les options de la position
|
// Affiche / Cache les options de la position
|
||||||
$("#themeFooterPosition").on("change", function() {
|
$("#themeFooterPosition").on("change", function() {
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col7">
|
<div class="col12">
|
||||||
<div class="block">
|
<div class="block">
|
||||||
<h4>Informations</h4>
|
<h4>Informations</h4>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@ -76,7 +76,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col5">
|
<div class="row">
|
||||||
|
<div class="col12">
|
||||||
<div class="block">
|
<div class="block">
|
||||||
<h4>Pages spéciales</h4>
|
<h4>Pages spéciales</h4>
|
||||||
<?php
|
<?php
|
||||||
@ -87,46 +88,34 @@
|
|||||||
unset($pages[$page]);
|
unset($pages[$page]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$orphans = $this->getData(['page']);
|
|
||||||
foreach($orphans as $page => $pageId) {
|
|
||||||
if ($this->getData(['page',$page,'block']) === 'bar' ||
|
|
||||||
$this->getData(['page',$page,'disable']) === true ||
|
|
||||||
$this->getdata(['page',$page, 'position']) !== 0) {
|
|
||||||
unset($orphans[$page]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col6">
|
<div class="col3 textAlignRight">
|
||||||
<?php echo template::checkbox('themeFooterDisplayLegal', true, 'Mentions légales', [
|
<?php echo template::checkbox('themeFooterDisplayLegal', true, 'Mentions légales', [
|
||||||
'checked' => $this->getData(['locale', 'legalPageId']) === 'none' ? false : $this->getData(['theme', 'footer', 'displayLegal']),
|
'checked' => $this->getData(['locale', 'legalPageId']) === 'none' ? false : $this->getData(['theme', 'footer', 'displayLegal']),
|
||||||
'disabled' => $this->getData(['locale', 'legalPageId']) === 'none' ? true : false,
|
'disabled' => $this->getData(['locale', 'legalPageId']) === 'none' ? true : false,
|
||||||
'help' => $this->getData(['locale', 'legalPageId']) === 'none' ? 'Une page contenant les mentions légales n\'est pas définie dans la configuration du site / pages spéciales.' : ''
|
'help' => $this->getData(['locale', 'legalPageId']) === 'none' ? 'Une page contenant les mentions légales n\'est pas définie dans la configuration du site / pages spéciales.' : ''
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col6">
|
<div class="col3">
|
||||||
|
<?php echo template::select('configLegalPageId', array_merge(['none' => 'Aucune'] , helper::arrayCollumn($pages, 'title', 'SORT_ASC') ) , [
|
||||||
|
'label' => 'Page Mentions légales ' . template::flag('site', '20px'),
|
||||||
|
'selected' => $this->getData(['locale', 'legalPageId'])
|
||||||
|
]); ?>
|
||||||
|
</div>
|
||||||
|
<div class="col3 textAlignRight">
|
||||||
<?php echo template::checkbox('themeFooterDisplaySearch', true, 'Rechercher', [
|
<?php echo template::checkbox('themeFooterDisplaySearch', true, 'Rechercher', [
|
||||||
'checked' => $this->getData(['locale', 'searchPageId']) === 'none' ? false : $this->getData(['theme', 'footer', 'displaySearch']),
|
'checked' => $this->getData(['locale', 'searchPageId']) === 'none' ? false : $this->getData(['theme', 'footer', 'displaySearch']),
|
||||||
'disabled' => $this->getData(['locale', 'searchPageId']) === 'none' ? true : false,
|
'disabled' => $this->getData(['locale', 'searchPageId']) === 'none' ? true : false,
|
||||||
'help' => $this->getData(['locale', 'searchPageId']) === 'none' ? 'Une page contenant un module de recherche n\'est pas définie dans la configuration du site / pages spéciales.' : ''
|
'help' => $this->getData(['locale', 'searchPageId']) === 'none' ? 'Une page contenant un module de recherche n\'est pas définie dans la configuration du site / pages spéciales.' : ''
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="col3">
|
||||||
<div class="row">
|
|
||||||
<div class="col6">
|
|
||||||
<?php echo template::select('configLegalPageId', array_merge(['none' => 'Aucune'] , helper::arrayCollumn($pages, 'title', 'SORT_ASC') ) , [
|
|
||||||
'label' => 'Page Mentions légales ' . template::flag('20px'),
|
|
||||||
'selected' => $this->getData(['locale', 'legalPageId']),
|
|
||||||
'help' => 'Options identique à la configuration du site',
|
|
||||||
'disabled' => true
|
|
||||||
]); ?>
|
|
||||||
</div>
|
|
||||||
<div class="col6">
|
|
||||||
<?php echo template::select('configSearchPageId', array_merge(['none' => 'Aucune'] , helper::arrayCollumn($pages, 'title', 'SORT_ASC') ) , [
|
<?php echo template::select('configSearchPageId', array_merge(['none' => 'Aucune'] , helper::arrayCollumn($pages, 'title', 'SORT_ASC') ) , [
|
||||||
'label' => 'Page Rechercher ' . template::flag('20px'),
|
'label' => 'Page Rechercher ' . template::flag('site', '20px'),
|
||||||
'selected' => $this->getData(['locale', 'searchPageId']),
|
'selected' => $this->getData(['locale', 'searchPageId']),
|
||||||
'help' => 'Options identique à la configuration du site',
|
'help' => 'Options identique à la configuration du site',
|
||||||
'disabled' => true
|
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -78,55 +78,55 @@
|
|||||||
<div class="block" id="flagsWrapper">
|
<div class="block" id="flagsWrapper">
|
||||||
<h4>Mode de traduction et affichage des drapeaux</h4>
|
<h4>Mode de traduction et affichage des drapeaux</h4>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col4 offset4">
|
<div class="col3">
|
||||||
<?php echo template::select('translateFR', ['none'=>'Drapeau masqué','site'=>'Drapeau affiché'], [
|
<?php echo template::select('translateFR', ['none'=>'Drapeau masqué','site'=>'Drapeau affiché'], [
|
||||||
'label' => 'Français',
|
'label' => template::flag('', '30px'),
|
||||||
'selected' => $this->getData(['config', 'i18n' , 'fr'])
|
'selected' => $this->getData(['config', 'i18n' , 'fr']),
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="col3">
|
||||||
<div class="row">
|
<div class="col12">
|
||||||
<div class="col6">
|
|
||||||
<div class="col8 offset2">
|
|
||||||
<?php echo template::select('translateDE', $module::$translateOptions['de'], [
|
<?php echo template::select('translateDE', $module::$translateOptions['de'], [
|
||||||
'label' => 'Allemand',
|
'label' => template::flag('de', '30px'),
|
||||||
'class' => 'translateFlagSelect',
|
'class' => 'translateFlagSelect',
|
||||||
'selected' => $this->getData(['config', 'i18n' , 'de'])
|
'selected' => $this->getData(['config', 'i18n' , 'de'])
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col8 offset2">
|
<div class="col12">
|
||||||
<?php echo template::select('translateEN', $module::$translateOptions['en'], [
|
<?php echo template::select('translateEN', $module::$translateOptions['en'], [
|
||||||
'label' => 'Anglais',
|
'label' => template::flag('en', '30px'),
|
||||||
'class' => 'translateFlagSelect',
|
'class' => 'translateFlagSelect',
|
||||||
'selected' => $this->getData(['config', 'i18n' , 'en'])
|
'selected' => $this->getData(['config', 'i18n' , 'en'])
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col8 offset2">
|
</div>
|
||||||
|
<div class="col3">
|
||||||
|
<div class="col12">
|
||||||
<?php echo template::select('translateES', $module::$translateOptions['es'], [
|
<?php echo template::select('translateES', $module::$translateOptions['es'], [
|
||||||
'label' => 'Espagnol',
|
'label' => template::flag('es', '30px'),
|
||||||
'class' => 'translateFlagSelect',
|
'class' => 'translateFlagSelect',
|
||||||
'selected' => $this->getData(['config', 'i18n' , 'es'])
|
'selected' => $this->getData(['config', 'i18n' , 'es'])
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="col12">
|
||||||
<div class="col6">
|
|
||||||
<div class="col8 offset2">
|
|
||||||
<?php echo template::select('translateIT', $module::$translateOptions['it'], [
|
<?php echo template::select('translateIT', $module::$translateOptions['it'], [
|
||||||
'label' => 'Italien',
|
'label' => template::flag('it', '30px'),
|
||||||
'class' => 'translateFlagSelect',
|
'class' => 'translateFlagSelect',
|
||||||
'selected' => $this->getData(['config', 'i18n' , 'it'])
|
'selected' => $this->getData(['config', 'i18n' , 'it'])
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col8 offset2">
|
</div>
|
||||||
|
<div class="col3">
|
||||||
|
<div class="col12">
|
||||||
<?php echo template::select('translateNL', $module::$translateOptions['nl'], [
|
<?php echo template::select('translateNL', $module::$translateOptions['nl'], [
|
||||||
'label' => 'Néerlandais',
|
'label' => template::flag('nl', '30px'),
|
||||||
'class' => 'translateFlagSelect',
|
'class' => 'translateFlagSelect',
|
||||||
'selected' => $this->getData(['config', 'i18n' , 'nl'])
|
'selected' => $this->getData(['config', 'i18n' , 'nl'])
|
||||||
]); ?>
|
]); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col8 offset2">
|
<div class="col12">
|
||||||
<?php echo template::select('translatePT', $module::$translateOptions['pt'], [
|
<?php echo template::select('translatePT', $module::$translateOptions['pt'], [
|
||||||
'label' => 'Portugais',
|
'label' => template::flag('pt', '30px'),
|
||||||
'class' => 'translateFlagSelect',
|
'class' => 'translateFlagSelect',
|
||||||
'selected' => $this->getData(['config', 'i18n' , 'pt'])
|
'selected' => $this->getData(['config', 'i18n' , 'pt'])
|
||||||
]); ?>
|
]); ?>
|
||||||
|
Loading…
Reference in New Issue
Block a user