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:
parent
1796c6e146
commit
5a2d93cd24
@ -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']);
|
||||
}
|
||||
|
||||
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user