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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user