From 045dd44df2750607acec4d73a5fd0b4d853ed813 Mon Sep 17 00:00:00 2001 From: Luis Daniel Lucio Quiroz Date: Mon, 28 Dec 2020 15:55:00 -0500 Subject: [PATCH] [4.5] Adds a new default setting type: unescapedtext So this is very handy when branding. Since in 4.5 the escape() function escapes any possible tag when branding you can not put a link to your website. For example, in the footer. Otherwise it will show HTML code instead of a link, tho. --- resources/footer.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/footer.php b/resources/footer.php index c75cb1e0b1..9f162c2d1b 100644 --- a/resources/footer.php +++ b/resources/footer.php @@ -120,6 +120,9 @@ if (isset($setting['text']) && $setting['text'] != '') { $settings['theme'][$subcategory] = str_replace('_','_',escape($setting['text'])); } + if (isset($setting['unescapedtext']) && $setting['unescapedtext'] != '') { + $settings['theme'][$subcategory] = str_replace('_','_',($setting['unescapedtext'])); + } else if (isset($setting['numeric']) && is_numeric($setting['numeric'])) { $settings['theme'][$subcategory] = $setting['numeric']; }