Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SimpleBreadcrumbs
#1
Brick 
Simple Breadcrumbs
Version 1.0

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):
Code:
<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>

To use this plugin, simply call the following function in your theme file:
Code:
get_breadcrumbs($slug)

# $slug = The slug of the page to get breadcrumbs for.
# For example:

get_breadcrumbs( return_page_slug() );
Check out my website: JohnStray.com
Reply




Users browsing this thread: 2 Guest(s)