Ejemplo n.º 1
0
 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);
     }
 }
Ejemplo n.º 3
0
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 '';
}
Ejemplo n.º 4
0
/**
 * 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();
    }
}
Ejemplo n.º 5
0
/**
 * 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();
    }
}
Ejemplo n.º 7
0
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>';
    }
}
Ejemplo n.º 8
0
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' => ' '));
    }
}
Ejemplo n.º 9
0
<?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.
Ejemplo n.º 10
0
<?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();
Ejemplo n.º 11
0
<?php

if (current_theme_supports('breadcrumb-trail')) {
    breadcrumb_trail(array('container' => 'nav', 'separator' => '/', 'labels' => array('browse' => __('', 'hybrid-base'))));
}
Ejemplo n.º 12
0
// is_rtl() ? '&lsaquo;' : '&rsaquo;'
// 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'] : '&raquo;';
                    $breadcrumbs_html = yoast_breadcrumb('', '', false);
                } else {
                    return;
                }
            }
        }
    }
}
// No breadcrumbs
if (!$breadcrumbs_html) {
    return;
Ejemplo n.º 13
0
<?php

if (current_theme_supports('breadcrumb-trail')) {
    breadcrumb_trail(array('container' => 'nav', 'separator' => '>', 'labels' => array('browse' => __('You are here:', 'clea-base'))));
}
Ejemplo n.º 14
0
<?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));
    }
}
Ejemplo n.º 15
0
		</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())));
}
Ejemplo n.º 16
0
<?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' => '&raquo;'));
}
?>
			

			<?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' => __('&#8764;', 'ltheme')));
}
?>

        </div>

    </div>

</div>

<div id="main">

    <div class="container">

        <div class="row">
Ejemplo n.º 18
0
            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' => ' &rarr; ', 'show_browse' => 'false'));
        }
        ?>

							<h1 class="entry-title"><?php 
        the_title();
        ?>
</h1>

						</header>

						<div class="entry-content">

							<?php 
        if (has_post_thumbnail()) {
            ?>
Ejemplo n.º 19
0
<?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 
}
Ejemplo n.º 20
0
		</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>'));
}
Ejemplo n.º 21
0
/**
 * 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' ) );
}
Ejemplo n.º 22
0
    ?>
		<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));
}
Ejemplo n.º 23
0
/**
 * 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')));
}
Ejemplo n.º 24
0
 /**
  * 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();
         }
     }
 }
Ejemplo n.º 25
0
$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();
Ejemplo n.º 26
0
?>

		<?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')));
}
Ejemplo n.º 27
0
 /**
  * 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>';
     }
 }
Ejemplo n.º 28
0
<?php

if (function_exists('breadcrumb_trail')) {
    ?>
	<div class="<?php 
    echo wheels_class('breadcrumbs');
    ?>
">
		<?php 
    breadcrumb_trail(array('show_browse' => false));
    ?>
	</div>
<?php 
}
Ejemplo n.º 29
0
} 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();
Ejemplo n.º 30
0
/**
 * 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');
            }
        }
    }
}