From e6a5d32440c7602697bba4184f6174218d8ae769 Mon Sep 17 00:00:00 2001 From: rica-carv Date: Sun, 18 Aug 2024 19:46:58 +0100 Subject: [PATCH] Forum shortcodes cleanup --- .../shortcodes/batch/forum_shortcodes.php | 38 +++++++++++-------- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/e107_plugins/forum/shortcodes/batch/forum_shortcodes.php b/e107_plugins/forum/shortcodes/batch/forum_shortcodes.php index e27fd4ca92..93cbbe0fda 100644 --- a/e107_plugins/forum/shortcodes/batch/forum_shortcodes.php +++ b/e107_plugins/forum/shortcodes/batch/forum_shortcodes.php @@ -32,41 +32,41 @@ function sc_forumtitle() } // LEGACY shortcodes, to be deprecated & directly handled in template file??? - function sc_threadtitle() +/* function sc_threadtitle() { return LAN_FORUM_0002; } - - function sc_replytitle() +*/ +/* function sc_replytitle() { return LAN_FORUM_0003; } - - function sc_lastpostitle() +*/ +/* function sc_lastpostitle() { return LAN_FORUM_0004; } - - function sc_infotitle() +*/ +/* function sc_infotitle() { return LAN_FORUM_0009; } - - function sc_newthreadtitle() +*/ +/* function sc_newthreadtitle() { return LAN_FORUM_0075; } - - function sc_postedtitle() +*/ +/* function sc_postedtitle() { return LAN_FORUM_0074; } - - function sc_tracktitle() +*/ +/* function sc_tracktitle() { return LAN_FORUM_0073; } - +*/ function sc_statlink() { return "".LAN_FORUM_0017."\n"; @@ -84,7 +84,11 @@ function sc_iconkey() return null; } - return " +// global $FORUM_TEMPLATE; +// if($FORUM_TEMPLATE['iconkey']){return $FORUM_TEMPLATE['iconkey'];} + $FORUM_TEMPLATE = varset($GLOBALS['FORUM_TEMPLATE']); + return (defset('BOOTSTRAP') && !empty($FORUM_TEMPLATE['iconkey'])) ? e107::getParser()->parseTemplate($FORUM_TEMPLATE['iconkey'], true, $this) : + " \n @@ -510,7 +514,9 @@ function sc_lastpostuser() function sc_lastpostdate() { - return $this->sc_lastpost(array('type'=>'datelink')); + echo "




















"; + + return $this->sc_lastpost(array('type'=>'datelink')); }
".defset('IMAGE_new_small')." ".LAN_FORUM_0039."