SimpleBreadcrumbs
Plugin Description:
SimpleBreadcrumbs will make a new function available to the front-end that will output a breadcrumb list. Useful if you use a bootstrap based theme such as my PureBootstrap theme coming soon.
I created this plugin because the i18n Navigation plugin didn't output the breadcrumbs as a list, so I couldn't use them on a bootstrap theme.
This plugin requires that i18n Navigation be installed for full length breadcrumbs to work, but if not, will default to the backup method of "Home / Parent / Current". This plugin is also aware of fancy urls, so it will work if they are on or not.
The output from this plugin will look like this ( You will need to create your own UL tags):
<li><a href="http://mysite.com" title="Site Name">Home</a></li> <li><a href="index.php?id=parent" title="Parent Page">Parent Page</a></li> <li class="active">Current Page</li>
Changelog
Version 1.1
- Fixed double 'Home' link
Version 1.0
- Initial Release
Install Instructions:
Extract the contents of the zip file to your plugins directory and activate the plugin under the "Plugins" tab in the admin console
To use this plugin, simply call the following function in your theme file:
getbreadcrumbs($slug)
$slug = The slug of the page to get breadcrumbs for.
For example:
getbreadcrumbs( returnpageslug() );
Archived Versions:
These are old versions of this file. Please use with caution as they are probably out of date and no longer supported. ShowHide