test3
[mirrors/Kyberia-bloodline.git] / trash / function.rss_generate.php
CommitLineData
51ff3226 1<?php
2function smarty_function_rss_generate($params,&$smarty)
3{
4 require_once(INCLUDE_DIR.'/feedcreator.class.php');
5print_r($params);
6
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'];
11
12
13 foreach ($params['data']['items'] as $item)
14 {
15 $item =& new FeedItem();
16 $item->title = $item['title'];
17 $item->link = $item['link'];
18 $item->description = $item['description'];
19 $rss->addItem($item);
20 }
21
22 $smarty->assign('rss_generate',$rss->createFeed());
23}
24?>
This page took 0.305609 seconds and 4 git commands to generate.