forked from ZwiiCMS-Team/ZwiiCMS
[9.2.10] commentaires
This commit is contained in:
parent
5bd619f95a
commit
3a4c4c2b9a
@ -118,6 +118,7 @@ class theme extends common {
|
|||||||
'2.4vmax' => 'Très grande (240%)'
|
'2.4vmax' => 'Très grande (240%)'
|
||||||
];
|
];
|
||||||
public static $headerHeights = [
|
public static $headerHeights = [
|
||||||
|
/* 'none' => 'Hauteur de l\'image',*/
|
||||||
'100px' => 'Très petite (100px) ',
|
'100px' => 'Très petite (100px) ',
|
||||||
'150px' => 'Petite (150px)',
|
'150px' => 'Petite (150px)',
|
||||||
'200px' => 'Moyenne (200px)',
|
'200px' => 'Moyenne (200px)',
|
||||||
|
@ -19,6 +19,12 @@
|
|||||||
*/
|
*/
|
||||||
$("input, select").on("change", function() {
|
$("input, select").on("change", function() {
|
||||||
|
|
||||||
|
// Récupérer la taille de l'image
|
||||||
|
/*
|
||||||
|
var tmpImg = new Image();
|
||||||
|
var url = "<?php echo helper::baseUrl(false); ?>" + "site/file/source/" + $("#themeHeaderImage").val();
|
||||||
|
tmpImg.src= url;
|
||||||
|
*/
|
||||||
|
|
||||||
// Import des polices de caractères
|
// Import des polices de caractères
|
||||||
var headerFont = $("#themeHeaderFont").val();
|
var headerFont = $("#themeHeaderFont").val();
|
||||||
@ -38,7 +44,11 @@ $("input, select").on("change", function() {
|
|||||||
//$("header .container").show();
|
//$("header .container").show();
|
||||||
|
|
||||||
}
|
}
|
||||||
css += "line-height:" + $("#themeHeaderHeight").val() + ";height:" + $("#themeHeaderHeight").val() + "}";
|
/*if ($("#themeHeaderHeight").val() !== "none") {*/
|
||||||
|
css += "line-height:" + $("#themeHeaderHeight").val() + ";height:" + $("#themeHeaderHeight").val() + "}";
|
||||||
|
/*} else {
|
||||||
|
css += "line-height:" + tmpImg.height + ";height:" + tmpImg.height + "}";
|
||||||
|
}*/
|
||||||
|
|
||||||
// Taille, couleur, épaisseur et capitalisation du titre de la bannière
|
// Taille, couleur, épaisseur et capitalisation du titre de la bannière
|
||||||
css += "header span{color:" + $("#themeHeaderTextColor").val() + ";font-family:'" + headerFont.replace(/\+/g, " ") + "',sans-serif;font-weight:" + $("#themeHeaderFontWeight").val() + ";font-size:" + $("#themeHeaderFontSize").val() + ";text-transform:" + $("#themeHeaderTextTransform").val() + "}";
|
css += "header span{color:" + $("#themeHeaderTextColor").val() + ";font-family:'" + headerFont.replace(/\+/g, " ") + "',sans-serif;font-weight:" + $("#themeHeaderFontWeight").val() + ";font-size:" + $("#themeHeaderFontSize").val() + ";text-transform:" + $("#themeHeaderTextTransform").val() + "}";
|
||||||
|
Loading…
Reference in New Issue
Block a user