mirror of
https://github.com/e107inc/e107.git
synced 2025-08-05 14:17:49 +02:00
#448 - Support for news avatar - requires testing.
This commit is contained in:
@@ -181,6 +181,12 @@ class news_shortcodes extends e_shortcode
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function sc_newsavatar()
|
||||||
|
{
|
||||||
|
return vartrue($this->news_item['user_id']) ? e107::getParser()->parseTemplate("{USER_AVATAR=".$this->news_item['user_id']."}",true) : '';
|
||||||
|
}
|
||||||
|
|
||||||
function sc_newscommentlink($parm)
|
function sc_newscommentlink($parm)
|
||||||
{
|
{
|
||||||
return ($this->news_item['news_allow_comments'] ? $this->param['commentoffstring'] : " <a href='".e107::getUrl()->create('news/view/item', $this->news_item)."'>".$this->param['commentlink'].'</a>');
|
return ($this->news_item['news_allow_comments'] ? $this->param['commentoffstring'] : " <a href='".e107::getUrl()->create('news/view/item', $this->news_item)."'>".$this->param['commentlink'].'</a>');
|
||||||
|
Reference in New Issue
Block a user