/**
  * Outputs the breadcrumb trail
  * 
  * @param  (bool)   $return Whether to return or echo the trail.
  * @param  (bool)   $linked Whether to allow hyperlinks in the trail or not.
  * @param  (bool)	$reverse Whether to reverse the output or not.
  */
 function display($return = false, $linked = true, $reverse = false)
 {
     //Grab the current settings from the db
     $this->breadcrumb_trail->opt = $this->get_option('bcn_options');
     //Generate the breadcrumb trail
     $this->breadcrumb_trail->fill();
     return $this->breadcrumb_trail->display($return, $linked, $reverse);
 }
 /**
  * Outputs the breadcrumb trail
  * 
  * @param  (bool)   $return Whether to return or echo the trail.
  * @param  (bool)   $linked Whether to allow hyperlinks in the trail or not.
  * @param  (bool)	$reverse Whether to reverse the output or not.
  */
 function display($return = false, $linked = true, $reverse = false)
 {
     //First make sure our defaults are safe
     $this->find_posttypes($this->breadcrumb_trail->opt);
     $this->find_taxonomies($this->breadcrumb_trail->opt);
     //Grab the current settings from the db
     $this->breadcrumb_trail->opt = wp_parse_args($this->get_option('bcn_options'), $this->breadcrumb_trail->opt);
     //Generate the breadcrumb trail
     $this->breadcrumb_trail->fill();
     return $this->breadcrumb_trail->display($return, $linked, $reverse);
 }
 /**
  * widget
  *
  * The sidebar widget 
  */
 function widget($args)
 {
     extract($args);
     //Manditory before widget junk
     echo $before_widget;
     //Display the breadcrumb trial
     if ($this->breadcrumb_trail->trail[0] != NULL) {
         $this->breadcrumb_trail->display();
     } else {
         $this->display();
     }
     //Manditory after widget junk
     echo $after_widget;
 }