CDC Clean Archives
This is a quick and hasty hacking of the SRG Clean Archives by Shawn Grimes.
I’d been wanting to modify it a bit to allow for collapsing each month to require less scrolling. Currently in this version aside from the months collapsing using the fx.Accordion effect in the Moo.fx libraries it’s precisely the same as Shawn Grimes published plugin.
You can see it in action on my archives page.
How do I use it?
Upload the cdc_clean_archives.php to your wp-content/plugins/ folder and activate it through your wordpress admin panel.
The Month/Year format is surrounded by “h5†tags. If you would like to change this, just open up the cdc_clean_archives.php file and look for this line of code:
echo get_archives_link(’#', $text, ”,’
‘,’
‘,”);
There you can change the current tags to whatever you would like to use. Such as a h2, h3, etc. and re-save the file. Just be sure not to delete the quote marks or the class name (that’s what allows the accordion effect).
The list of of articles can be styled in your css by setting up a .postspermonth class.
Here is an example:
.postspermonth {
margin: 5px 0 10px 0;
list-style: none;
padding-left: 25px;
}
The output from this plug-in is already wrapped in the needed “ul†tags. All you need to do is customize the class to your taste.
To call the plug-in all you need to do is insert the following string of code where you want the archives to be displayed, ie your sidebar or on a separate archive page:
cdc_clean_archives()
Then add this to the head of your archive page:
Version .60:
Integrated the moo.fx javascripts into the function simplifying the installation of the plugin.
And that is all. Enjoy!
To see a working example of this plug-in please visit http://www.cdcstudios.com/archive.php
Credits:
==============================================
Shawn Grimes (http://hexfactor.com)
Sebastian Schmieg (http://www.kingcosmonaut.de)
Chris J. Davis (http://www.chrisjdavis.org)
Skippy (http://skippy.net/)
Jan (http://www.foundandlost.nl/)
Development has stopped on this plugin. I’d highly recommend this version instead:
http://www.viper007bond.com/wordpress-plugins/clean-archives-reloaded/
It uses a much better caching system than mine.











Add New Comment
Viewing 20 Comments
Thanks. Your comment is awaiting approval by a moderator.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Do you already have an account? Log in and claim this comment.
Add New Comment
Trackbacks