mirror of
https://github.com/e107inc/e107.git
synced 2025-08-16 11:36:08 +02:00
NewsTags shortcode, some admin-ui fixes and newspost thumbnail BC fixes.
This commit is contained in:
@@ -446,6 +446,18 @@ class news_shortcodes extends e_shortcode
|
||||
return $info;
|
||||
}
|
||||
|
||||
function sc_newstags($parm=5)
|
||||
{
|
||||
$tmp = explode(",",$this->news_item['news_meta_keywords']);
|
||||
$words = array();
|
||||
foreach($tmp as $val)
|
||||
{
|
||||
$words[] = "<a href='".e_BASE."news.php?tag=".$val."'>".$val."</a>";
|
||||
|
||||
}
|
||||
return implode(", ",$words);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user