,parameters>]] Examples: displays the feed of the pmwiki pages with the defauft layout and number of lines: [[$RSS http://www.pmichaud.com/wiki/Pm/AllRecentChanges?action=rss]] displays the pmwiki feed in long layout and the top 5 lines [[$RSS http://www.pmichaud.com/wiki/Pm/AllRecentChanges?action=rss,long,5]] displays the pmwiki feed in short layout and all lines in the feed [[$RSS http://www.pmichaud.com/wiki/Pm/AllRecentChanges?action=rss,short,-1]] $Log: rssdisplay.php,v $ Revision 1.14 2004/05/16 09:39:19 pts00065 magpie rss 0.61 Revision 1.13 2004/03/16 11:19:14 pts00065 xhtml Revision 1.12 2004/03/16 11:15:00 pts00065 META -> meta Revision 1.11 2004/02/15 14:05:04 pts00065 beta13 Revision 1.10 2004/02/12 07:13:10 pts00065 Lock problem documented Revision 1.9 2004/02/11 10:26:48 pts00065 layout tweak Revision 1.8 2004/02/11 10:16:34 pts00065 tweaking Revision 1.7 2004/01/16 15:15:13 pts00065 More CSS Revision 1.6 2004/01/14 16:57:56 pts00065 Made the list smaller by using BR instead of LI Revision 1.5 2004/01/14 16:41:06 pts00065 HTML validator Revision 1.4 2004/01/12 15:41:55 pts00065 Script now uses the Keep function (pmwiki 0.5.27) This allows to use html-syntax instead of wiki-markup Revision 1.3 2004/01/12 15:00:44 pts00065 XHTML (
"; #print_r ($rss); #if fetch_rss fails magpie will produce some error message # we won't handle a check here if ( $num_items > 0 ) { $items = array_slice($rss->items, 0, $num_items); } else { $items = $rss->items; } foreach ($items as $item) { #print_r ($item); $href = $item['link']; $title = $item['title']; if ( isset ($item['description']) ) { $description = $item['description']; } if ( isset ($item['atom_content']) ) { $description = $item['atom_content']; } $link="$title"; if ( $what == 'short' ) { $line .= "$link \n"; } if ( $what == 'long' ) { $line .= "$link
\n"; $line .= $description . "
"; } if ( $what == 'marquee' ) { $line .= "$link \n"; } } } } if ( $what == 'marquee' ) { $line=""; } $line="$line"; #requires 0.5.27 return Keep($line); } ?>