1
0
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:
CaMer0n
2012-07-15 03:01:30 +00:00
parent 5f61a512ae
commit 187bb8f53b
8 changed files with 71 additions and 13 deletions

View File

@@ -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);
}
}
?>