From c9284edcf3ea8f42f4e2d019419ac23af3a2e49c Mon Sep 17 00:00:00 2001 From: Cameron Date: Tue, 1 Oct 2013 12:19:29 -0700 Subject: [PATCH] #448 - Support for news avatar - requires testing. --- e107_core/shortcodes/batch/news_shortcodes.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/e107_core/shortcodes/batch/news_shortcodes.php b/e107_core/shortcodes/batch/news_shortcodes.php index c7adb86ca..1b7662330 100644 --- a/e107_core/shortcodes/batch/news_shortcodes.php +++ b/e107_core/shortcodes/batch/news_shortcodes.php @@ -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) { return ($this->news_item['news_allow_comments'] ? $this->param['commentoffstring'] : " news_item)."'>".$this->param['commentlink'].'');