/** * Shows a breadcrumb for all types of pages. This is a wrapper function for the Breadcrumb_Trail class, * which should be used in theme templates. * * @since 0.1.0 * @access public * @param array $args Arguments to pass to Breadcrumb_Trail. * @return void|string */ function breadcrumb_trail($args = array()) { $breadcrumb = apply_filters('breadcrumb_trail_object', null, $args); if (!is_object($breadcrumb)) { $breadcrumb = new Breadcrumb_Trail($args); } return $breadcrumb->trail(); }
/** * Shows a breadcrumb for all types of pages. This is a wrapper function for the Breadcrumb_Trail class, * which should be used in theme templates. * * @since 0.1.0 * @access public * @param array $args Arguments to pass to Breadcrumb_Trail. * @return void */ function reactor_breadcrumbs($args = array()) { if (function_exists('is_bbpress') && is_bbpress()) { $breadcrumb = new bbPress_Breadcrumb_Trail($args); } else { $breadcrumb = new Breadcrumb_Trail($args); } $breadcrumb->trail(); }
/** * Shows a breadcrumb for all types of pages. This is a wrapper function for the Breadcrumb_Trail class, * which should be used in theme templates. * * @since 0.1.0 * @access public * @param array $args Arguments to pass to Breadcrumb_Trail. * @return void */ function breadcrumb_trail($args = array()) { if (function_exists('is_bbpress') && is_bbpress()) { $breadcrumb = new bbPress_Breadcrumb_Trail($args); } else { $breadcrumb = new Breadcrumb_Trail($args); } return $breadcrumb->trail(); }
/** * Shows a breadcrumb for all types of pages. This is a wrapper function for the Breadcrumb_Trail class, * which should be used in theme templates. * * @since 0.1.0 * @access public * @param array $args Arguments to pass to Breadcrumb_Trail. * @return void */ function kleo_breadcrumb($args = array()) { if (function_exists('bp_is_active') && !bp_is_blog_page()) { $breadcrumb = new buddypress_Breadcrumb_Trail($args); } elseif (function_exists('is_bbpress') && is_bbpress()) { $breadcrumb = new bbPress_Breadcrumb_Trail($args); } else { $breadcrumb = new Breadcrumb_Trail($args); } return $breadcrumb->trail(); }
/** * Shows a breadcrumb for all types of pages. This is a wrapper function for the Breadcrumb_Trail class, * which should be used in theme templates. * * @since 0.1.0 * @access public * @param array $args Arguments to pass to Breadcrumb_Trail. * @return void */ function breadcrumb_trail($args = array()) { $defaults = array('container' => 'div', 'separator' => '', 'before' => '', 'after' => '', 'show_on_front' => true, 'network' => false, 'show_title' => true, 'show_browse' => false, 'echo' => true, 'post_taxonomy' => array('post' => 'category', 'product' => 'product_cat'), 'labels' => array('browse' => '', 'home' => __('Home', THEME_LANG), 'error_404' => __('404 Not Found', THEME_LANG), 'archives' => __('Archives', THEME_LANG), 'search' => __('Search results for “%s”', THEME_LANG), 'paged' => __('Page %s', THEME_LANG), 'archive_minute' => __('Minute %s', THEME_LANG), 'archive_week' => __('Week %s', THEME_LANG), 'archive_minute_hour' => '%s', 'archive_hour' => '%s', 'archive_day' => '%s', 'archive_month' => '%s', 'archive_year' => '%s')); $args = wp_parse_args($args, $defaults); $args = apply_filters('breadcrumb_trail_args', $args); if (function_exists('is_bbpress') && is_bbpress()) { $breadcrumb = new bbPress_Breadcrumb_Trail($args); } else { $breadcrumb = new Breadcrumb_Trail($args); } return $breadcrumb->trail(); }