/** * 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 footerFont=$("#themeFooterFont :selected").val(),footerFontText=$("#themeFooterFont :selected").text(),css="@import url('https://fonts.cdnfonts.com/css/"+footerFont+"');",colors=core.colorVariants($("#themeFooterBackgroundColor").val()),textColor=$("#themeFooterTextColor").val(),css="footer {background-color:"+colors.normal+";color:"+textColor+"}";switch(css+="footer a{color:"+textColor+"}",css+=".editorWysiwyg{background-color:"+colors.normal+" !important; color:"+textColor+" !important;}",css+="footer #footersite > div{margin:"+$("#themeFooterHeight").val()+" 0}",css+="footer #footerbody > div{margin:"+$("#themeFooterHeight").val()+" 0}",css+="#footerSocials{text-align:"+$("#themeFooterSocialsAlign").val()+"}",css+="#footerText > p {text-align:"+$("#themeFooterTextAlign").val()+"}",css+="#footerCopyright{text-align:"+$("#themeFooterCopyrightAlign").val()+"}",css+="footer span, #footerText > p {color:"+$("#themeFooterTextColor").val()+";font-family:'"+footerFontText+"',sans-serif;font-weight:"+$("#themeFooterFontWeight").val()+";font-size:"+$("#themeFooterFontSize").val()+";text-transform:"+$("#themeFooterTextTransform").val()+"}",$("#themeFooterMargin").is(":checked")?css+="footer{padding: 0 20px;}":css+="footer{padding:0}",$("#themePreview").remove(),$("