diff --git a/e107_plugins/forum/shortcodes/batch/viewforum_shortcodes.php b/e107_plugins/forum/shortcodes/batch/viewforum_shortcodes.php index a9016d13f..a45d48306 100644 --- a/e107_plugins/forum/shortcodes/batch/viewforum_shortcodes.php +++ b/e107_plugins/forum/shortcodes/batch/viewforum_shortcodes.php @@ -612,43 +612,27 @@ function sc_views() { - return $this->var['thread_views']; + $val = ($this->var['thread_views']) ? $this->var['thread_views'] : '0' ; + return e107::getParser()->toBadge($val); } function sc_replies() { - return ($this->var['thread_total_replies'] ?: "0"); + $val = ($this->var['thread_total_replies']) ? $this->var['thread_total_replies'] : '0'; + return e107::getParser()->toBadge($val); } function sc_viewsx() { - /*-- - if(!deftrue('BOOTSTRAP')) - { - return $this->sc_views; - } - $badge = ($this->var['thread_views'] > 0) ? "badge-info" : ""; - return "".$this->sc_views.""; - --*/ - $badge = ($this->var['thread_views'] > 0) ? "badge-info" : ""; - return deftrue('BOOTSTRAP') ? "" . $this->sc_views() . "" : $this->sc_views(); + return $this->sc_views(); } function sc_repliesx() { - /*-- - if(!deftrue('BOOTSTRAP')) - { - return $this->sc_replies; - } - $badge = ($this->var['thread_total_replies'] > 0) ? "badge-info" : ""; - return "".$this->sc_replies.""; - --*/ - $badge = ($this->var['thread_total_replies'] > 0) ? "badge-info" : ""; - return deftrue('BOOTSTRAP') ? "" . $this->sc_replies() . "" : $this->sc_replies(); + return $this->sc_replies(); } // function sc__wrapper_() { return 'forum_viewforum';} diff --git a/e107_plugins/forum/templates/forum_viewforum_template.php b/e107_plugins/forum/templates/forum_viewforum_template.php index ae1ec7eb6..51485e21e 100644 --- a/e107_plugins/forum/templates/forum_viewforum_template.php +++ b/e107_plugins/forum/templates/forum_viewforum_template.php @@ -305,7 +305,7 @@ $FORUM_VIEWFORUM_TEMPLATE['header'] = "
{BREADCRU {SUBFORUMS}"; -$SC_WRAPPER['REPLIESX'] = "{---}"; + $FORUM_VIEWFORUM_TEMPLATE['item'] = " {ICON}