1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-16 11:36:08 +02:00

News: {NEWS_VISIBILITY} shortcode added - returns text version of userclass for use in CSS class styling if needed.

This commit is contained in:
Cameron
2016-08-30 14:22:47 -07:00
parent bba40d458c
commit eecbfbd61d
3 changed files with 36 additions and 1 deletions

View File

@@ -357,6 +357,14 @@ class news_shortcodes extends e_shortcode
return $this->sc_newsimage($parm);
}
public function sc_news_visibility($parm=null)
{
$string= e107::getUserClass()->getIdentifier($this->news_item['news_class']);
return $string;
}
// ----------------------------------- BC compatible Shortcodes ------------------------------------------- //
function sc_newscategory($parm=null)