mirror of
https://github.com/e107inc/e107.git
synced 2025-07-30 19:30:25 +02:00
Remove badge wrappers
This commit is contained in:
@@ -389,31 +389,25 @@ class forum_shortcodes extends e_shortcode
|
|||||||
|
|
||||||
function sc_threads()
|
function sc_threads()
|
||||||
{
|
{
|
||||||
return $this->var['forum_threads'];
|
return $this->sc_threadsx();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function sc_replies()
|
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 e107::getParser()->toBadge($this->var['forum_threads']);
|
||||||
// return "<span class='badge ".(($f['forum_threads']) ? "badge-info" : "")."'>".$f['forum_threads']."</span>";
|
|
||||||
// EQUAL TO SC_THREADS.......................
|
|
||||||
return $this->var['forum_threads'];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function sc_repliesx()
|
function sc_repliesx() // EQUAL TO SC_REPLIES.......................
|
||||||
{
|
{
|
||||||
// global $f;
|
return e107::getParser()->toBadge($this->var['forum_replies']);
|
||||||
// return "<span class='badge ".(($f['forum_replies']) ? "badge-info" : "")."'>".$f['forum_replies']."</span>";
|
|
||||||
// EQUAL TO SC_REPLIES.......................
|
|
||||||
return $this->var['forum_replies'];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@@ -128,8 +128,7 @@ $FORUM_TEMPLATE['main']['parent'] = "<tr>
|
|||||||
</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>
|
$FORUM_TEMPLATE['main']['forum'] = "<tr>
|
||||||
<td>{NEWFLAG}</td>
|
<td>{NEWFLAG}</td>
|
||||||
<td>{FORUMNAME}<br /><small>{FORUMDESCRIPTION}</small>{FORUMSUBFORUMS}</td>
|
<td>{FORUMNAME}<br /><small>{FORUMDESCRIPTION}</small>{FORUMSUBFORUMS}</td>
|
||||||
|
Reference in New Issue
Block a user