forked from ZwiiCMS-Team/ZwiiCMS
bug aperçu theme site
This commit is contained in:
parent
07ea34eb9b
commit
e315283830
@ -2,6 +2,8 @@
|
||||
|
||||
|
||||
## Version 11.2.06
|
||||
- Correction :
|
||||
- Thème / site : problème d'aperçu du body.
|
||||
- Modification :
|
||||
- Thème / Bannière : ergonomie de l'information sur l'image sélectionnée.
|
||||
|
||||
|
@ -82,16 +82,16 @@ $("input, select").on("change",function() {
|
||||
css += "#site{border-radius:" + $("#themeSiteRadius").val() + ";box-shadow:" + $("#themeSiteShadow").val() + " #212223}";
|
||||
|
||||
// Couleur ou image de fond
|
||||
var backgroundImage = <?php echo json_encode(helper::baseUrl(false) . self::FILE_DIR . 'source/' . $this->getData(['theme','body','image'])); ?>;
|
||||
var backgroundImage = <?php if( $this->getData(['theme','body','image']) !== '') { echo json_encode(helper::baseUrl(false) . self::FILE_DIR . 'source/' . $this->getData(['theme','body','image']));} else { echo 'null';} ?> ;
|
||||
var backgroundcolor = <?php echo json_encode($this->getdata(['theme','body','backgroundColor'])); ?>;
|
||||
if(backgroundImage) {
|
||||
if(backgroundImage ) {
|
||||
css += "div.bodybackground{background-image:url(" + backgroundImage + ");background-repeat:" + $("#themeBodyImageRepeat").val() + ";background-position:" + $("#themeBodyImagePosition").val() + ";background-attachment:" + $("#themeBodyImageAttachment").val() + ";background-size:" + $("#themeBodyImageSize").val() + "}";
|
||||
css += "div.bodybackground{background-color:rgba(0,0,0,0);}";
|
||||
}
|
||||
else {
|
||||
css += "div.bodybackground{background-image:none}";
|
||||
}
|
||||
css += '#backToTop {background-color:' + backgroundcolor + ';color:' + $("#themeBodyToTopColor").val() + ';}';
|
||||
css += 'div.bodybackground {background-color:' + backgroundcolor + ';color:' + $("#themeBodyToTopColor").val() + ';}';
|
||||
|
||||
css += "div.bgPreview{padding: 5px;background-color:" + $("#themeSiteBackgroundColor").val() + ";}";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user