function RSS_Links($url, $size) { global $RSS_Content; $page = "<ul>"; RSS_RetrieveLinks($url); if ($size > 0) { $recents = array_slice($RSS_Content, 0, $size); } foreach ($recents as $article) { $type = $article["type"]; if ($type == 0) { continue; } $title = $article["title"]; $link = $article["link"]; $page .= "<li><a href=\"{$link}\">{$title}</a></li>\n"; } $page .= "</ul>\n"; return $page; }
function RSS_Links($url, $size = 15) { global $RSS_Content; $page = array(); RSS_RetrieveLinks($url); if ($size > 0) { $recents = array_slice($RSS_Content, 0, $size); } $i = 1; foreach ($recents as $article) { $type = $article["type"]; if ($type == 0) { continue; } $title = $article["title"]; $link = $article["link"]; $article_array = array($i => array('title' => $title, 'link' => $link)); array_push($page, $article_array); $i++; } return $page; }