diff --git a/core/module/theme/view/footer/footer.js.php b/core/module/theme/view/footer/footer.js.php index 03bf381..b0b09dd 100644 --- a/core/module/theme/view/footer/footer.js.php +++ b/core/module/theme/view/footer/footer.js.php @@ -11,4 +11,117 @@ * @copyright Copyright (C) 2018-2024, 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(),$("