All pastes #97839 Raw Edit

Unnamed

public text v1 · immutable
#97839 ·published 2006-07-24 03:01 UTC
rendered paste body
 EXAMPLES:

	NAMED PARAMETER EXAMPLE -- PREFERRED METHOD
		<ol>
		<?php 
			feedList(array("rss_feed_url"=>"http://www.auf-der-hoehe.de/index.php?id=23&type=333&feed_id=71&no_cache=1",
							"num_items"=>10,
							"show_description"=>false,
							"random"=>true,
							"sort"=>"asc",
							"new_window"=>true,
							"show_date"=>true
					)
			); 
		?>
		</ol>

	BASIC
		<ol>
		 <?php 
			feedList("http://del.icio.us/rss/finalcut"); 
		 ?>
		</ol>

		due to the fact that rssLinkList wraps each item with an <li> tag pair by default you need to provide the <ol> or <ul> wrappers	around the function call.


	COMBINING LISTS:

		You can also combine rss calls into one html list simply by wrapping multiple rssLinkList function calls in one set of html list tags.  Notice I only specify the first parameter here.  All parameters have defaults so the only one you really need to provide is the URL.

		<ol>
		 <?php 
			feedList("http://del.icio.us/rss/finalcut"); 
			feedList("http://www.43things.com/rss/uber/author?username=FinalCut");
		 ?>
		</ol>

		since the function, feedList, by default wraps each rss item in <li> tags you will end up with one long list of items to display.

	ENCODING EXAMPLE:

		<ol>
		<?php feedList("http://www.auf-der-hoehe.de/index.php?id=23&type=333&feed_id=71&no_cache=1",10,false,true,"<li>","</li>","-",true); ?>
		</ol>