From 2b804a01dcd133597e6f9f56c3b2785b87612c20 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Sat, 15 Apr 2023 13:33:23 +0200 Subject: [PATCH] Footer --- core/module/theme/view/footer/footer.js.php | 111 +------------------- core/module/theme/view/footer/footer.php | 8 +- 2 files changed, 4 insertions(+), 115 deletions(-) diff --git a/core/module/theme/view/footer/footer.js.php b/core/module/theme/view/footer/footer.js.php index f2a49026..01ed6228 100644 --- a/core/module/theme/view/footer/footer.js.php +++ b/core/module/theme/view/footer/footer.js.php @@ -11,113 +11,4 @@ * @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(), $("