Comic archive list

comic_archive_list($years,$format,$order) - display a list of all comics in the archive

Description
Displays a list (using the HTML &lt;ul&gt; tag) of all comics in the archive. Each comic is represented by two elements, each wrapped in a &lt;span&gt; tag -- One for the comic's date, one for its title.

stripShow adds some CSS classes to each element in the list to facilitate styling. The date is given the CSS class archive_date, the title is given the class archive_title. The list itself is given the class comic_archive.

Basic Usage
&lt;?php comic_archive_list; ?&gt; This would produce the following output: &lt;ul class="comic_archive"&gt; &lt;li&gt; &lt;span class="archive_date"&gt;January 4, 2009&lt;/span&gt; &lt;span class="archive_title"&gt;&lt;a href="http://example.com/wordpress/?p=222" rel="bookmark" title="Permanent Link: Comic for January 4, 2009"&gt;Comic for January 4, 2009&lt;/a&gt;&lt;/span&gt; &lt;/li&gt; &lt;li&gt; &lt;span class="archive_date"&gt;January 3, 2009&lt;/span&gt; &lt;span class="archive_title"&gt;&lt;a href="http://example.com/wordpress/?p=218" rel="bookmark" title="Permanent Link: Comic for January 3rd, 2009"&gt;Comic for January 3rd, 2009&lt;/a&gt;&lt;/span&gt; &lt;/li&gt; &lt;li&gt; &lt;span class="archive_date"&gt;January 2, 2009&lt;/span&gt; &lt;span class="archive_title"&gt;&lt;a href="http://example.com/wordpress/?p=194" rel="bookmark" title="Permanent Link: Comic for Friday, January 2nd, 2009"&gt;Comic for Friday, January 2nd, 2009&lt;/a&gt;&lt;/span&gt; &lt;/li&gt; &lt;li&gt; &lt;span class="archive_date"&gt;January 1, 2009&lt;/span&gt; &lt;span class="archive_title"&gt;&lt;a href="http://example.com/wordpress/?p=193" rel="bookmark" title="Permanent Link: Comic for Thursday, January 1st, 2009"&gt;Comic for Thursday, January 1st, 2009&lt;/a&gt;&lt;/span&gt; &lt;/li&gt; &lt;li&gt; &lt;span class="archive_date"&gt;December 29, 2008&lt;/span&gt; &lt;span class="archive_title"&gt;&lt;a href="http://example.com/wordpress/?p=211" rel="bookmark" title="Permanent Link: Comic for Monday, December 29th, 2008"&gt;Comic for Monday, December 29th, 2008&lt;/a&gt;&lt;/span&gt; &lt;/li&gt; &lt;li&gt; &lt;span class="archive_date"&gt;December 28, 2008&lt;/span&gt; &lt;span class="archive_title"&gt;&lt;a href="http://example.com/wordpress/?p=210" rel="bookmark" title="Permanent Link: Comic for Sunday, December 28th, 2008"&gt;Comic for Sunday, December 28th, 2008&lt;/a&gt;&lt;/span&gt; &lt;/li&gt; &lt;li&gt; &lt;span class="archive_date"&gt;December 27, 2008&lt;/span&gt; &lt;span class="archive_title"&gt;&lt;a href="http://example.com/wordpress/?p=202" rel="bookmark" title="Permanent Link: Comic for Saturday, December 27th, 2008"&gt;Comic for Saturday, December 27th, 2008&lt;/a&gt;&lt;/span&gt; &lt;/li&gt; &lt;li&gt; &lt;span class="archive_date"&gt;December 26, 2008&lt;/span&gt; &lt;span class="archive_title"&gt;&lt;a href="http://example.com/wordpress/?p=192" rel="bookmark" title="Permanent Link: Comic for Friday, December 26th, 2008"&gt;Comic for Friday, December 26th, 2008&lt;/a&gt;&lt;/span&gt; &lt;/li&gt; &lt;/ul&gt;

Advanced Usage
&lt;?php comic_archive_list(TRUE,'Y-m-d', 'ASC'); ?&gt; This would produce the following output: &lt;h3&gt;2008&lt;/h3&gt; &lt;ul class="comic_archive"&gt; &lt;li&gt; &lt;span class="archive_date"&gt;2008-12-26&lt;/span&gt; &lt;span class="archive_title"&gt;&lt;a href="http://thaleia.local/wordpress/?p=192" rel="bookmark" title="Permanent Link: Comic for Friday, December 26th, 2008"&gt;Comic for Friday, December 26th, 2008&lt;/a&gt;&lt;/span&gt; &lt;/li&gt; &lt;li&gt; &lt;span class="archive_date"&gt;2008-12-27&lt;/span&gt; &lt;span class="archive_title"&gt;&lt;a href="http://thaleia.local/wordpress/?p=202" rel="bookmark" title="Permanent Link: Comic for Saturday, December 27th, 2008"&gt;Comic for Saturday, December 27th, 2008&lt;/a&gt;&lt;/span&gt; &lt;/li&gt; &lt;li&gt; &lt;span class="archive_date"&gt;2008-12-28&lt;/span&gt; &lt;span class="archive_title"&gt;&lt;a href="http://thaleia.local/wordpress/?p=210" rel="bookmark" title="Permanent Link: Comic for Sunday, December 28th, 2008"&gt;Comic for Sunday, December 28th, 2008&lt;/a&gt;&lt;/span&gt; &lt;/li&gt; &lt;li&gt; &lt;span class="archive_date"&gt;2008-12-29&lt;/span&gt; &lt;span class="archive_title"&gt;&lt;a href="http://thaleia.local/wordpress/?p=211" rel="bookmark" title="Permanent Link: Comic for Monday, December 29th, 2008"&gt;Comic for Monday, December 29th, 2008&lt;/a&gt;&lt;/span&gt; &lt;/li&gt; &lt;/ul&gt; &lt;h3&gt;2009&lt;/h3&gt; &lt;ul class="comic_archive"&gt; &lt;li&gt; &lt;span class="archive_date"&gt;2009-01-01&lt;/span&gt; &lt;span class="archive_title"&gt;&lt;a href="http://thaleia.local/wordpress/?p=193" rel="bookmark" title="Permanent Link: Comic for Thursday, January 1st, 2009"&gt;Comic for Thursday, January 1st, 2009&lt;/a&gt;&lt;/span&gt; &lt;/li&gt; &lt;li&gt; &lt;span class="archive_date"&gt;2009-01-02&lt;/span&gt; &lt;span class="archive_title"&gt;&lt;a href="http://thaleia.local/wordpress/?p=194" rel="bookmark" title="Permanent Link: Comic for Friday, January 2nd, 2009"&gt;Comic for Friday, January 2nd, 2009&lt;/a&gt;&lt;/span&gt; &lt;/li&gt; &lt;li&gt; &lt;span class="archive_date"&gt;2009-01-03&lt;/span&gt; &lt;span class="archive_title"&gt;&lt;a href="http://thaleia.local/wordpress/?p=218" rel="bookmark" title="Permanent Link: Comic for January 3rd, 2009"&gt;Comic for January 3rd, 2009&lt;/a&gt;&lt;/span&gt; &lt;/li&gt; &lt;li&gt; &lt;span class="archive_date"&gt;2009-01-04&lt;/span&gt; &lt;span class="archive_title"&gt;&lt;a href="http://thaleia.local/wordpress/?p=222" rel="bookmark" title="Permanent Link: Comic for January 4, 2009"&gt;Comic for January 4, 2009&lt;/a&gt;&lt;/span&gt; &lt;/li&gt; &lt;/ul&gt;