<?php
//-------------- Class RssFeeds begins --------------->>>>>//
/**
 *
 * @category	Anova
 * @package		rss feeds
 * @author 		senthil_52ag05
 * @copyright	Copyright (c) 2009 {@link http://www.agriya.com Agriya Infoway}
 * @license		http://www.agriya.com Agriya Infoway Licence
 * @version		SVN: $Id: $
 * @since 		2008-12-22
 */
class RssFeedsFormHandler extends FormHandler
	{
	}
//<<<<<-------------- Class LoginFormHandler begins ---------------//
//-------------------- Code begins -------------->>>>>//
$rssfeedsfrm = new RssFeedsFormHandler();

//Form the rss feed array
$rssfeedsfrm->generateLinks['feed'][] = array('rss_url'=>getUrl('rss', '?act=recentquestions', 'recentquestions/', 'root'),
												'feed_title'=>$LANG['feed_recent_questions'],
												'yahoo_ext_text'=>'recentquestions',
												'rss_url_formatted'=>str_replace(':', '%3A', getUrl('rss', '?act=recentquestions', 'recentquestions/', 'root'))
												);
$rssfeedsfrm->generateLinks['feed'][] = array('rss_url'=>getUrl('rss', '?act=popularquestions', 'popularquestions/', 'root'),
												'feed_title'=>$LANG['common_popular_question_title'],
												'yahoo_ext_text'=>'popularquestions',
												'rss_url_formatted'=>str_replace(':', '%3A', getUrl('rss', '?act=popularquestions', 'popularquestions/', 'root'))
												);
if ($CFG['admin']['module']['forums'])
	$rssfeedsfrm->generateLinks['feed'][] = array('rss_url'=>getUrl('rss', '?act=recentforums', 'recentforums/', 'root'),
												'feed_title'=>$LANG['feed_recent_forums'],
												'yahoo_ext_text'=>'recentforums',
												'rss_url_formatted'=>str_replace(':', '%3A', getUrl('rss', '?act=recentforums', 'recentforums/', 'root'))
												);
if ($CFG['admin']['module']['blog'])
	$rssfeedsfrm->generateLinks['feed'][] = array('rss_url'=>getUrl('rss', '?act=recentblogs', 'recentblogs/', 'root'),
												'feed_title'=>$LANG['feed_recent_blogs'],
												'yahoo_ext_text'=>'recentblogs',
												'rss_url_formatted'=>str_replace(':', '%3A', getUrl('rss', '?act=recentblogs', 'recentblogs/', 'root'))
												);
if ($CFG['admin']['module']['debate']) {
	$rssfeedsfrm->generateLinks['feed'][] = array('rss_url'=>getUrl('rss', '?act=recentdebates', 'recentdebates/', 'root'),
												'feed_title'=>$LANG['feed_recent_debates'],
												'yahoo_ext_text'=>'recentdebates',
												'rss_url_formatted'=>str_replace(':', '%3A', getUrl('rss', '?act=recentdebates', 'recentdebates/', 'root'))
												);
	$rssfeedsfrm->generateLinks['feed'][] = array('rss_url'=>getUrl('rss', '?act=populardebates', 'populardebates/', 'root'),
												'feed_title'=>$LANG['feed_popular_debates'],
												'yahoo_ext_text'=>'populardebates',
												'rss_url_formatted'=>str_replace(':', '%3A', getUrl('rss', '?act=populardebates', 'populardebates/', 'root'))
												);
}
$rssfeedsfrm->generateLinks['img_rss'] = $CFG['site']['url'].'design/templates/'.$CFG['html']['template']['default'].'/images/rss.gif';
$rssfeedsfrm->generateLinks['img_yhoo'] = $CFG['site']['url'].'design/templates/'.$CFG['html']['template']['default'].'/images/myyhoo.gif';
$rssfeedsfrm->generateLinks['img_goog'] = $CFG['site']['url'].'design/templates/'.$CFG['html']['template']['default'].'/images/mygoog.gif';
$rssfeedsfrm->generateLinks['img_blog'] = $CFG['site']['url'].'design/templates/'.$CFG['html']['template']['default'].'/images/myblogline.gif';
//<<<<<-------------------- Code ends----------------------//
//-------------------- Page block templates begins -------------------->>>>>//
//include the header file
$rssfeedsfrm->includeHeader();
//include the content of the page
setTemplateFolder('general/');
$smartyObj->display('rssFeeds.tpl');
//includ the footer of the page
//<<<<<<--------------------Page block templates Ends--------------------//
$rssfeedsfrm->includeFooter();
?>