Aperçu fond d'écran dans thème site

This commit is contained in:
Fred Tempez 2020-05-05 17:22:04 +02:00
parent 72a44219e2
commit 92e7b57e6b
3 changed files with 21 additions and 16 deletions

View File

@ -36,7 +36,7 @@ class common {
const THUMBS_WIDTH = 640;
// Numéro de version
const ZWII_VERSION = '10.0.082';
const ZWII_VERSION = '10.0.083';
const ZWII_UPDATE_CHANNEL = "v10";
public static $actions = [];

View File

@ -78,6 +78,9 @@ function updateDOM() {
// Couleur du site, arrondi sur les coins du site et ombre sur les bords du site
//css += "#site{background-color:" + $("#themeSiteBackgroundColor").val() + ";border-radius:" + $("#themeSiteRadius").val() + ";box-shadow:" + $("#themeSiteShadow").val() + " #212223}";
css += "#site{border-radius:" + $("#themeSiteRadius").val() + ";box-shadow:" + $("#themeSiteShadow").val() + " #212223}";
var backgroundImage = <?php echo json_encode(helper::baseUrl(false) . self::FILE_DIR . 'source/' . $this->getData(['theme','body','image'])); ?>;
var backgroundcolor = <?php echo json_encode($this->getdata(['theme','body','backgroundColor'])); ?>;
css += "div.bodybackground{background-color:" + backgroundcolor + "; background-image: url(" + backgroundImage + ");background-size:cover;}";
css += "div.bgPreview{background-color:" + $("#themeSiteBackgroundColor").val() + ";}";
/**

View File

@ -65,7 +65,8 @@
</div>
</div>
</div>
<div class="col4 bgPreview">
<div class="col4 bodybackground">
<div class="bgPreview">
<div class="row">
<div class="col12">
<h1 class="headerPreview">Titre </h1>
@ -87,6 +88,7 @@
</div>
</div>
</div>
</div>
<div class="row">
<div class="col6">
<div class="block">