Theme header bug présentation

This commit is contained in:
Fred Tempez 2020-09-18 20:51:40 +02:00
parent 9c6c0d664b
commit 96b06cc19b
2 changed files with 7 additions and 9 deletions

View File

@ -25,7 +25,7 @@ $("input, select").on("change", function() {
// Récupérer la taille de l'image // Récupérer la taille de l'image
var tmpImg = new Image(); var tmpImg = new Image();
tmpImg.onload = function() { tmpImg.onload = function() {
// Informations affichées // Informations affichées
$("#themeHeaderImageHeight").html(tmpImg.height + "px"); $("#themeHeaderImageHeight").html(tmpImg.height + "px");

View File

@ -13,11 +13,11 @@
</div> </div>
</div> </div>
<div class="row"> <div class="row">
<div class="col4"> <div class="col6">
<div class="block"> <div class="block">
<h4>Couleurs</h4> <h4>Couleurs</h4>
<div class="row"> <div class="row">
<div class="col12"> <div class="col6">
<?php echo template::text('themeHeaderBackgroundColor', [ <?php echo template::text('themeHeaderBackgroundColor', [
'class' => 'colorPicker', 'class' => 'colorPicker',
'help' => 'Le curseur horizontal règle le niveau de transparence.', 'help' => 'Le curseur horizontal règle le niveau de transparence.',
@ -25,9 +25,7 @@
'value' => $this->getData(['theme', 'header', 'backgroundColor']) 'value' => $this->getData(['theme', 'header', 'backgroundColor'])
]); ?> ]); ?>
</div> </div>
</div> <div class="col6">
<div class="row">
<div class="col12">
<?php echo template::text('themeHeaderTextColor', [ <?php echo template::text('themeHeaderTextColor', [
'class' => 'colorPicker', 'class' => 'colorPicker',
'help' => 'Le curseur horizontal règle le niveau de transparence.', 'help' => 'Le curseur horizontal règle le niveau de transparence.',
@ -38,11 +36,11 @@
</div> </div>
</div> </div>
</div> </div>
<div class="col8"> <div class="col6">
<div class="block"> <div class="block">
<h4>Image</h4> <h4>Image</h4>
<div class="row"> <div class="row">
<div class="col10 offset1"> <div class="col12">
<?php <?php
$imageFile = file_exists(self::FILE_DIR.'source/'.$this->getData(['theme', 'header', 'image'])) ? $imageFile = file_exists(self::FILE_DIR.'source/'.$this->getData(['theme', 'header', 'image'])) ?
$this->getData(['theme', 'header', 'image']) : ""; $this->getData(['theme', 'header', 'image']) : "";
@ -84,7 +82,7 @@
<div class="row"> <div class="row">
<div class="col12 textAlignCenter"> <div class="col12 textAlignCenter">
<span id="themeHeaderImage"> <span id="themeHeaderImage">
Dimensions de l'image : largeur <span id="themeHeaderImageWidth"></span> - hauteur <span id="themeHeaderImageHeight"></span> - ratio <span id="themeHeaderImageRatio"></span> Largeur : <span id="themeHeaderImageWidth"></span> | Hauteur : <span id="themeHeaderImageHeight"></span> | ratio : <span id="themeHeaderImageRatio"></span>
</span> </span>
</div> </div>
</div> </div>