function widget($args, $instance) { extract($args); //If we are on the front page and don't display on the front, return early if ($instance['front'] && is_front_page()) { return; } //Manditory before widget junk echo $before_widget; if (!empty($instance['title'])) { echo $before_title . $instance['title'] . $after_title; } //We'll want to switch between the two breadcrumb output types if ($instance['list'] == true) { //Display the list output breadcrumb echo '<ul class="breadcrumb_trail">'; bcn_display_list(false, $instance['linked'], $instance['reverse']); echo '</ul>'; } else { //Display the regular output breadcrumb bcn_display(false, $instance['linked'], $instance['reverse']); } //Manditory after widget junk echo $after_widget; }
function widget($args, $instance) { //Make sure we grab defaults in the case of out of date instance settings being sent $instance = wp_parse_args((array) $instance, $this->defaults); $instance['title'] = apply_filters('widget_title', $instance['title'], $instance, $this->id_base); $instance['pretext'] = apply_filters('widget_text', $instance['pretext'], $instance); //A bit of a hack but we need the DB settings to know if we should exit early $opt = get_option('bcn_options'); //If we are on the front page and don't display on the front, return early if ($instance['front'] && is_front_page() && !(is_paged() && $opt['bpaged_display'])) { return; } //Manditory before widget junk echo $args['before_widget']; if (!empty($instance['title'])) { echo $args['before_title'] . $instance['title'] . $args['after_title']; } //We'll want to switch between the two breadcrumb output types if ($instance['type'] == 'list') { //Display the list output breadcrumb echo $instance['pretext'] . '<ol class="breadcrumb_trail breadcrumbs">'; bcn_display_list(false, $instance['linked'], $instance['reverse']); echo '</ol>'; } else { if ($instance['type'] == 'microdata') { echo '<div class="breadcrumbs" vocab="http://schema.org/" typeof="BreadcrumbList">' . $instance['pretext']; //Display the regular output breadcrumb bcn_display(false, $instance['linked'], $instance['reverse']); echo '</div>'; } else { if ($instance['type'] == 'plain') { //Display the pretext echo $instance['pretext']; //Display the regular output breadcrumb bcn_display(false, $instance['linked'], $instance['reverse']); } else { //If we recieved a type that is not of the built in displays, it must be relegated to an extension plugin do_action('bcn_widget_display_trail', $instance); } } } //Manditory after widget junk echo $args['after_widget']; }
function widget($args, $instance) { extract($args); //If we are on the front page and don't display on the front, return early if ($instance['front'] && is_front_page()) { return; } //Manditory before widget junk echo $before_widget; if (!empty($instance['title'])) { echo $before_title . $instance['title'] . $after_title; } //We'll want to switch between the two breadcrumb output types if ($instance['type'] == 'list') { //Display the list output breadcrumb echo '<ol class="breadcrumb_trail breadcrumbs">'; bcn_display_list(false, $instance['linked'], $instance['reverse']); echo '</ol>'; } else { if ($instance['type'] == 'rdfa') { //Display the list output breadcrumb echo '<div class="breadcrumbs" xmlns:v="http://rdf.data-vocabulary.org/#">'; bcn_display_nested(false, $instance['linked'], 'span', 'rdfa'); echo '</div>'; } else { if ($instance['type'] == 'microformat') { //Display the list output breadcrumb echo '<div class="breadcrumbs" itemscope itemtype="http://data-vocabulary.org/Breadcrumb">'; bcn_display_nested(false, $instance['linked'], 'span', 'microformat'); echo '</div>'; } else { //Display the regular output breadcrumb bcn_display(false, $instance['linked'], $instance['reverse']); } } } //Manditory after widget junk echo $after_widget; }
function widget($args, $instance) { extract($args); //A bit of a hack but we need the DB settings to know if we should exit early $opt = get_option('bcn_options'); //If we are on the front page and don't display on the front, return early if ($instance['front'] && is_front_page() && !(is_paged() && $opt['bpaged_display'])) { return; } //Manditory before widget junk echo $before_widget; if (!empty($instance['title'])) { echo $before_title . $instance['title'] . $after_title; } //We'll want to switch between the two breadcrumb output types if ($instance['type'] == 'list') { //Display the list output breadcrumb echo $instance['pretext'] . '<ol class="breadcrumb_trail breadcrumbs">'; bcn_display_list(false, $instance['linked'], $instance['reverse']); echo '</ol>'; } else { if ($instance['type'] == 'microdata') { echo '<div class="breadcrumbs" itemprop="breadcrumbs">' . $instance['pretext']; //Display the regular output breadcrumb bcn_display(false, $instance['linked'], $instance['reverse']); echo '</div>'; } else { //Display the pretext echo $instance['pretext']; //Display the regular output breadcrumb bcn_display(false, $instance['linked'], $instance['reverse']); } } //Manditory after widget junk echo $after_widget; }
*/ ?> <?php get_header(); ?> <header class="wrap-title"> <div class="container"> <h1 class="page-title">Blog</h1> <ol class="breadcrumb"> <?php if (function_exists('bcn_display_list')) { bcn_display_list(); } ?> </ol> </div> </header> <?php query_posts(array('paged' => get_query_var('paged'), 'cat' => '-' . get_cat_ID(of_get_option('om_portfolio_category', '')))); ?> <div class="container"> <div class="row"> <div class="col-md-8 col-md-push-4"> <?php if (have_posts()) {
/** * Display breadcrumb on header. * * If the page is home or front page, slider is displayed. * In other pages, breadcrumb will display if breadcrumb NavXT plugin exists. */ function travelify_breadcrumb() { if (function_exists('bcn_display_list')) { echo '<div class="breadcrumb"> <ul>'; bcn_display_list(); echo '</ul> </div> <!-- .breadcrumb -->'; } }
function display_breadcrumb($output, $base_link) { if (function_exists('bcn_display_list')) { $base_link = '<li class="home">' . $base_link . '</li>'; $output = '<ul class="crumbs navxt">' . $base_link . bcn_display_list($return = true) . '</ul>'; } return $output; }
/** * * @global type $post */ function raindrops_bcn_nav_menu() { global $post, $template; $template_name = basename($template, '.php'); if ('yes' == get_theme_mod('raindrops_breadcrumb_navxt_status') && 'yes' == raindrops_warehouse_clone('raindrops_plugin_presentation_bcn_nav_menu')) { $html = '<ol class="breadcrumbs" itemprop="breadcrumbs">%1$s</ol>'; if ('bbpress' !== $template_name && !is_home() && !is_front_page() && (isset($post) && 0 !== $post->ID)) { // $post->ID for check the events calendar $breadcrumb = bcn_display_list(true); printf($html, $breadcrumb); } } }
/** * Display breadcrumb on header */ function ecvetstep_breadcrumb_display() { global $post, $wp_query; // Front page displays in Reading Settings $page_on_front = get_option('page_on_front'); $page_for_posts = get_option('page_for_posts'); // Get Page ID outside Loop $page_id = $wp_query->get_queried_object_id(); if (is_front_page() || is_home() && $page_for_posts != $page_id) { return false; } else { if (function_exists('bcn_display_list')) { echo '<div class="breadcrumb container"> <ul>'; bcn_display_list(); echo ' </ul> <div class="row-end"></div> </div> <!-- .breadcrumb -->'; } } }
function sc_page_header($atts, $content = null) { $result = ''; $a = shortcode_atts( array( 'radius' => "60" ), $atts ); ?><header class="main-header no-margin-bottom"> <div class="container"> <h1 class="page-title"><?php the_title(); ?></h1> <ol class="breadcrumb pull-right"> <?php if(function_exists('bcn_display_list')) { bcn_display_list(); } ?> </ol> </div> </header><?php return $result; }
/** * Display slider or breadcrumb on header * * If the page is home or front page, slider is displayed. * In other pages, breadcrumb will display if exist bread */ function simplecatch_sliderbreadcrumb() { global $post, $wp_query; // Front page displays in Reading Settings $page_on_front = get_option('page_on_front'); $page_for_posts = get_option('page_for_posts'); // Get Page ID outside Loop $page_id = $wp_query->get_queried_object_id(); // If the page is home or front page if (is_front_page() || is_home() && $page_for_posts != $page_id) { // This function passes the value of slider effect to js file if (function_exists('simplecatch_pass_slider_value')) { simplecatch_pass_slider_value(); } // display featured slider if (function_exists('simplecatch_sliders')) { simplecatch_sliders(); } } else { // if breadcrumb is not empty, display breadcrumb if (function_exists('bcn_display_list')) { echo '<div class="breadcrumb"> <ul>'; bcn_display_list(); echo '</ul> <div class="row-end"></div> </div> <!-- .breadcrumb -->'; } } }
/** * output breadcrumb navxt */ public function display() { //get bcn settings $setting = $this->get_settings(); $display = 'normal'; $linked = isset($setting['hw_allow_trail_link']) && $setting['hw_allow_trail_link'] ? true : false; $reverse = isset($setting['hw_bcn_reverse']) && $setting['hw_bcn_reverse'] ? true : false; if (isset($setting['hw_active_skin']) && $setting['hw_active_skin'] && class_exists('HW_SKIN') && isset($setting['hw_skin']) && isset($setting['hw_skin']['hwskin_config'])) { #$skin = HW_SKIN::resume_skin($setting['hw_skin']['hwskin_config']); $skin = HW_SKIN::resume_hwskin_instance($setting['hw_skin']); if (!empty($skin)) { $file = $skin->instance->get_skin_file($setting['hw_skin']['hash_skin']); $content = $skin->instance->render_skin_template(0, false); if ($content !== false) { echo $content; } //if(file_exists($file)) { //get theme setting from setting file or skin file $setting = $skin->instance->get_file_skin_setting(); if (file_exists($setting)) { include $setting; } else { include $file; } if (isset($theme['display']) && $theme['display'] == 'list') { $display = 'list'; } //how to output breadcrumb $opt = array('hseparator' => '>>'); breadcrumb_navxt::setup_options($opt); //valid setting if (empty($theme['styles'])) { $theme['styles'] = array(); } if (empty($theme['scripts'])) { $theme['scripts'] = array(); } if (!empty($theme['filters'])) { //do filters & actions that defined in skin $skin->instance->do_filters($theme['filters'], $theme); } /*if(count($theme['styles']) || count($theme['scripts'])) { //enqueue stuff from theme $skin->enqueue_files_from_skin($theme['styles'], $theme['scripts']); }*/ //enqueue stuff from skin using new way HW_SKIN::enqueue_skin_assets(array_merge(array('skin_file' => $file, 'theme_settings' => $theme), (array) $skin)); //} } } //how to ouput breadcrumb function if ($display == 'list') { $output = bcn_display_list(true, $linked, $reverse); } else { $output = bcn_display(true, $linked, $reverse); } echo '<div class="hw-breadcrumb">'; echo apply_filters('hw_breadcrumb_output', $output, $this); echo '</div>'; }