2 function smarty_function_rss_generate($params,&$smarty)
4 require_once(INCLUDE_DIR
.'/feedcreator.class.php');
7 $rss =& new UniversalFeedCreator();
8 $rss->title
= $params['data']['global']['title'];
9 $rss->description
= $params['data']['global']['description'];
10 $rss->link
= $params['data']['global']['link'];
13 foreach ($params['data']['items'] as $item)
15 $item =& new FeedItem();
16 $item->title
= $item['title'];
17 $item->link
= $item['link'];
18 $item->description
= $item['description'];
22 $smarty->assign('rss_generate',$rss->createFeed());
This page took 0.45793 seconds and 4 git commands to generate.