/** * Performs actions specific to current item breadcrumbs. It will wrap the prefix/suffix * with the current_item_prefix and current_item_suffix. Additionally, it will link the * current item if current_item_linked is set to true. * * @param bcn_breadrumb $breadcrumb pointer to a bcn_breadcrumb object to opperate on */ function current_item($breadcrumb) { //We are misusing the breadcrumb type property here, but in 4.0 this will be unnecessary if ($breadcrumb->type == null) { //Prepend the current item prefix $breadcrumb->set_prefix($this->opt['current_item_prefix'] . $breadcrumb->get_prefix()); //Append the current item suffix $breadcrumb->set_suffix($breadcrumb->get_suffix() . $this->opt['current_item_suffix']); //Set the breadcrumb's type to current_item $breadcrumb->type = 'current_item'; //Link the current item, if required if ($this->opt['current_item_linked']) { $breadcrumb->set_anchor($this->opt['current_item_anchor'], ''); } } }
/** * Performs actions specific to current item breadcrumbs. It will wrap the prefix/suffix * with the current_item_prefix and current_item_suffix. Additionally, it will link the * current item if current_item_linked is set to true. * * @return * @param bcn_breadrumb $breadcrumb pointer to a bcn_breadcrumb object to opperate on */ function current_item($breadcrumb) { //Prepend the current item prefix $breadcrumb->set_prefix($this->opt['current_item_prefix'] . $breadcrumb->get_prefix()); //Append the current item suffix $breadcrumb->set_suffix($breadcrumb->get_suffix() . $this->opt['current_item_suffix']); //Link the current item, if required if($this->opt['current_item_linked']) { $breadcrumb->set_anchor($this->opt['current_item_anchor'], ''); } }