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; const THUMBS_WIDTH = 640;
// Numéro de version // Numéro de version
const ZWII_VERSION = '10.0.082'; const ZWII_VERSION = '10.0.083';
const ZWII_UPDATE_CHANNEL = "v10"; const ZWII_UPDATE_CHANNEL = "v10";
public static $actions = []; public static $actions = [];

View File

@ -77,7 +77,10 @@ function updateDOM() {
} }
// Couleur du site, arrondi sur les coins du site et ombre sur les bords du site // 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{background-color:" + $("#themeSiteBackgroundColor").val() + ";border-radius:" + $("#themeSiteRadius").val() + ";box-shadow:" + $("#themeSiteShadow").val() + " #212223}";
css += "#site{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() + ";}"; css += "div.bgPreview{background-color:" + $("#themeSiteBackgroundColor").val() + ";}";
/** /**

View File

@ -65,21 +65,23 @@
</div> </div>
</div> </div>
</div> </div>
<div class="col4 bgPreview"> <div class="col4 bodybackground">
<div class="row"> <div class="bgPreview">
<div class="col12"> <div class="row">
<h1 class="headerPreview">Titre </h1> <div class="col12">
<h3 class="headerPreview">Sous-Titre </h3> <h1 class="headerPreview">Titre </h1>
<p class="textPreview">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p> <h3 class="headerPreview">Sous-Titre </h3>
<p><a href="#" class="urlPreview">Lorem ipsum dolor sit amet.</a></p> <p class="textPreview">Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
<p><a href="#" class="urlPreview">Lorem ipsum dolor sit amet.</a></p>
</div>
</div> </div>
</div> <div class="row">
<div class="row"> <div class="col4 offset8">
<div class="col4 offset8"> <?php echo template::button('themeSiteSubmitButtonPreview', [
<?php echo template::button('themeSiteSubmitButtonPreview', [ 'class' => 'buttonSubmitPreview',
'class' => 'buttonSubmitPreview', 'value' => 'Bouton'
'value' => 'Bouton' ]); ?>
]); ?> </div>
</div> </div>
</div> </div>
</div> </div>