public function content($instance) { $instance['network'] = (bool) $instance['network']; $instance['show_title'] = (bool) $instance['show_title']; $instance['show_browse'] = (bool) $instance['show_browse']; breadcrumb_trail($instance); }
/** * Configure and initialize the Breadcrumbs */ function breadcrumbs() { $args = array('container' => 'ol', 'separator' => '</li><li>', 'before' => '<li>', 'after' => '</li>', 'show_on_front' => false, 'network' => false, 'show_title' => true, 'show_browse' => true, 'echo' => true, 'labels' => array('browse' => '', 'home' => '<i class="glyphicon glyphicon-home"></i>')); if (function_exists('breadcrumb_trail')) { breadcrumb_trail($args); } }
function the_breadcrumbs($links = false) { ?> <div class="breadcrumb-container"> <div class="container"> <?php if ($links) { ?> <span class="trail-begin"><a href="<?php bloginfo('url'); ?> ">Home</a></span> <span class='sep'>></span> <?php foreach ($links as $i => $link) { $title = is_object($link) ? $link->post_title : $link['title']; $url = is_object($link) ? get_permalink($link->ID) : $link['url']; if ($i < sizeof($links) - 1) { ?> <span class="trail-end"><a href="<?php echo $url; ?> "><?php echo $title; ?> </a></span> <span class="sep">></span> <?php } else { ?> <span class="trail-end"><?php echo $title; ?> </span> <?php } ?> <?php } ?> <?php } else { if (function_exists('breadcrumb_trail')) { ?> <?php breadcrumb_trail(array('separator' => '>', 'labels' => array('browse' => false))); ?> <?php } } ?> </div> </div> <?php return ''; }
/** * Breadcrumb Lists * Load the plugin from the plugin that is installed. * */ function responsive_mobile_get_breadcrumb_lists() { $responsive_mobile_options = get_option('responsive_mobile_theme_options'); $yoast_options = get_option('wpseo_internallinks'); if (1 == $responsive_mobile_options['breadcrumb']) { return; } elseif (function_exists('bcn_display')) { bcn_display(); } elseif (function_exists('breadcrumb_trail')) { breadcrumb_trail(); } elseif (function_exists('yoast_breadcrumb') && true === $yoast_options['breadcrumbs-enable']) { yoast_breadcrumb('<p id="breadcrumbs">', '</p>'); } elseif (!is_search()) { responsive_mobile_breadcrumb_lists(); } }
/** * Display breadcrumbs & search form after header. * * @since 1.0 */ function satu_content_after_header() { ?> <div class="after-header"> <div class="container"> <?php if (current_theme_supports('breadcrumb-trail')) { breadcrumb_trail(array('before' => __('You are here:', 'satu'), 'show_browse' => false)); } ?> </div><!-- .container --> </div><!-- .after-header --> <?php }
/** * Breadcrumb Lists * Load the plugin from the plugin that is installed. * */ function get_responsive_breadcrumb_lists() { $responsive_options = get_option('responsive_theme_options'); $yoast_options = get_option('wpseo_internallinks'); if (1 == $responsive_options['breadcrumb']) { return; } elseif (function_exists('bcn_display')) { echo '<span class="breadcrumb" typeof="v:Breadcrumb">'; bcn_display(); echo '</span>'; } elseif (function_exists('breadcrumb_trail')) { breadcrumb_trail(); } elseif (function_exists('yoast_breadcrumb') && true === $yoast_options['breadcrumbs-enable']) { yoast_breadcrumb('<p id="breadcrumbs">', '</p>'); } elseif (!is_search()) { responsive_breadcrumb_lists(); } }
function torch_get_breadcrumb() { global $post, $wp_query; $postid = isset($post->ID) ? $post->ID : ""; $show_breadcrumb = ""; if ('page' == get_option('show_on_front') && '' != get_option('page_for_posts') && $wp_query->get_queried_object_id() == get_option('page_for_posts')) { $postid = $wp_query->get_queried_object_id(); } if (isset($postid) && is_numeric($postid)) { $show_breadcrumb = get_post_meta($postid, '_torch_show_breadcrumb', true); } if ($show_breadcrumb == 'yes' || $show_breadcrumb == "") { echo '<div class="container">'; if (is_singular()) { echo '<div class="breadcrumb-title">' . $post->post_title . '</div>'; } echo '<div class="breadcrumb-nav">'; breadcrumb_trail(array("before" => "", "show_browse" => false)); echo '</div> <div class="clearfix"></div> </div>'; } }
function st_breadcrumbs() { global $st_Options; /*------------------------------------------- 1.1 - yoast_breadcrumb -------------------------------------------*/ if (!empty($st_Options['compatibility']['yoast']) == true && function_exists('yoast_breadcrumb')) { yoast_breadcrumb('<div class="breadcrumb breadcrumbs"><div class="breadcrumb-yoast">', '</div></div>'); } elseif (function_exists('breadcrumb_trail')) { // Remove Auto Drafts function st_breadcrumb_trail_autodraft_fix($trail) { foreach ($trail as $key => $value) { if (strpos($value, 'Auto Draft') !== false) { unset($trail[$key]); } } return $trail; } add_filter('breadcrumb_trail_items', 'st_breadcrumb_trail_autodraft_fix'); // Call breadcrumb_trail(array('before' => '', 'show_home' => __('Home', 'stkit'), 'separator' => ' ')); } }
<?php if (function_exists('breadcrumb_trail')) { // Check for breadcrumb support. ?> <?php breadcrumb_trail(array('container' => 'nav', 'separator' => '>', 'show_on_front' => false, 'labels' => array('browse' => esc_html__('You are here:', 'vaidusworld')))); ?> <?php } // End check for breadcrumb support.
<?php global $am_option; get_header(); ?> <div id="main_col"> <?php if ($am_option['main']['breadcrumb_show'] == 1) { ?> <?php breadcrumb_trail('echo=1&separator=/'); ?> <?php } ?> <?php if (have_posts()) { ?> <div class="stitle"> <h1 class="page-title"><?php printf(__('Search Results for: %s', 'neo_wdl'), '<span>' . get_search_query() . '</span>'); ?> </h1> </div> <?php $count = 0; while (have_posts()) { the_post();
<?php if (current_theme_supports('breadcrumb-trail')) { breadcrumb_trail(array('container' => 'nav', 'separator' => '/', 'labels' => array('browse' => __('', 'hybrid-base')))); }
// is_rtl() ? '‹' : '›' // bbPress if (Everything::isPluginActive('bbpress') && Everything::to('bbpress/breadcrumbs') && is_bbpress()) { $breadcrumbs_html = bbp_get_breadcrumb(array('before' => '', 'after' => '', 'sep' => $separator, 'sep_before' => '', 'sep_after' => '', 'current_before' => '', 'current_after' => '')); } else { if (Everything::isPluginActive('woocommerce') && Everything::to('woocommerce/breadcrumbs') && (is_shop() || is_product_taxonomy() || is_product())) { // || is_cart() || is_checkout() || is_order_received_page() || is_account_page() $breadcrumbs_html = \Drone\Func::functionGetOutputBuffer('woocommerce_breadcrumb', array('delimiter' => $separator, 'wrap_before' => '', 'wrap_after' => '')); } else { if (Everything::isPluginActive('breadcrumb-navxt')) { $options = get_option('bcn_options'); $separator = $options['hseparator']; $breadcrumbs_html = bcn_display(true); } else { if (Everything::isPluginActive('breadcrumb-trail')) { $breadcrumbs_html = breadcrumb_trail(array('separator' => $separator, 'show_browse' => false, 'echo' => false)); } else { if (Everything::isPluginActive('wordpress-seo')) { $options = get_option('wpseo_internallinks'); $separator = $options['breadcrumbs-sep'] ? $options['breadcrumbs-sep'] : '»'; $breadcrumbs_html = yoast_breadcrumb('', '', false); } else { return; } } } } } // No breadcrumbs if (!$breadcrumbs_html) { return;
<?php if (current_theme_supports('breadcrumb-trail')) { breadcrumb_trail(array('container' => 'nav', 'separator' => '>', 'labels' => array('browse' => __('You are here:', 'clea-base')))); }
<?php /** * The breadcrumbs template. * * @package Compass * @subpackage HybridCore * @copyright Copyright (c) 2015, Flagship Software, LLC * @license GPL-2.0+ * @since 1.0.0 */ // Display breadcrumbs based on user selections in the customizer. if (flagship_display_breadcrumbs()) { // Use Yoast breadcrumbs if they're available. if (function_exists('yoast_breadcrumb')) { yoast_breadcrumb('<nav class="breadcrumbs" itemprop="breadcrumb">', '</nav>'); } else { breadcrumb_trail(array('container' => 'nav', 'separator' => '//', 'show_browse' => false, 'show_on_front' => false)); } }
</div><!-- #header --> <?php do_atomic('after_header'); // prototype_after_header ?> <?php get_template_part('menu', 'secondary'); // Loads the menu-secondary.php template. ?> <?php do_atomic('before_main'); // prototype_before_main ?> <div id="main"> <div class="wrap"> <?php do_atomic('open_main'); // prototype_open_main ?> <?php if (current_theme_supports('breadcrumb-trail')) { breadcrumb_trail(array('before' => __('You are here:', hybrid_get_textdomain()))); }
<?php get_header(); // Loads the header.php template. ?> <div class="page-wrap"> <div id="page" class="border-top clearfix"> <?php if (current_theme_supports('breadcrumb-trail')) { breadcrumb_trail(array('separator' => '»')); } ?> <?php do_action('bp_before_register_page'); ?> <div class="page" id="register-page"> <form action="" name="signup_form" id="signup_form" class="standard-form" method="post" enctype="multipart/form-data"> <div class="hentry page"> <?php if ('request-details' == bp_get_current_signup_step()) { ?> <h2 class="entry-title"><?php _e('Create An Account', 'buddypress'); ?>
/* Template Name: One Sidebar Right */ get_header(); ?> <div class="container"> <div class="row"> <div class="col-sm-12"> <?php if (current_theme_supports('breadcrumb-trail')) { breadcrumb_trail(array('container' => 'nav', 'labels' => array('browse' => __('', 'ltheme')), 'separator' => __('∼', 'ltheme'))); } ?> </div> </div> </div> <div id="main"> <div class="container"> <div class="row">
dynamic_sidebar('subnav_menu'); ?> <?php } ?> <main id="content"> <article class="entry bg bg-white"> <header class="entry-header"> <?php if (function_exists('breadcrumb_trail')) { breadcrumb_trail(array('separator' => ' → ', 'show_browse' => 'false')); } ?> <h1 class="entry-title"><?php the_title(); ?> </h1> </header> <div class="entry-content"> <?php if (has_post_thumbnail()) { ?>
<?php if (function_exists('breadcrumb_trail')) { ?> <?php breadcrumb_trail(array('container' => 'nav', 'separator' => '>', 'show_on_front' => false, 'labels' => array('browse' => __('You are here:', 'taylor')))); ?> <?php }
</div><!-- #header --> <?php do_atomic('after_header'); // After header hook ?> <?php get_template_part('menu', 'primary'); // Loads the menu-primary.php file ?> <?php do_atomic('before_container'); // Before container hook ?> <div id="container"> <div class="wrap"> <?php do_atomic('open_container'); // Open container hook ?> <?php if (current_theme_supports('breadcrumb-trail')) { breadcrumb_trail(array('before' => __('Browsing:', 'news') . ' <span class="sep">/</span>')); }
/** * Displays the breadcrumb trail. Calls the get_the_breadcrumb() function. * Use the get_the_breadcrumb_args filter hook. The hybrid_breadcrumb_args * filter is deprecated. * * @deprecated 0.5 Theme still needs this function. * @todo Find an elegant way to transition to breadcrumb_trail() * in child themes and filter breadcrumb_trail_args instead. * * @since 0.1 */ function hybrid_breadcrumb() { breadcrumb_trail( array( 'front_page' => false, 'singular_post_taxonomy' => 'category' ) ); }
?> <header id="masthead" class="site-header" role="banner"> <div class="site-branding"> <h1 class="site-title"><a href="<?php echo esc_url(home_url('/')); ?> " rel="home"><?php bloginfo('name'); ?> </a></h1> <h2 class="site-description"><?php bloginfo('description'); ?> </h2> </div> </header><!-- #masthead --> <?php } // Main menu if (has_nav_menu('main')) { get_template_part('/templates/parts/menu', 'main'); } ?> <div id="page" class="container hfeed site"> <div id="content" class="site-content row"> <?php if (function_exists('breadcrumb_trail') && !(is_front_page() || is_search())) { breadcrumb_trail(array('container' => 'div', 'separator' => '/', 'show_browse' => false)); }
/** * Breadcrumb */ function tokopress_breadcrumb() { breadcrumb_trail(array('container' => 'nav', 'container_class' => 'breadcrumb-trail breadcrumbs', 'separator' => '<i class="fa fa-angle-right"></i>', 'labels' => array('browse' => ''), 'markup_type' => 'no-list', 'post_taxonomy' => array('post' => 'category'))); }
/** * Display breadcrumb trail. * * @since 0.1.0 */ public function display_breadcrumb_trail() { /* Show breadcrumb trail on all pages apart from front page. */ if (!is_front_page()) { /* Include the bread-crumb trail script */ if (file_exists(get_template_directory() . '/includes/misc/breadcrumb-trail.php')) { require_once get_template_directory() . '/includes/misc/breadcrumb-trail.php'; } $options = get_option(PC_OPTIONS_DB_NAME); if (isset($options['chk_show_breadcrumbs'])) { echo breadcrumb_trail(); } } }
$postspage_id = get_option('page_for_posts'); get_header(); ?> <header class="main-header clearfix"> <div class="container"> <h1 class="page-title pull-left"><?php _e('Search Results For: ', 'frogsthemes'); printf(get_search_query()); ?> </h1> <?php // breadcrumb trail if (of_get_option('ft_show_breadcrumbs') == 1) { $bc = array('before' => '<div class="breadcrumb pull-right">', 'after' => '</div>'); breadcrumb_trail($bc); } ?> </div> </header> <?php if (have_posts()) { // blog as masonry or list? if (of_get_option('ft_blog_style') == 'masonry') { ?> <section class="content-area bg2"> <div class="container"> <div id="blog-list" class="clearfix withMasonry"> <?php while (have_posts()) { the_post();
?> <?php get_template_part('menu', 'secondary'); // Loads the menu-secondary.php template. ?> <?php if (get_header_image()) { echo '<img class="header-image" src="' . get_header_image() . '" alt="" />'; } ?> <?php do_atomic('before_main'); // my-life_before_main ?> <div id="main"> <div class="wrap"> <?php do_atomic('open_main'); // my-life_open_main ?> <?php if (current_theme_supports('breadcrumb-trail')) { breadcrumb_trail(array('before' => __('You are here:', 'my-life'))); }
/** * Render the breadcrumb trail. */ function ultra_breadcrumb() { $breadcrumbs = ''; // JT Breadcrumb Trail if (function_exists('breadcrumb_trail') && siteorigin_setting('navigation_breadcrumb_trail')) { $breadcrumbs = breadcrumb_trail(array('container' => 'nav', 'separator' => '/', 'show_browse' => false, 'show_on_front' => false)); } elseif (function_exists('yoast_breadcrumb')) { $breadcrumbs = yoast_breadcrumb("", "", false); } elseif (function_exists('bcn_display')) { $breadcrumbs = bcn_display(true); } if (!empty($breadcrumbs)) { echo '<div class="breadcrumbs">' . $breadcrumbs . '</div>'; } }
<?php if (function_exists('breadcrumb_trail')) { ?> <div class="<?php echo wheels_class('breadcrumbs'); ?> "> <?php breadcrumb_trail(array('show_browse' => false)); ?> </div> <?php }
} else { $col_class = "main-content page-full-width col-sm-12"; } ?> <div id="primary" class="content-area <?php echo esc_attr($sidebar_are_layout); ?> "> <main id="main" class="site-main"> <div class="container"> <?php if ($kt_show_page_breadcrumb == 'show') { ?> <div class="row"> <?php breadcrumb_trail(); ?> </div> <?php } ?> <div class="row"> <div class="row"> <div class="<?php echo esc_attr($col_class); ?> "> <?php // Start the loop. while (have_posts()) { the_post();
/** * Builds a breadcrumb for different views in the site. Yoast Breadcrumbs and Breadcrumb Trail are supported. If not available, Suffusion's breadcrumbs will be used. * * @return void */ function suffusion_build_breadcrumb() { if (function_exists('yoast_breadcrumb_output')) { yoast_breadcrumb_output(); } else { if (function_exists('breadcrumb_trail')) { breadcrumb_trail(); } else { if (!is_page()) { get_template_part('custom/breadcrumb'); } else { get_template_part('custom/breadcrumb', 'page'); } } } }