mirror of
https://github.com/e107inc/e107.git
synced 2025-03-13 17:09:46 +01:00
Update view_shortcodes.php
This commit is contained in:
parent
6fddef4d7a
commit
416997604e
@ -154,18 +154,26 @@ class plugin_forum_view_shortcodes extends e_shortcode
|
||||
|
||||
function sc_topic_views($parm = null)
|
||||
{
|
||||
|
||||
$val = ($this->var['thread_views']) ? $this->var['thread_views'] : '0';
|
||||
|
||||
if(!empty($parm['raw']))
|
||||
{
|
||||
return $val;
|
||||
}
|
||||
|
||||
return e107::getParser()->toBadge($val);
|
||||
}
|
||||
|
||||
|
||||
function sc_topic_replies($parm = null)
|
||||
{
|
||||
|
||||
$val = ($this->var['thread_total_replies']) ? $this->var['thread_total_replies'] : '0';
|
||||
|
||||
if(!empty($parm['raw']))
|
||||
{
|
||||
return $val;
|
||||
}
|
||||
|
||||
return e107::getParser()->toBadge($val);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user