RSS Feed for ' . $rss->channel['title'] . '
Note: Content for this RSS feed is provided as a text alternative to inline RSS feeds that may not display on all browsers.
'; echo "$str1 = characters to display
// values of -1 indicate to displa item without the title as a link
// (default=0)
$desc = (isset($_GET['desc'])) ? $_GET['desc'] : 0;
// flag to show date of posts, values: no/yes (default=no)
$date = (isset($_GET['date'])) ? $_GET['date'] : 'n';
// time zone offset for making local time,
// e.g. +7, =-10.5; 'feed' = print the time string in the RSS w/o conversion
$tz = (isset($_GET['tz'])) ? $_GET['tz'] : 'feed';
// flag to open target window in new window; n = same window, y = new window,
// other = targeted window, 'popup' = call JavaScript function popupfeed() to display
// in new window (default is n)
$targ = (isset($_GET['targ'])) ? $_GET['targ'] : 'n';
if ($targ == 'n') {
$target_window = ' target="_self"';
} elseif ($targ == 'y' ) {
$target_window = ' target="_blank"';
} elseif ($targ == 'popup') {
$target_window = ' onClick="popupfeed(this.href);return false"';
} else {
$target_window = ' target="' . $targ . '"';
}
// flag to show feed as full html output rather than JavaScript, used for alternative
// views for JavaScript-less users.
// y = display html only for non js browsers
// n = default (JavaScript view)
// a = display javascript output but allow HTML
// p = display text only items but convert linefeeds to BR tags
// default setting for no conversion of linebreaks
$html = (isset($_GET['html'])) ? $_GET['html'] : 'n';
$br = ' ';
if ($html == 'a') {
$desc = 1;
} elseif ($html == 'p') {
$br = '
';
}
// optional parameter to use different class for the CSS container
$rss_box_id = (isset($_GET['css'])) ? '-' . $_GET['css'] : '';
// PARSE FEED and GENERATE OUTPUT -------------------------------
// This is where it all happens!
$rss = @fetch_rss( $src );
// begin javascript output string for channel info
$str= "document.write('
Error: Feed failed! Causes may be (1) No data found for RSS feed $src; (2) There are no items are available for this feed; (3) The RSS feed does not validate.
Please verify that the URL $src works first in your browser and that the feed passes a validator test.
channel['link']) . '"' . $target_window . ">" . addslashes(strip_returns($rss->channel['title'])) . "
" . addslashes(strip_returns($rss->channel['description'])) . "
Note: Content for this RSS feed is provided as a text alternative to inline RSS feeds that may not display on all browsers.
'; echo "$str