| ");
$ret .= $this->writeWrap($this->title());
$ret .= $this->writeWrap(" |
| (" . $this->ageMessage . ") |
");
$items = $this->items();
if ($items){
if ($limit){
$items = array_slice($items,$limit);
}
foreach ($items as $item){
$ret .= $this->writeWrap("| ");
$ret .= $this->writeWrap("" . $item["title"] . " |
\n");
}
}
else {
$ret .= $this->writeWrap("| ");
$ret .= $this->writeWrap("No items at $this time. |
\n");
}
$ret .= $this->writeWrap("
");
return $ret;
}
function writeWrap($string){
$string = str_replace('"', "'",$string);
$string = str_replace("\n", " ",$string);
return "document.write(\"$string\");\n\n";
}
function feeds () {
return array(
"http://slashdot.org/slashdot.rdf" => "slashdot.rdf",
"http://freshmeat.net/backend/fm.rdf" => "freshmeat.rdf",
"http://www.artofthemix.org/xml/rss.asp" => "artOfMix.rdf",
"http://safari.oreilly.com/NewOnSafari.asp" => "safari.rdf",
"http://www.syndic8.com/boxrss.php?Box=RecentFeeds&N=5" => "s8-recent.rdf",
"http://www.adamwalker.34sp.com/b2/b2rss.php" => "b2-mods.rdf",
"http://veen.com/jeff/rss.xml" => "veen.rdf",
);
}
}//end class
?>