1
0
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:
Cameron
2013-10-01 12:19:29 -07:00
parent 9e6350cdbe
commit c9284edcf3

View File

@@ -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>');