header.js en cours
This commit is contained in:
parent
bd23324501
commit
bc60e9b857
@ -65,8 +65,8 @@ $("input, select").on("change", function() {
|
|||||||
var css = "@import url('https://fonts.googleapis.com/css?family=" + headerFont + "');";
|
var css = "@import url('https://fonts.googleapis.com/css?family=" + headerFont + "');";
|
||||||
|
|
||||||
// Couleurs, image, alignement et hauteur de la bannière
|
// Couleurs, image, alignement et hauteur de la bannière
|
||||||
|
if ($("#themeHeaderFeature") === "wallpaper") {
|
||||||
css += "header{background-color:" + $("#themeHeaderBackgroundColor").val() + ";text-align:" + $("#themeHeaderTextAlign").val() + ";";
|
css += "header{background-color:" + $("#themeHeaderBackgroundColor").val() + ";text-align:" + $("#themeHeaderTextAlign").val() + ";";
|
||||||
|
|
||||||
if ($("#themeHeaderImage").val()) {
|
if ($("#themeHeaderImage").val()) {
|
||||||
// Une image est sélectionnée
|
// Une image est sélectionnée
|
||||||
css += "background-image:url('<?php echo helper::baseUrl(false); ?>site/file/source/" + $("#themeHeaderImage").val() + "');background-repeat:" + $("#themeHeaderImageRepeat").val() + ";background-position:" + $("#themeHeaderImagePosition").val() + ";";
|
css += "background-image:url('<?php echo helper::baseUrl(false); ?>site/file/source/" + $("#themeHeaderImage").val() + "');background-repeat:" + $("#themeHeaderImageRepeat").val() + ";background-position:" + $("#themeHeaderImagePosition").val() + ";";
|
||||||
@ -76,9 +76,11 @@ $("input, select").on("change", function() {
|
|||||||
// Désactiver l'option responsive
|
// Désactiver l'option responsive
|
||||||
css += "background-image:none;";
|
css += "background-image:none;";
|
||||||
}
|
}
|
||||||
|
|
||||||
css += "line-height:" + $("#themeHeaderHeight").val() + ";height:" + $("#themeHeaderHeight").val() + "}";
|
css += "line-height:" + $("#themeHeaderHeight").val() + ";height:" + $("#themeHeaderHeight").val() + "}";
|
||||||
|
}
|
||||||
|
if ($("#themeHeaderFeature") === "feature") {
|
||||||
|
css += "header{height:" + $("#themeHeaderHeight").val() + ";}";
|
||||||
|
}
|
||||||
|
|
||||||
// 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