/** * @deprecated in 0.1.6 * */ function sp_breadcrumb($home, $sep, $prefix = '', $suffix = '', $display = true) { if ($display) { genesis_breadcrumb($home, $sep, $prefix, $suffix, $display); } else { return genesis_breadcrumb($home, $sep, $prefix, $suffix, $display); } }
/** * Display Breadcrumbs above the Loop. Concedes priority to popular breadcrumb * plugins. * * @since 0.1.6 * * @return null Return null if a popular breadcrumb plugin is active */ function genesis_do_breadcrumbs() { if ('posts' === get_option('show_on_front') && is_home() && !genesis_get_option('breadcrumb_home') || 'page' === get_option('show_on_front') && is_front_page() && !genesis_get_option('breadcrumb_front_page') || 'page' === get_option('show_on_front') && is_home() && !genesis_get_option('breadcrumb_posts_page') || is_single() && !genesis_get_option('breadcrumb_single') || is_page() && !genesis_get_option('breadcrumb_page') || (is_archive() || is_search()) && !genesis_get_option('breadcrumb_archive') || is_404() && !genesis_get_option('breadcrumb_404') || is_attachment() && !genesis_get_option('breadcrumb_attachment')) { return; } if (function_exists('bcn_display')) { echo '<div class="breadcrumb" itemprop="breadcrumb">'; bcn_display(); echo '</div>'; } elseif (function_exists('yoast_breadcrumb')) { yoast_breadcrumb('<div class="breadcrumb">', '</div>'); } elseif (function_exists('breadcrumbs')) { breadcrumbs(); } elseif (function_exists('crumbs')) { crumbs(); } else { genesis_breadcrumb(); } }
/** * Display Breadcrumbs above the Loop. Concedes priority to popular breadcrumb * plugins. * * @since 0.1.6 * * @return null Null if a popular breadcrumb plugin is active. */ function genesis_do_breadcrumbs() { if ('posts' === get_option('show_on_front') && is_home() && !genesis_get_option('breadcrumb_home') || 'page' === get_option('show_on_front') && is_front_page() && !genesis_get_option('breadcrumb_front_page') || 'page' === get_option('show_on_front') && is_home() && !genesis_get_option('breadcrumb_posts_page') || is_single() && !genesis_get_option('breadcrumb_single') || is_page() && !genesis_get_option('breadcrumb_page') || (is_archive() || is_search()) && !genesis_get_option('breadcrumb_archive') || is_404() && !genesis_get_option('breadcrumb_404') || is_attachment() && !genesis_get_option('breadcrumb_attachment')) { return; } $breadcrumb_markup_open = sprintf('<div %s>', genesis_attr('breadcrumb')); if (function_exists('bcn_display')) { echo $breadcrumb_markup_open; bcn_display(); echo '</div>'; } elseif (function_exists('breadcrumbs')) { breadcrumbs(); } elseif (function_exists('crumbs')) { crumbs(); } elseif (class_exists('WPSEO_Breadcrumbs') && genesis_get_option('breadcrumbs-enable', 'wpseo_internallinks')) { yoast_breadcrumb($breadcrumb_markup_open, '</div>'); } elseif (function_exists('yoast_breadcrumb') && !class_exists('WPSEO_Breadcrumbs')) { yoast_breadcrumb($breadcrumb_markup_open, '</div>'); } else { genesis_breadcrumb(); } }
/** * Display Breadcrumbs above the Loop * Concedes priority to popular breadcrumb plugins * * @since 0.1.6 */ function genesis_do_breadcrumbs() { // Conditional Checks if (is_front_page() && !genesis_get_option('breadcrumb_home')) { return; } if (is_single() && !genesis_get_option('breadcrumb_single')) { return; } if (is_page() && !genesis_get_option('breadcrumb_page')) { return; } if ((is_archive() || is_search()) && !genesis_get_option('breadcrumb_archive')) { return; } if (is_404() && !genesis_get_option('breadcrumb_404')) { return; } if (function_exists('bcn_display')) { echo '<div class="breadcrumb">'; bcn_display(); echo '</div>'; } elseif (function_exists('yoast_breadcrumb')) { yoast_breadcrumb('<div class="breadcrumb">', '</div>'); } elseif (function_exists('breadcrumbs')) { breadcrumbs(); } elseif (function_exists('crumbs')) { crumbs(); } else { genesis_breadcrumb(); } }
/** * Display Breadcrumbs above the Loop. * * This was ripped from Genesis core and put here because apparently using * our own attribute functions in our framework is just too much to ask. I * don't know what level of alcohol consumption is responsible for the if * statements in this atrocity, but I don't have time to care right now. * * @since 0.1.0 * @return null Return null if a popular breadcrumb plugin is active */ public function breadcrumbs() { if ('posts' === get_option('show_on_front') && is_home() && !genesis_get_option('breadcrumb_home') || 'page' === get_option('show_on_front') && is_front_page() && !genesis_get_option('breadcrumb_front_page') || 'page' === get_option('show_on_front') && is_home() && !genesis_get_option('breadcrumb_posts_page') || is_single() && !genesis_get_option('breadcrumb_single') || is_page() && !genesis_get_option('breadcrumb_page') || (is_archive() || is_search()) && !genesis_get_option('breadcrumb_archive') || is_404() && !genesis_get_option('breadcrumb_404') || is_attachment() && !genesis_get_option('breadcrumb_attachment')) { return; } // Set default itemprop. $itemprop = ' itemprop="breadcrumb"'; // Null itemprop if we're within the blog. if (is_singular('post') || is_archive() || is_home() || is_page_template('page_blog.php')) { $itemprop = ''; } if (function_exists('bcn_display')) { echo '<div class="breadcrumb"' . $itemprop . '>'; bcn_display(); echo '</div>'; } elseif (function_exists('breadcrumbs')) { breadcrumbs(); } elseif (function_exists('crumbs')) { crumbs(); } elseif (class_exists('WPSEO_Breadcrumbs') && genesis_get_option('breadcrumbs-enable', 'wpseo_internallinks')) { yoast_breadcrumb('<div class="breadcrumb"' . $itemprop . '>', '</div>'); } elseif (function_exists('yoast_breadcrumb') && !class_exists('WPSEO_Breadcrumbs')) { yoast_breadcrumb('<div class="breadcrumb"' . $itemprop . '>', '</div>'); } else { genesis_breadcrumb(); } }
/** * Display Breadcrumbs above the Loop. Concedes priority to popular breadcrumb * plugins. * * @since 0.1.6 * * @return null Return null if a popular breadcrumb plugin is active */ function und_do_breadcrumbs() { if (is_page_template('page_intern.php')) { genesis_breadcrumb(); } }
function genesis_do_breadcrumbs() { // Conditional Checks if (is_front_page() && !genesis_get_option('breadcrumb_home')) { return; } if (is_single() && !genesis_get_option('breadcrumb_single')) { return; } if (is_page() && !genesis_get_option('breadcrumb_page')) { return; } if ((is_archive() || is_search()) && !genesis_get_option('breadcrumb_archive')) { return; } if (function_exists('bcn_display')) { echo '<div class="breadcrumb">'; bcn_display(); echo '</div>'; } elseif (function_exists('yoast_breadcrumb')) { yoast_breadcrumb('<div class="breadcrumbs">', '</div>'); } elseif (function_exists('breadcrumbs')) { breadcrumbs(); } elseif (function_exists('crumbs')) { crumbs(); } else { include_once GENESIS_TOOLS_DIR . '/breadcrumb.php'; genesis_breadcrumb(__('Home', 'genesis'), '/', '<div class="breadcrumb">', '</div>'); } }
?> ">View All</a></li> <?php displayTermNav(); ?> </ul> </nav> </header><!-- .page-header --> <div class="content-side-bar-wrap"> <main class="content" role="main"> <?php genesis_breadcrumb(); ?> <?php while (have_posts()) { the_post(); ?> <article id="post-<?php the_ID(); ?> " <?php post_class(); ?> >