WordPress plugin intelligence profile

Collapsing Links

This widget uses Javascript to dynamically expand or collapsable the set of links for each link category.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 4.3
Current version0.4
WordPress coverageTested up to WordPress 4.3
Minimum stackWP 2.8 · PHP —
Directory statusactive
Last directory update12 Aug 201511y ago
Active installations80Adoption metric — not a quality score
WordPress.org ratingNo WordPress.org ratings yet
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Collapsing Links version 0.4 as active, updated 11y ago and tested up to WordPress 4.3.

Overview

About this plugin

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.

What’s new?

-

12)

  • Compatible with WP 4.3

-

23)

  • Fixed javascript path error

-

18)

  • Fixed html validation when target is blank (thanks http://dropdeaddick.com)

-

28)

  • Switched from scriptaculous to jquery. No longer conflicts with plugins

g. featured content gallery)

  • Restricted settings page to authorized users

Options

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 );

  • showLinkCount
  • When true, the number of links in the category will be shown in

parentheses following the name of the link category

  • catSort
  • The order in which link categories should be sorted. Possible values:
  • ‘catName’ the name of the link category (default)
  • ‘catId’ the id of the link category
  • ‘catSlug’ the slug of the link category
  • ‘catOrder’ custom order specified in the links options
  • ‘catCount’ the number of links in each category
  • linkSort
  • The order in which link linkegories should be sorted. Possible values:
  • ‘linkName’ the name of the link (default)
  • ‘linkId’ the id of the link
  • ‘linkUrl’ the url of the link
  • ‘linkRating’ the rating assigned to the link
  • catSortOrder
  • Whether categories should be sorted in normal or reverse order. Possible

values:

  • ‘ASC’ normal order (a-z, 0-9) (default)
  • ‘DESC’ reverse order (z-a, 9-0)
  • linkSortOrder
  • Whether link should be sorted in normal or reverse order. Possible values:
  • ‘ASC’ normal order (a-z, 0-9) (default)
  • ‘DESC’ reverse order (z-a, 9-0)
  • inExclude
  • Whether to include or exclude certain categories
  • ‘exclude’ (default)
  • ‘include’
  • inExcludeCats
  • The link categories which should be included or excluded
  • expand
  • The symbols to be used to mark expanding and collapsing. Possible values:
  • ‘0’ Triangles (default)
  • ‘1’ + –
  • ‘2’ [+] [-]
  • ‘3’ images (you can upload your own if you wish)
  • ‘4’ custom symbols
  • customExpand
  • If you have selected ‘4’ for the expand option, this character will be

used to mark expandable link categories

-

customCollapse

  • If you have selected ‘4’ for the expand option, this character will be

used to mark collapsible link categories

-

defaultExpand

  • A comma separated list of link category IDs or Slugs which should be

expanded by default

  • animate
  • When set to true, collapsing and expanding will be animated
  • nofollow
  • When set to true (default), rel=’nofollow’ tags will be added to links
  • debug
  • When set to true, extra debugging information will be displayed in the

underlying code of your page (but not visible from the browser). Use

this option if you are having problems

Examples

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

Demo

com/test

CAVEAT

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.

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • links
  • sidebar
  • widget
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 4.3

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 4.3.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to4.3
Minimum requirementsWordPress 2.8 · PHP not listed
Update activity12 Aug 201511y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.