/** Change these variables to customize the RSS display. **/
// RSS Feed Array
$feedURLs = array(
'https://calendars.uark.edu/RSSSyndicator.aspx?type=N&category=Intramural%2fRecreational+Sports%3a%3aOutdoor+Connection',
);
// Feed style, options: link, linkdesc
$feedStyle = 'linkdesc';
// Maximum length of title string (0 for unlimited)
$maxTitleLength = 50;
// Maximum length of description string (0 for unlimited)
$maxDescLength = 150;
// Maximum number of items to return (0 for unlimited)
$maxItems = 5;
/** Do not edit below this line. **/
include('/export/home2/rd_vcad/urel/inc/rss_parser.inc.php');
$output = '';
foreach($feedURLs as $feedURL) {
$rss = @fetch_rss($feedURL);
if ($rss) {
$feedChannel = $rss->channel;
$output .= ' '.$feedChannel['title'].''."\n";
$feedItems = $rss->items;
$currItem = 1;
foreach($feedItems as $feedItem) {
if ($currItem <= $maxItems || $maxItems == 0) {
$output .= ''."\n";
if ($feedStyle == 'linkdesc') {
$output .= ''."\n";
}
}
$currItem++;
}
}
}
echo $output;
?>
|