=== Collapsing Archives === Contributors: robfelty Donate link: http://blog.robfelty.com/wordpress-plugins Tags: archives, sidebar, widget, navigation, menu, posts Requires at least: 2.6 Tested up to: 2.7.1 Stable tag: 1.1.5 This plugin uses Javascript to dynamically expand or collaps the set of months for each year and posts for each month in the archive listing. == Description == This is a relatively simple plugin that uses Javascript to make the Archive links in the sidebar collapsable by year, and/or month. = What's new? = * 1.1.5 (2009/05/05) * Fixed options page problems ( `` To something of the following: ` \n"; wp_get_archives(your_options_here); echo "\n"; } ?> ` This way, if you ever disable the plugin, your blog doesn't die. **Note**: `wp_get_archives` can be substituted for `wp_list_archives` depending on the design of the theme, so be sure to edit appropriately. Also, substitute `your_options_here` with what the appropriate options are for your theme. WIDGET INSTALLATION For those who have widget capabilities, (default in Wordpress 2.3+), installation is easier. Unzip contents to wp-content/plugins/ so that the files are in a collapsing-archives directory. You must enable the Collapsing Archives plugin, then simply go the Presentation > Widgets section and add the Collapsing Archives Widget. == Frequently Asked Questions == = How do I change the style of the collapsing archives lists? = The collapsing archives plugin uses several ids and classes which can be styled with CSS. These can be changed from the settings page. You may have to rename some of the id statements. For example, if your sidebar is called "myawesomesidebar", you would rewrite the line #sidebar li.collapsArch {list-style-type:none} to #myawesomesidebar li.collapsArch {list-style-type:none} If you are using the plugin manually (i.e. inserting code into your theme), you may want to replace #sidebar with #collapsArchList = There seems to be a newline between the collapsing/expanding symbol and the category name. How do I fix this? = If your theme has some css that says something like #sidebar li a {display:block} that is the problem. You probably want to add a float:left to the .sym class == Screenshots == 1. Collapsing archives with default theme 2. available options == Demo == I use this plugin in my blog at http://blog.robfelty.com == OPTIONS AND CONFIGURATIONS == Options for Collapsing Archives are found under Options -> Collapsing Archives. So far, there are the following options: * Use chronological or reverse chronological ordering * Leave Current Year Expanded by Default * Display number of posts in a year * Show Month Link * Display number of posts in a month * Enable month links to expand to show posts * Display pages and posts, or just posts * Leave Current Month Expanded by Defaul * Posts can be displayed with any of the following: * Number (ID) * Title * Comment Count * Exclude posts belonging to particular categories (works for single-category posts only) == CAVEAT == This plugin relies on Javascript, but does degrade gracefully if it is not present/enabled to show all of the archive links as usual. == HISTORY == * 1.1.5 (2009/05/05) * Fixed options page problems (s with triangles for CSS styling * Added style information to make triangles bigger and give a pointer cursor over them * Added title tags to triangles to indicate functionality * 0.6.1: * Bug fix - fixed the previous year triangle pointing in the wrong direction * Changed default options to reflect how I use it on my website * 0.6: * Changed name from Fancy Archives to Collapsing Archives * Changed author from Andrew Rader to Robert Felty * Added option to link to archives.php * Added option to list in chronological or reverse chronological order * Added triangles which mark the collapsing and expanding features That is, clicking on the triangle collapses or expands, while clicking on a month or year links to the archives for the said month or year * Changed behavior from starting all expanded and then collapsing on page load to the opposite * Removed the rel='hide' and rel='show' tags, because they are not xhtml 1.0 compliant. Now uses the CSS classes instead --------------------------------------------------------------------------- Fancy Archives Changelog * 0.5: * Added option to display Page entries with Posts inside the month links * Cleaned up the list generation code * 0.4: * Added option: Trim post titles to a set size * Added option: Optionally show ellipsis if a post title was shrunk * Fix: Added fix for when page's content-type is "application/xhtml+xml" * 0.3: * Huge rewrite: cleaned up javascript - one function does all the work, javascript no longer visible in page source * Added options: month links are optional, set current year/month to be expanded by default * Links now link to 'javascript;' instead of '#' * 0.2.5: * Fixed an issue with displaying comment counts in < WP2.0, fixed by using WP's internal comment counting function (Thanks Will) * 0.2: * Massive update, now has a dedicated options page (no more passing options to function) * Month links can expand to show individual posts * 0.1: * Initial Release