1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-28 10:20:45 +02:00

Remove badge shortcode wrappers.

This commit is contained in:
Cameron
2016-12-07 08:52:41 -08:00
parent 5a2d93cd24
commit a23e89d6c1
2 changed files with 7 additions and 23 deletions

View File

@@ -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 "<span class='badge {$badge}'>".$this->sc_views."</span>";
--*/
$badge = ($this->var['thread_views'] > 0) ? "badge-info" : "";
return deftrue('BOOTSTRAP') ? "<span class='badge {$badge}'>" . $this->sc_views() . "</span>" : $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 "<span class='badge {$badge}'>".$this->sc_replies."</span>";
--*/
$badge = ($this->var['thread_total_replies'] > 0) ? "badge-info" : "";
return deftrue('BOOTSTRAP') ? "<span class='badge {$badge}'>" . $this->sc_replies() . "</span>" : $this->sc_replies();
return $this->sc_replies();
}
// function sc__wrapper_() { return 'forum_viewforum';}

View File

@@ -305,7 +305,7 @@ $FORUM_VIEWFORUM_TEMPLATE['header'] = "<div class=' row-fluid'><div>{BREADCRU
{SUBFORUMS}";
$SC_WRAPPER['REPLIESX'] = "<span class='badge badge-info'>{---}</span>";
$FORUM_VIEWFORUM_TEMPLATE['item'] = "<tr>
<td>{ICON}</td>
<td>