function rssFeedNews_getContent() { global $template; $template->setFile('rssFeedNews.tmpl'); $template->setShowRresource(false); $rss = new Rss(); $rss->cache_dir = realpath(dirname(__FILE__) . '/../cache'); //path to cache directory on your server from this script. Chmod 777! $rss->date_format = 'd M Y g:i:s A'; //date format of RSS item. See PHP date() function for possible input. $rss->cache_time = 300; $rss->CDATA = 'strip'; // ------------------------------------------------------------------- // outputRSS_XML()- Outputs the "title", "link", "description", and "pubDate" elements of an RSS feed in XML format // ------------------------------------------------------------------- if ($rs = $rss->get(RSS_PATH)) { if (sizeof($rs['rssFeeds']) > 0) { $template->addVars($rs); } } }