/** * This file is part of Zwii. * * For full copyright and license information, please see the LICENSE * file that was distributed with this source code. * * @author Rémi Jean * @copyright Copyright (C) 2008-2018, Rémi Jean * @license GNU General Public License, version 3 * @link http://zwiicms.com/ */ /* * Chargement de l'aperçu */ $( document).ready(function() { /** * Option de marge si la taille n'est pas fluide */ if ($('#themeSiteWidth').val() === '100%') { $("#themeSiteMargin").prop("checked", true); $("#themeSiteMargin").addClass("disabled"); } else { $("#themeSiteMargin").addClass("enabled"); } var backgroundImage = getData(['theme','body','image'])); ?>; var backgroundcolor = getdata(['theme','body','backgroundColor'])); ?>; css = "div.bodybackground{background-color:" + backgroundcolor + "; background-image: url(" + backgroundImage + ");background-size:cover;}"; css += "div.bgPreview{padding: 5px;background-color:" + $("#themeSiteBackgroundColor").val() + ";}"; $("#themePreview").remove(); $("