onetone_breadcrumb_trail

Shows a breadcrumb for all types of pages.

Description

onetone_breadcrumb_trail( (array) $args = array() ); 

This is a wrapper function for the Breadcrumb_Trail class, which should be used in theme templates.

Parameters (1)

0. $args — Optional. (array) => array()
Arguments to pass to Breadcrumb_Trail.

Usage

  1. if ( !function_exists( 'onetone_breadcrumb_trail' ) ) { 
  2. require_once '/includes/breadcrumbs.php'; 
  3.  
  4. // Arguments to pass to Breadcrumb_Trail. 
  5. $args = array(); 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = onetone_breadcrumb_trail($args); 
  9.  

Defined (1)

The function is defined in the following location(s).

/includes/breadcrumbs.php  
  1. functiononetone_breadcrumb_trail $args = array() ) { 
  2. if ( function_exists( 'is_bbpress' ) && is_bbpress() ) 
  3. $breadcrumb = new onetone_bbPress_Breadcrumb_Trail( $args ); 
  4. else 
  5. $breadcrumb = new onetone_Breadcrumb_Trail( $args ); 
  6. return $breadcrumb->trail();