<?php
// optional function to modify each item as needed (must be a unique name)
function rss_modify_rssdata($item_number, &$rss_item)
{
global $vboptions;
// do any data modifications needed at this point.
$rss_item['DESCRIPTION'] = vbdate($vboptions['dateformat'], strtotime($rss_item['PUBDATE']), $vboptions['yestoday']);
$rss_item['DESCRIPTION'] .= ' <span class="time">';
$rss_item['DESCRIPTION'] .= vbdate($vboptions['timeformat'], strtotime($rss_item['PUBDATE']));
$rss_item['DESCRIPTION'] .= '</span>';
}
// All the information about each feed is defined here
// 'feed' => location of the rss live feed
// 'cache_age' => default value for cache refresh if not specified in feed
// 'maxitems' => maximum # of items to display regardless of how many are in the feed
// 'randomize' => if 'true' then 'maxitems' items will be 'randomized' if fewer than total item count
// 'template' => the 'master' template to be used
// 'templatebits' => the template used for each record of the file
// 'callback' => an optional function to use to process each item
$rss_feed_array = array (
feed => '<?php
// optional function to modify each item as needed (must be a unique name)
function rss_modify_renntech($item_number, &$rss_item)
{
global $vboptions;
// do any data modifications needed at this point.
$rss_item['DESCRIPTION'] = vbdate($vboptions['dateformat'], strtotime($rss_item['PUBDATE']), $vboptions['yestoday']);
$rss_item['DESCRIPTION'] .= ' <span class="time">';
$rss_item['DESCRIPTION'] .= vbdate($vboptions['timeformat'], strtotime($rss_item['PUBDATE']));
$rss_item['DESCRIPTION'] .= '</span>';
}
// All the information about each feed is defined here
// 'feed' => location of the rss live feed
// 'maxitems' => maximum # of items to display regardless of how many are in the feed
// 'randomize' => if 'true' then 'maxitems' items will be 'randomized' if fewer than total item count
// 'template' => the 'master' template to be used
// 'templatebits' => the template used for each record of the file
// 'callback' => an optional function to use to process each item
$rss_feed_array = array (
feed => 'http://www.kansascity.com/mld/kansascity/news/local/rss.xml',
maxitems => 7,
randomize => false,
template => 'adv_portal_rss',
templatebits => 'adv_portal_rennbits',
callback => ''
);
require ('./modules/rssfeed.php');
unset($rss_feed_array);
?>
',
cache_age => 60,
maxitems => 7,
randomize => false,
template => 'adv_portal_rss',
templatebits => 'adv_portal_rssbits',
callback => 'rss_modify_rssdata'
);
require ('./modules/rssfeed.php');
unset($rss_feed_array);
?>