mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 11:50:30 +02:00
Update view_shortcodes.php
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user