Browse Source

[9.2.10] commentaires

pull/5/head
fredtempez 2 years ago
parent
commit
3a4c4c2b9a
  1. 1
      core/module/theme/theme.php
  2. 12
      core/module/theme/view/header/header.js.php

1
core/module/theme/theme.php

@ -118,6 +118,7 @@ class theme extends common {
'2.4vmax' => 'Très grande (240%)'
];
public static $headerHeights = [
/* 'none' => 'Hauteur de l\'image',*/
'100px' => 'Très petite (100px) ',
'150px' => 'Petite (150px)',
'200px' => 'Moyenne (200px)',

12
core/module/theme/view/header/header.js.php

@ -19,6 +19,12 @@
*/
$("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
var headerFont = $("#themeHeaderFont").val();
@ -38,7 +44,11 @@ $("input, select").on("change", function() {
//$("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
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…
Cancel
Save