/** * 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 CC Attribution-NonCommercial-NoDerivatives 4.0 International * @author Frédéric Tempez * @copyright Copyright (C) 2018-2023, Frédéric Tempez * @link http://zwiicms.fr/ */ $("input, select").on("change",(function(){var e=$("#themeFooterFont :selected").val(),o=$("#themeFooterFont :selected").text(),t="@import url('https://fonts.cdnfonts.com/css/"+e+"');",i=core.colorVariants($("#themeFooterBackgroundColor").val()),r=$("#themeFooterTextColor").val();t="footer {background-color:"+i.normal+";color:"+r+"}";switch(t+="footer a{color:"+r+"}",t+=".editorWysiwyg{background-color:"+i.normal+" !important; color:"+r+" !important;}",t+="footer #footersite > div{margin:"+$("#themeFooterHeight").val()+" 0}",t+="footer #footerbody > div{margin:"+$("#themeFooterHeight").val()+" 0}",t+="#footerSocials{text-align:"+$("#themeFooterSocialsAlign").val()+"}",t+="#footerText > p {text-align:"+$("#themeFooterTextAlign").val()+"}",t+="#footerCopyright{text-align:"+$("#themeFooterCopyrightAlign").val()+"}",t+="footer span, #footerText > p {color:"+$("#themeFooterTextColor").val()+";font-family:'"+o+"',sans-serif;font-weight:"+$("#themeFooterFontWeight").val()+";font-size:"+$("#themeFooterFontSize").val()+";text-transform:"+$("#themeFooterTextTransform").val()+"}",$("#themeFooterMargin").is(":checked")?t+="footer{padding: 0 20px;}":t+="footer{padding:0}",$("#themePreview").remove(),$("