100+
August 12, 2015
August 25, 2008
This is a very simple plugin that uses Javascript to form a collapsable set of
links in the sidebar for the links (blogroll). Every link corresponding to a
given link category will be expanded.
You can use multiple instances of the widget, each with its own set of options. In this way you could have one set of links for certain categories one place on your page, and another widget with a different set of links somewhere else.
It is based off of the Collapsing Categories and Collapsing Pages plugins.
0.4 (2015.08.12)
0.3.5 (2010.06.23)
0.3.4 (2010.06.18)
0.3.3 (2010.01.28)
Style options can be set via the settings panel. All other options can be set
from the widget panel. If you wish to insert the code into your theme manually
instead of using a widget, you can use the following options. These options
can be given to the collapsLink()
function either as an array or in query
style, in the same manner as the wp_list_links
function.
$defaults=array(
'showLinkCount'=> true ,
'catSort'=> 'linkName' ,
'catSortOrder'=> 'ASC' ,
'linkSort'=> 'linkName' ,
'linkSortOrder'=> 'ASC' ,
'inExclude'=> 'exclude' ,
'inExcludeCats'=> '' ,
'expand'=> 0 ,
'customExpand' => '',
'customCollapse' => '',
'defaultExpand'=> '',
'animate' => 0,
'nofollow' => true,
'debug' => false
);
customCollapse
defaultExpand
collapsLink('animate=true&nofollow=false&expand=3,inExcludeCats=blogroll,lousy-friends')
This will produce a list with:
* animation on
* no nofollow tags
* using images to mark collapsing and expanding
* exclude links in the categories blogroll and lousy-friends
You can see this on my test blog at http://robfelty.com/test
Currently this plugin relies on Javascript to expand and collapse the links.
If a user’s browser doesn’t support javascript they won’t see the links to the
posts, but the links to the links will still work (which is the default
behavior in wordpress anyways)
The option to show the number of links currently uses the number stored in the
database, which includes both visible and invisible links. If you have
invisible links, this number will be wrong.
IMPORTANT!
Please deactivate before upgrading, then re-activate the plugin.
Unpackage contents to wp-content/plugins/ so that the files are in a
collapsing-links directory. Activate the plugin in your WordPress Admin
interface — Collapsing Links.
To use the plugin manually,
change the following here appropriate (most likely sidebar.php):
Change From:
<ul>
<?php get_links_list(); ?>
</ul>
To something of the following:
<?php
if( function_exists('collapsLink') ) {
collapsLink();
} else {
echo "<ul>\n";
get_links_list();
echo "</ul>\n";
}
?>
You can add parameters to the collapsLink() function as described in the
options section.
simply go the Presentation > Widgets section and drag over the Collapsing Links Widget.
None yet.
Version | Download | Type |
---|---|---|
0.4 | Download | Stable |
0.3.5 | Download | Stable |
0.3.4 | Download | Stable |
0.3.3 | Download | Stable |
0.3.2 | Download | Stable |
0.3.1 | Download | Stable |
0.3.beta | Download | Beta |
0.3.alpha | Download | Beta |
0.2.7 | Download | Stable |
0.2.6 | Download | Stable |
0.2.4 | Download | Stable |
0.2.3 | Download | Stable |
0.2.2 | Download | Stable |
0.2.1 | Download | Stable |
0.2 | Download | Stable |
0.1.4 | Download | Stable |
0.1.3 | Download | Stable |
0.1.2 | Download | Stable |
0.1 | Download | Stable |
Development | Download | Trunk |