1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-20 12:41:51 +02:00

Remove badge wrappers

This commit is contained in:
Cameron 2016-12-07 08:39:57 -08:00
parent 1796c6e146
commit 5a2d93cd24
2 changed files with 7 additions and 14 deletions

View File

@ -389,31 +389,25 @@ class forum_shortcodes extends e_shortcode
function sc_threads()
{
return $this->var['forum_threads'];
return $this->sc_threadsx();
}
function sc_replies()
{
return $this->var['forum_replies'];
return $this->sc_repliesx();
}
function sc_threadsx()
function sc_threadsx() // EQUAL TO SC_THREADS.......................
{
// global $f;
// return "<span class='badge ".(($f['forum_threads']) ? "badge-info" : "")."'>".$f['forum_threads']."</span>";
// EQUAL TO SC_THREADS.......................
return $this->var['forum_threads'];
return e107::getParser()->toBadge($this->var['forum_threads']);
}
function sc_repliesx()
function sc_repliesx() // EQUAL TO SC_REPLIES.......................
{
// global $f;
// return "<span class='badge ".(($f['forum_replies']) ? "badge-info" : "")."'>".$f['forum_replies']."</span>";
// EQUAL TO SC_REPLIES.......................
return $this->var['forum_replies'];
return e107::getParser()->toBadge($this->var['forum_replies']);
}

View File

@ -128,8 +128,7 @@ $FORUM_TEMPLATE['main']['parent'] = "<tr>
</tr>";
$SC_WRAPPER['REPLIESX'] = "<span class='badge badge-info'>{---}</span>";
$SC_WRAPPER['THREADSX'] = "<span class='badge badge-info'>{---}</span>";
$FORUM_TEMPLATE['main']['forum'] = "<tr>
<td>{NEWFLAG}</td>
<td>{FORUMNAME}<br /><small>{FORUMDESCRIPTION}</small>{FORUMSUBFORUMS}</td>