/**
 * Breadcrumb always in shop (products, categories, etc.)
 * and on pages/posts only if option is ON.
 */
function pbosfc_woocommerce_breadcrumb($args = array())
{
    $display = true;
    if ('page' === get_post_type()) {
        $display = pbosfc_get_option('page_breadcrumb');
    } elseif ('post' === get_post_type()) {
        $display = pbosfc_get_option('post_breadcrumb');
    } elseif ('product' === get_post_type()) {
        $display = pbosfc_get_option('product_breadcrumb');
    }
    if ($display) {
        woocommerce_breadcrumb($args);
    }
}
 /**
  * Outputs the default WooCommerce breadcrumb.
  * This is meant for single-product pages only.
  * @access public
  * @return void
  */
 public function wpv_woo_breadcrumb_func()
 {
     global $post, $woocommerce;
     ob_start();
     if (is_object($woocommerce)) {
         //WooCommerce plugin activated
         //Get products
         $product = $this->wcviews_setup_product_data($post);
         if (isset($product) && is_product()) {
             //Check if product_type is set
             if (isset($product->product_type)) {
                 //Set, check if defined
                 $product_type = $product->product_type;
                 if (!empty($product_type)) {
                     //Defined
                     //Simple or variable products
                     if (function_exists('woocommerce_breadcrumb')) {
                         //Call WooCommerce core public function on outputting WooCommerce Breadcrumb
                         woocommerce_breadcrumb();
                     }
                     return ob_get_clean();
                 }
             }
         }
     }
 }
示例#3
0
/**
 * New breadcrumbs.
 *
 */
function dt_woocommerce_replace_theme_breadcrumbs($html = '')
{
    if (!$html) {
        ob_start();
        woocommerce_breadcrumb();
        $html = ob_get_clean();
        $html = apply_filters('presscore_get_breadcrumbs', $html);
    }
    return $html;
}
示例#4
0
        </div>
        </div>
        </div>
        </div>
        <!--   End subheader wrapper -->
				<!-- Mainbody, breadcrumbs -->
                <?php 
if ($usebreadcrumb) {
    ?>
				<div id="dp-breadcrumb-fontsize">
                <div class="dp-page pad10">
					<?php 
    $breadcrumbsargs = array('delimiter' => '&nbsp; → &nbsp;');
    ?>
					<?php 
    woocommerce_breadcrumb($breadcrumbsargs);
    ?>
                </div>
				</div>
                <?php 
}
?>
<div class="clearboth"></div>
<section class="dp-page-wrap<?php 
echo $addpageclass;
?>
">
               

	<section id="dp-mainbody-columns">			
			<section>
示例#5
0
					<?php 
            }
        }
    }
    wp_reset_query();
}
?>
	</h1>
	<?php 
if (of_get_option('g_breadcrumbs_id') == 'yes') {
    ?>
			<!-- BEGIN BREADCRUMBS-->
			<?php 
    /* Begin shop */
    if (function_exists('is_shop') && is_shop() || function_exists('is_product') && is_product()) {
        if (class_exists('Woocommerce')) {
            woocommerce_breadcrumb(array('delimiter' => ' / ', 'wrap_before' => '<ul class="breadcrumb breadcrumb__t">', 'wrap_after' => '</ul>'));
        } elseif (function_exists('jigoshop_init')) {
            jigoshop_breadcrumb('/ ', '<ul class="breadcrumb breadcrumb__t">', '</ul>');
        }
        /* End shop */
    } elseif (function_exists('breadcrumbs')) {
        breadcrumbs();
    }
    ?>
			<!-- END BREADCRUMBS -->
	<?php 
}
?>
</section><!-- .title-section -->
        // Title
        if (is_product()) {
            echo '<h2 class="title">';
            if (mfn_opts_get('shop-product-title')) {
                the_title();
            } else {
                woocommerce_page_title();
            }
            echo '</h2>';
        } else {
            echo '<h1 class="title">';
            woocommerce_page_title();
            echo '</h1>';
        }
        // Breadcrumbs
        if ($breadcrumbs_show) {
            $home = mfn_opts_get('translate') ? mfn_opts_get('translate-home', 'Home') : __('Home', 'betheme');
            $woo_crumbs_args = apply_filters('woocommerce_breadcrumb_defaults', array('delimiter' => false, 'wrap_before' => '<ul class="breadcrumbs woocommerce-breadcrumb">', 'wrap_after' => '</ul>', 'before' => '<li>', 'after' => '<span><i class="icon-right-open"></i></span></li>', 'home' => $home));
            woocommerce_breadcrumb($woo_crumbs_args);
        }
        echo '</div>';
        echo '</div>';
        echo '</div>';
    }
}
?>
			
		</div>
		
		<?php 
do_action('mfn_hook_content_before');
示例#7
0
function dynamo_woocommerce_breadcrumb()
{
    woocommerce_breadcrumb(array('delimiter' => '', 'wrap_before' => '<div class="dp-woocommerce-breadcrumbs">', 'wrap_after' => '</div>', 'before' => '<span>', 'after' => '</span>'));
}
示例#8
0
function yit_single_product_title_bar()
{
    if (function_exists('WC')) {
        if (!is_product()) {
            return;
        }
        global $product;
        $args = array('delimiter' => ' > ');
        echo '<div id="title_bar" class="clearfix title_bar_single_product">';
        echo '<div class="container">';
        echo '<div class="row">';
        echo '<div class="col-sm-12">';
        echo '<h2>' . $product->get_title() . '</h2>';
        woocommerce_breadcrumb($args);
        wc_get_template('single-product/nav-links.php');
        echo '</div>';
        echo '</div>';
        echo '</div>';
        echo '</div>';
    }
}
    <?php 
    echo single_term_title("", false);
    ?>
  <?php 
} else {
    ?>
  <?php 
    $shop_page = get_post(woocommerce_get_page_id('shop'));
    echo apply_filters('the_title', ($shop_page_title = get_option('woocommerce_shop_page_title')) ? $shop_page_title : $shop_page->post_title);
}
?>
</h2>

        <?php 
//
woocommerce_breadcrumb(array('delimiter' => ' ', 'wrap_before' => '<nav id="breadcrumbs"><ul><li>You are here: </li>', 'wrap_after' => '</ul></nav>', 'before' => '<li class="current_element">', 'after' => '</li>', 'home' => null));
?>
         <div id="bolded-line"></div>
       </div>
       <!-- Page Title / End -->
     </div>
   </div>
   <!-- 960 Container / End -->
   <?php 
/**
 * woocommerce_before_main_content hook
 *
 * @hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content)
 * @hooked woocommerce_breadcrumb - 20
 */
do_action('woocommerce_before_main_content');
/**
 * HTML wrap start for Single page summary
 */
function ocin_lite_single_product_wrap_start_summary()
{
    ?>
	<div class="summary-top">
		<?php 
    woocommerce_breadcrumb();
    ?>
		<?php 
    woocommerce_template_single_rating();
    ?>
		<div class="clearfix"></div>
	</div><!-- /summary-top -->
	<div class="entry">
	<?php 
}
示例#11
0
function cmo_breadcrumb()
{
    if (class_exists('Woocommerce') && is_woocommerce()) {
        woocommerce_breadcrumb(array('delimiter' => '', 'wrap_before' => '<ul class="cmo-breadcrumbs">', 'wrap_after' => '</ul>', 'before' => '<li>', 'after' => '</li>', 'home' => __('Home', 'cumulo')));
        return;
    }
    if (function_exists("is_bbpress") && is_bbpress()) {
        bbp_breadcrumb(array('before' => '<ul class="cmo-breadcrumbs">', 'after' => '</ul>', 'crumb_before' => '<li>', 'crumb_after' => '</li>', 'sep' => '', 'pad_sep' => 0, 'sep_before' => '', 'sep_after' => '', 'current_before' => '', 'current_after' => ''));
        return;
    }
    global $post;
    echo '<ul class="cmo-breadcrumbs">';
    if (!is_front_page()) {
        echo '<li><a href="';
        echo home_url();
        echo '">' . __('Home', 'cumulo') . "</a></li>";
        // echo '"><i class="fa fa-home"></i></a></li>';
    }
    $params['link_none'] = '';
    $separator = '';
    if (is_category() && !is_singular('cmo_portfolio')) {
        $category = get_the_category();
        $ID = $category[0]->cat_ID;
        echo is_wp_error($cat_parents = get_category_parents($ID, TRUE, '', FALSE)) ? '' : '<li>' . $cat_parents . '</li>';
    }
    if (is_singular('cmo_portfolio')) {
        echo '<li><a href="' . site_url('portfolio-items') . '">' . esc_html__('Portfolio', 'cumulo') . '</a></li>';
        echo get_the_term_list($post->ID, 'portfolio_category', '<li>', ',&nbsp;', '</li>');
        echo '<li>' . get_the_title() . '</li>';
    }
    if (function_exists("is_epl_post") && is_epl_post() && !is_epl_post_archive()) {
        echo '<li><a href="' . site_url('property') . '">' . esc_html__('Properties', 'cumulo') . '</a></li>';
    }
    if (is_singular('event')) {
        $terms = get_the_term_list($post->ID, 'event-categories', '<li>', ',&nbsp;', '</li>');
        if (!is_wp_error($terms)) {
            echo get_the_term_list($post->ID, 'event-categories', '<li>', ',&nbsp;', '</li>');
        }
        echo '<li>' . get_the_title() . '</li>';
    }
    if (is_tax()) {
        $term = get_term_by('slug', get_query_var('term'), get_query_var('taxonomy'));
        $link = get_term_link($term);
        if (is_wp_error($link)) {
            echo sprintf('<li>%s</li>', $term->name);
        } else {
            echo sprintf('<li><a href="%s" title="%s">%s</a></li>', $link, $term->name, $term->name);
        }
    }
    if (is_home()) {
        echo '<li>' . '' . '</li>';
        ///$smof_data['blog_page_title']
    }
    if (is_page() && !is_front_page()) {
        $parents = array();
        $parent_id = $post->post_parent;
        while ($parent_id) {
            $page = get_page($parent_id);
            if ($params["link_none"]) {
                $parents[] = get_the_title($page->ID);
            } else {
                $parents[] = '<li><a href="' . get_permalink($page->ID) . '" title="' . get_the_title($page->ID) . '">' . get_the_title($page->ID) . '</a></li>' . $separator;
            }
            $parent_id = $page->post_parent;
        }
        $parents = array_reverse($parents);
        echo join('', $parents);
        echo '<li>' . get_the_title() . '</li>';
    }
    if (is_single() && !is_singular('cmo_portfolio') && !is_singular('tribe_events') && !is_singular('event') && !is_singular('wpfc_sermon')) {
        $categories_1 = get_the_category($post->ID);
        if ($categories_1) {
            foreach ($categories_1 as $cat_1) {
                $cat_1_ids[] = $cat_1->term_id;
            }
            $cat_1_line = implode(',', $cat_1_ids);
        }
        if (isset($cat_1_line) && $cat_1_line) {
            $categories = get_categories(array('include' => $cat_1_line, 'orderby' => 'id'));
            if ($categories) {
                echo '<li>';
                $cats = '';
                foreach ($categories as $cat) {
                    if ($cats != '') {
                        $cats .= ', ';
                    }
                    $cats .= '<a href="' . get_category_link($cat->term_id) . '" title="' . $cat->name . '">' . $cat->name . '</a>';
                }
                echo $cats;
                echo '</li>';
            }
        }
        echo '<li>' . get_the_title() . '</li>';
    }
    if (is_tag()) {
        echo '<li>' . "Tag: " . single_tag_title('', FALSE) . '</li>';
    }
    if (is_search()) {
        echo '<li>' . __("Search", 'cumulo') . '</li>';
    }
    if (is_404()) {
        echo '<li>' . __("404 - Page Not Found", 'cumulo') . '</li>';
    }
    if (is_archive() && is_post_type_archive()) {
        $title = post_type_archive_title('', false);
        $sermon_settings = get_option('wpfc_options');
        if (is_array($sermon_settings)) {
            $title = $sermon_settings['archive_title'];
        }
        echo '<li>' . $title . '</li>';
    }
    echo "</ul>";
}
示例#12
0
function memberlite_page_title()
{
    global $post;
    //capture output
    ob_start();
    //figure out page title
    if (function_exists('is_woocommerce') && is_woocommerce()) {
        woocommerce_breadcrumb();
        ?>
		<h1 class="page-title">
		<?php 
        if (is_shop()) {
            echo get_the_title(get_option('woocommerce_shop_page_id'));
        } elseif (is_archive()) {
            single_cat_title();
        } else {
            the_title();
        }
        ?>
		</h1>
			<?php 
        // Show an optional term description.
        $term_description = woocommerce_product_archive_description();
        if (!empty($term_description)) {
            printf('<div class="taxonomy-description">%s</div>', $term_description);
        }
        woocommerce_taxonomy_archive_description();
    } elseif (is_author() || is_tag() || is_archive()) {
        ?>
			<h1 class="page-title">
			<?php 
        if (is_category()) {
            single_cat_title();
        } elseif (is_tag()) {
            $current_tag = single_tag_title("", false);
            printf(__('Posts Tagged: %s', 'memberlite'), '<span>' . $current_tag . '</span>');
        } elseif (is_author()) {
            printf(__('Author: %s', 'memberlite'), '<span class="vcard">' . get_the_author() . '</span>');
        } elseif (is_day()) {
            printf(__('Day: %s', 'memberlite'), '<span>' . get_the_date() . '</span>');
        } elseif (is_month()) {
            printf(__('Month: %s', 'memberlite'), '<span>' . get_the_date(_x('F Y', 'monthly archives date format', 'memberlite')) . '</span>');
        } elseif (is_year()) {
            printf(__('Year: %s', 'memberlite'), '<span>' . get_the_date(_x('Y', 'yearly archives date format', 'memberlite')) . '</span>');
        } elseif (is_tax('post_format', 'post-format-aside')) {
            _e('Asides', 'memberlite');
        } elseif (is_tax('post_format', 'post-format-gallery')) {
            _e('Galleries', 'memberlite');
        } elseif (is_tax('post_format', 'post-format-image')) {
            _e('Images', 'memberlite');
        } elseif (is_tax('post_format', 'post-format-video')) {
            _e('Videos', 'memberlite');
        } elseif (is_tax('post_format', 'post-format-quote')) {
            _e('Quotes', 'memberlite');
        } elseif (is_tax('post_format', 'post-format-link')) {
            _e('Links', 'memberlite');
        } elseif (is_tax('post_format', 'post-format-status')) {
            _e('Statuses', 'memberlite');
        } elseif (is_tax('post_format', 'post-format-audio')) {
            _e('Audios', 'memberlite');
        } elseif (is_tax('post_format', 'post-format-chat')) {
            _e('Chats', 'memberlite');
        } elseif (bbp_is_forum_archive()) {
            _e('Forums', 'memberlite');
        } else {
            _e('Archives', 'memberlite');
        }
        ?>
		</h1>
		<?php 
        // Show an optional term description.
        $term_description = term_description();
        if (!empty($term_description)) {
            printf('<div class="taxonomy-description">%s</div>', $term_description);
        }
    } elseif (is_search()) {
        ?>
		<h1 class="page-title">
			<?php 
        printf(__('Search Results for: %s', 'memberlite'), '<span>' . get_search_query() . '</span>');
        ?>
		</h1>
		<?php 
    } elseif (is_singular('post')) {
        $author_id = $post->post_author;
        ?>
		<div class="masthead-post-byline">
			<div class="post_author_avatar"><?php 
        echo get_avatar($author_id, 80);
        ?>
</div>
			<?php 
        the_title('<h1 class="entry-title">', '</h1>');
        ?>
			<p class="entry-meta">
				<?php 
        memberlite_posted_on($post);
        ?>
			</p><!-- .entry-meta -->
		</div>
		<?php 
    } elseif (is_home()) {
        ?>
		<h1 class="page-title">
		<?php 
        if (get_option('page_for_posts')) {
            echo get_the_title(get_option('page_for_posts'));
        }
        ?>
</h1>
		<?php 
    } elseif (is_page_template('templates/landing.php')) {
        global $memberlite_landing_page_level, $memberlite_banner_desc, $memberlite_landing_page_checkout_button;
        the_post_thumbnail('medium', array('class' => 'alignleft'));
        the_title('<h1 class="entry-title">', '</h1>');
        if (defined('PMPRO_VERSION')) {
            $level = pmpro_getLevel($memberlite_landing_page_level);
            if (!empty($level)) {
                echo '<p class="pmpro_level-price">' . memberlite_getLevelCost($level, true, true) . '</p>';
                if (empty($memberlite_banner_desc)) {
                    echo wpautop($level->description);
                }
                echo '<p>' . do_shortcode('[memberlite_btn style="action" href="' . pmpro_url('checkout', '?level=' . $memberlite_landing_page_level, 'https') . '" text="' . $memberlite_landing_page_checkout_button . '"]') . '</p>';
            }
        }
    } else {
        the_title('<h1 class="entry-title">', '</h1>');
    }
    //get captured output
    $page_title_html = ob_get_contents();
    ob_end_clean();
    //filter
    $page_title_html = apply_filters('memberlite_page_title', $page_title_html);
    echo $page_title_html;
}
 /**
  * Breadcrumbs filter
  * 
  * @param  string $html
  * @param  array  $args
  * @return string
  */
 function dt_woocommerce_replace_theme_breadcrumbs($html = '', $args = array())
 {
     if (!$html) {
         ob_start();
         woocommerce_breadcrumb(array('delimiter' => '', 'wrap_before' => '<div class="assistive-text"></div><ol' . $args['listAttr'] . ' xmlns:v="http://rdf.data-vocabulary.org/#">', 'wrap_after' => '</ol>', 'before' => '<li typeof="v:Breadcrumb">', 'after' => '</li>', 'home' => __('Home', 'the7mk2')));
         $html = ob_get_clean();
         $html = apply_filters('presscore_get_breadcrumbs', $args['beforeBreadcrumbs'] . $html . $args['afterBreadcrumbs']);
     }
     return $html;
 }
示例#14
0
function avada_current_page_title_bar($post_id)
{
    global $smof_data;
    ob_start();
    if ($smof_data['breadcrumb']) {
        if ($smof_data['page_title_bar_bs'] == 'Breadcrumbs') {
            if (class_exists('Woocommerce') && is_woocommerce() || (is_tax('product_cat') || is_tax('product_tag'))) {
                woocommerce_breadcrumb(array('wrap_before' => '<ul class="breadcrumbs">', 'wrap_after' => '</ul>', 'before' => '<li>', 'after' => '</li>', 'delimiter' => ''));
            } else {
                if (class_exists('bbPress') && is_bbpress()) {
                    bbp_breadcrumb(array('before' => '<ul class="breadcrumbs">', 'after' => '</ul>', 'sep' => ' ', 'crumb_before' => '<li>', 'crumb_after' => '</li>', 'home_text' => __('Home', 'Avada')));
                } else {
                    themefusion_breadcrumb();
                }
            }
        } else {
            get_search_form();
        }
    }
    $secondary_content = ob_get_contents();
    ob_get_clean();
    $title = '';
    $subtitle = '';
    if (get_post_meta($post_id, 'pyre_page_title_custom_text', true) != '') {
        $title = get_post_meta($post_id, 'pyre_page_title_custom_text', true);
    }
    if (get_post_meta($post_id, 'pyre_page_title_custom_subheader', true) != '') {
        $subtitle = get_post_meta($post_id, 'pyre_page_title_custom_subheader', true);
    }
    if (!$title) {
        $title = get_the_title();
        if (is_home()) {
            $title = $smof_data['blog_title'];
        }
        if (is_search()) {
            $title = __('Search results for:', 'Avada') . get_search_query();
        }
        if (is_404()) {
            $title = __('Error 404 Page', 'Avada');
        }
        if (is_archive()) {
            if (is_day()) {
                $title = __('Daily Archives:', 'Avada') . '<span> ' . get_the_date() . '</span>';
            } else {
                if (is_month()) {
                    $title = __('Monthly Archives:', 'Avada') . '<span> ' . get_the_date(_x('F Y', 'monthly archives date format', 'Avada')) . '</span>';
                } elseif (is_year()) {
                    $title = __('Yearly Archives:', 'Avada') . '<span> ' . get_the_date(_x('Y', 'yearly archives date format', 'Avada')) . '</span>';
                } elseif (is_author()) {
                    $curauth = isset($_GET['author_name']) ? get_user_by('slug', $_GET['author_name']) : get_user_by('id', get_the_author_meta('ID'));
                    $title = $curauth->nickname;
                } else {
                    $title = single_cat_title('', false);
                }
            }
        }
        if (class_exists('Woocommerce') && is_woocommerce() && (is_product() || is_shop()) && !is_search()) {
            if (!is_product()) {
                $title = woocommerce_page_title(false);
            }
        }
    }
    if (!$subtitle) {
        if (is_home() && !is_front_page()) {
            $subtitle = $smof_data['blog_subtitle'];
        }
    }
    if (!is_archive() && !is_search() && !(is_home() && !is_front_page())) {
        if (get_post_meta($post_id, 'pyre_page_title', true) == 'yes' || $smof_data['page_title_bar'] && get_post_meta($post_id, 'pyre_page_title', true) == 'default') {
            if (get_post_meta($post_id, 'pyre_page_title_text', true) == 'no') {
                $title = '';
                $subtitle = '';
            }
            avada_page_title_bar($title, $subtitle, $secondary_content);
        }
    } else {
        if ($smof_data['page_title_bar']) {
            avada_page_title_bar($title, $subtitle, $secondary_content);
        }
    }
}
示例#15
0
<?php

/**
 * The template for WooProject page.
 * Template Name: WooProject
 *
 * @package Corpobox
 */
get_header();
?>

<header class="page-header">
<?php 
$args = array('delimiter' => ' &#8250; ');
if (is_plugin_active('woocommerce/woocommerce.php')) {
    woocommerce_breadcrumb($args);
} else {
    corpobox_breadcrumb();
}
?>

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

	<div id="primary" class="content-area<?php 
if (!is_active_sidebar('projects')) {
    ?>
 no-sidebar<?php 
示例#16
0
				<div class="bellow_header_title">
                	<div class="page-title">
                    
						<?php 
    echo '<' . $page_title_tag . '>';
    if (!is_product()) {
        woocommerce_page_title(true);
    } else {
        the_title();
    }
    echo '</' . $page_title_tag . '>';
    ?>
   
                        <div class="breadcrumb">                      
                    	<?php 
    woocommerce_breadcrumb(array('wrap_before' => '<ul class="breadcrumbs">', 'wrap_after' => '</ul>', 'before' => '<li>', 'after' => '</li>', 'delimiter' => '', 'home' => _x('<i class="fa fa-home"></i>', 'breadcrumb', 'woocommerce')));
    ?>
 
                        </div>                                                   
                        <?php 
    if ($data['header_search_form']) {
        ?>
                            <div class="breadcrumb_search_form">
                                <?php 
        cr_searchform();
        ?>
                            </div>
                        <?php 
    }
    ?>
    
示例#17
0
function woocommerce_custom_breadcrumb()
{
    woocommerce_breadcrumb();
}
示例#18
0
function extra_woocommerce_output_content_wrapper()
{
    echo '
		<div id="main-content">
			<div class="container">
				<div id="content-area" class="clearfix">
					<div class="et_pb_row woocommerce-page-top">';
    if (!is_singular('product')) {
        echo '<h1 class="page-title">' . woocommerce_page_title(false) . '</h1>';
    }
    woocommerce_breadcrumb();
    echo '			</div>
					<div class="et_pb_extra_column_main">';
}
示例#19
0
?>
    <section id="titlebar">
            <!-- Container -->
            <div class="container">
                <div class="eight columns">
                    <h2 class="page-title"><?php 
the_title();
?>
</h2>
                </div>

                <div class="eight columns">
                    <nav id="breadcrumbs">
                        <?php 
if (ot_get_option('pp_breadcrumbs') != 'no') {
    woocommerce_breadcrumb();
}
?>
                    </nav>
                </div>
            </div>
            <!-- Container / End -->
        </section>
	<?php 
/**
 * woocommerce_before_main_content hook
 *
 * @hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content)
 * @hooked woocommerce_breadcrumb - 20
 */
do_action('woocommerce_before_main_content');
示例#20
0
function avada_current_page_title_bar($post_id)
{
    global $smof_data;
    ob_start();
    if ($smof_data['breadcrumb']) {
        if ($smof_data['page_title_bar_bs'] == 'Breadcrumbs') {
            if (class_exists('Woocommerce') && is_woocommerce() || (is_tax('product_cat') || is_tax('product_tag'))) {
                woocommerce_breadcrumb(array('wrap_before' => '<ul class="breadcrumbs">', 'wrap_after' => '</ul>', 'before' => '<li>', 'after' => '</li>', 'delimiter' => ''));
            } else {
                if (class_exists('bbPress') && is_bbpress()) {
                    bbp_breadcrumb(array('before' => '<ul class="breadcrumbs">', 'after' => '</ul>', 'sep' => ' ', 'crumb_before' => '<li>', 'crumb_after' => '</li>', 'home_text' => __('Home', 'Avada')));
                } else {
                    themefusion_breadcrumb();
                }
            }
        } else {
            get_search_form();
        }
    }
    $secondary_content = ob_get_contents();
    ob_get_clean();
    $title = '';
    $subtitle = '';
    if (get_post_meta($post_id, 'pyre_page_title_custom_text', true) != '') {
        $title = get_post_meta($post_id, 'pyre_page_title_custom_text', true);
    }
    if (get_post_meta($post_id, 'pyre_page_title_custom_subheader', true) != '') {
        $subtitle = get_post_meta($post_id, 'pyre_page_title_custom_subheader', true);
    }
    if (!$title) {
        $title = get_the_title();
        if (is_home()) {
            $title = $smof_data['blog_title'];
        }
        if (is_search()) {
            $title = __('Rezultati pretrage za:', 'Avada') . get_search_query();
        }
        if (is_404()) {
            $title = __('Error 404 Page', 'Avada');
        }
        if (class_exists('TribeEvents') && tribe_is_event() && !is_single() || class_exists('TribeEvents') && is_events_archive() && is_404()) {
            $title = tribe_get_events_title();
        }
        if (is_archive() && !is_bbpress()) {
            if (is_day()) {
                $title = __('Dnevna arhiva:', 'Avada') . '<span> ' . get_the_date() . '</span>';
            } else {
                if (is_month()) {
                    $title = __('Mjesečna arhiva:', 'Avada') . '<span> ' . get_the_date(_x('F Y', 'monthly archives date format', 'Avada')) . '</span>';
                } elseif (is_year()) {
                    $title = __('Godišnja arhiva:', 'Avada') . '<span> ' . get_the_date(_x('Y', 'yearly archives date format', 'Avada')) . '</span>';
                } elseif (is_author()) {
                    $curauth = get_user_by('id', get_query_var('author'));
                    $title = $curauth->nickname;
                } else {
                    $title = single_cat_title('', false);
                }
            }
        }
        if (class_exists('Woocommerce') && is_woocommerce() && (is_product() || is_shop()) && !is_search()) {
            if (!is_product()) {
                $title = woocommerce_page_title(false);
            }
        }
    }
    if (!$subtitle) {
        if (is_home()) {
            $subtitle = $smof_data['blog_subtitle'];
        }
    }
    if (!is_archive() && !is_search() && !(is_home() && !is_front_page())) {
        if (get_post_meta($post_id, 'pyre_page_title', true) == 'yes' || $smof_data['page_title_bar'] && get_post_meta($post_id, 'pyre_page_title', true) != 'no') {
            if (get_post_meta($post_id, 'pyre_page_title_text', true) == 'no') {
                $title = '';
                $subtitle = '';
            }
            if (is_home() && is_front_page() && !$smof_data['blog_show_page_title_bar']) {
                // do nothing
            } else {
                avada_page_title_bar($title, $subtitle, $secondary_content);
            }
        }
    } else {
        if (is_home() && !$smof_data['blog_show_page_title_bar']) {
            // do nothing
        } else {
            if ($smof_data['page_title_bar']) {
                avada_page_title_bar($title, $subtitle, $secondary_content);
            }
        }
    }
}
示例#21
0
function dh_the_breadcrumb()
{
    if (defined('WOOCOMMERCE_VERSION') && is_woocommerce() || (is_tax('product_cat') || is_tax('product_tag'))) {
        woocommerce_breadcrumb(array('wrap_before' => '<ul class="breadcrumb" prefix="v: http://rdf.data-vocabulary.org/#">', 'wrap_after' => '</ul>', 'before' => '<li>', 'after' => '</li>', 'delimiter' => ''));
    } else {
        echo dh_get_breadcrumb();
    }
}
 /**
  * Breadcrumbs filter
  * 
  * @param  string $html
  * @param  array  $args
  * @return string
  */
 function dt_woocommerce_replace_theme_breadcrumbs($html = '', $args = array())
 {
     if (!$html) {
         ob_start();
         woocommerce_breadcrumb(array('delimiter' => '', 'wrap_before' => '<div class="assistive-text"></div><ol' . $args['listAttr'] . '>', 'wrap_after' => '</ol>', 'before' => '<li>', 'after' => '</li>', 'home' => _x('Home', 'breadcrumb', LANGUAGE_ZONE)));
         $html = ob_get_clean();
         $html = apply_filters('presscore_get_breadcrumbs', $args['beforeBreadcrumbs'] . $html . $args['afterBreadcrumbs']);
     }
     return $html;
 }
示例#23
0
                } else {
                    woocommerce_page_title();
                }
                ?>
			</h1>
			<?php 
            }
            ?>
			<?php 
            if ($data['breadcrumb']) {
                ?>
			<?php 
                if ($data['page_title_bar_bs'] == 'Breadcrumbs') {
                    ?>
			<?php 
                    woocommerce_breadcrumb(array('wrap_before' => '<ul class="breadcrumbs">', 'wrap_after' => '</ul>', 'before' => '<li>', 'after' => '</li>', 'delimiter' => ''));
                    ?>
			<?php 
                } else {
                    ?>
			<?php 
                    get_search_form();
                    ?>
			<?php 
                }
                ?>
			<?php 
            }
            ?>
			</div>
		</div>
示例#24
0
    }
    ?>
">
    <div class="woo-layout">
        <div class="container"> 
            <div class="row ">
                <div class="col-xs-12 col-sm-6 col-md-6 col-lg-6">
                   <h2> <?php 
    _e('Products', 'woocommerce');
    ?>
 </h2>
                </div>
                <div class="col-xs-12 col-sm-6 col-md-6 col-lg-6">
                 <?php 
    $attg = array('wrap_before' => __('You are here: ', 'woocommerce'), 'home' => _x('Home', 'breadcrumb', 'woocommerce'));
    woocommerce_breadcrumb($attg);
    ?>
                </div>
            </div>
         </div>   
    </div>
    <main id="woocommerce" class="site-main" role="main">    
        <div class="<?php 
    echo get_post_meta(get_the_ID(), 'zo_layout', true) ? 'no-container' : 'container';
    ?>
">
            
            <div class="row">
                 <?php 
    if (is_active_sidebar('sidebar-12')) {
        ?>
示例#25
0
 function cpotheme_breadcrumb($display = false)
 {
     if (!is_home() && !is_front_page()) {
         //Use WooCommerce navigation if it's a shop page
         if (function_exists('is_woocommerce') && function_exists('woocommerce_breadcrumb') && is_woocommerce()) {
             woocommerce_breadcrumb();
             return;
         }
         $result = '';
         if (function_exists('yoast_breadcrumb')) {
             $result = yoast_breadcrumb('', '', false);
         }
         if ($result == '') {
             global $post;
             if (is_object($post)) {
                 $pid = $post->ID;
             } else {
                 $pid = '';
             }
             $result = '';
             if ($pid != '') {
                 $result = "<span class='breadcrumb-separator'></span>";
                 //Add post hierarchy
                 if (is_singular()) {
                     $post_data = get_post($pid);
                     $result .= "<span class='breadcrumb-title'>" . apply_filters('the_title', $post_data->post_title) . "</span>\n";
                     //Add post hierarchy
                     while ($post_data->post_parent) {
                         $post_data = get_post($post_data->post_parent);
                         $result = "<span class='breadcrumb-separator'></span><a class='breadcrumb-link' href='" . get_permalink($post_data->ID) . "'>" . apply_filters('the_title', $post_data->post_title) . "</a>\n" . $result;
                     }
                 } elseif (is_tax()) {
                     $result .= single_tag_title('', false);
                 } elseif (is_author()) {
                     $author = get_userdata(get_query_var('author'));
                     $result .= $author->display_name;
                     //Prefix with a taxonomy if possible
                 } elseif (is_category()) {
                     $post_data = get_the_category($pid);
                     if (isset($post_data[0])) {
                         $data = get_category_parents($post_data[0]->cat_ID, TRUE, ' &raquo; ');
                         if (!is_object($data)) {
                             $result .= substr($data, 0, -8);
                         }
                     }
                 } elseif (is_search()) {
                     $result .= __('Search Results', 'brilliance');
                 } else {
                     if (isset($post->ID)) {
                         $current_id = $post->ID;
                     } else {
                         $current_id = false;
                     }
                     if ($current_id) {
                         $result .= get_the_title($current_id);
                     }
                 }
             } elseif (is_404()) {
                 $result = "<span class='breadcrumb-separator'></span>";
                 $result .= __('Page Not Found', 'brilliance');
             }
             $result = '<a class="breadcrumb-link" href="' . home_url() . '">' . __('Home', 'brilliance') . '</a>' . $result;
         }
         $output = '<div id="breadcrumb" class="breadcrumb">' . $result . '</div>';
         echo $output;
     }
 }
示例#26
0
    /**
     * Add initial portion of wrapper
     * @since 1.4.6
     */
    function themify_before_shop_content()
    {
        ?>
		<!-- layout -->
		<div id="layout" class="pagewidth clearfix">

			<?php 
        themify_content_before();
        // Hook
        ?>

			<!-- content -->
			<div id="content" class="<?php 
        echo is_product() || is_shop() ? 'list-post' : '';
        ?>
">

				<?php 
        if (!themify_check('setting-hide_shop_breadcrumbs')) {
            themify_breadcrumb_before();
            woocommerce_breadcrumb();
            themify_breadcrumb_after();
        }
        themify_content_start();
        // Hook
    }
示例#27
0
function woocommerce_custom_breadcrumb()
{
    if (function_exists('woocommerce_breadcrumb')) {
        woocommerce_breadcrumb();
    }
}
示例#28
0
 /**
  * Prints breadcrumb HTML required by the theme
  */
 function quest_breadcrumb()
 {
     global $post;
     if (function_exists('is_woocommerce') && is_woocommerce()) {
         woocommerce_breadcrumb(array('wrap_before' => '<ul class="breadcrumbs">', 'wrap_after' => '</ul>', 'delimiter' => '', 'before' => '<li>', 'after' => '</li>'));
         return;
     }
     echo '<ul class="breadcrumbs">';
     if (!is_front_page()) {
         echo '<li><a href="';
         echo home_url();
         echo '">' . __('Home', 'quest');
         echo "</a></li>";
     }
     if (is_category() || is_single() && !is_singular('portfolio')) {
         $category = get_the_category();
         if (isset($category[0])) {
             $ID = $category[0]->cat_ID;
             echo '<li>' . get_category_parents($ID, true, '', false) . '</li>';
         }
     }
     if (is_singular('portfolio')) {
         echo get_the_term_list($post->ID, 'portfolio_category', '<li>', ' - ', '</li>');
     }
     if (is_home()) {
         echo '<li>' . get_option('blog_title', 'Blog') . '</li>';
     }
     if (is_single() || is_page()) {
         echo '<li>' . get_the_title() . '</li>';
     }
     if (is_tag()) {
         echo '<li>' . "Tag: " . single_tag_title('', false) . '</li>';
     }
     if (is_404()) {
         echo '<li>' . __("404 - Page not Found", 'quest') . '</li>';
     }
     if (is_search()) {
         echo '<li>' . __("Search", 'quest') . '</li>';
     }
     if (is_year()) {
         echo '<li>' . get_the_time('Y') . '</li>';
     }
     echo "</ul>";
 }
示例#29
0
 function anaglyph_woo_breadcrumbs()
 {
     global $anaglyph_config, $anaglyph_is_redux_active;
     if (!empty($anaglyph_config['pp-breadcrumbs']) || !$anaglyph_is_redux_active) {
         if ($anaglyph_config['pp-breadcrumbs'] || !$anaglyph_is_redux_active) {
             $args = array();
             $args = apply_filters('woocommerce_breadcrumb_defaults', array('delimiter' => '', 'wrap_before' => '<section id="breadcrumb"' . (is_single() ? 'itemprop="breadcrumb"' : '') . '><div class="container"><ol class="breadcrumb">', 'wrap_after' => '</ol></div></section>', 'before' => '<li>', 'after' => '</li>', 'home' => _x('Home', 'breadcrumb', 'woocommerce')));
             woocommerce_breadcrumb($args);
         }
     }
 }
示例#30
-12
<?php

get_header();
?>

<section id="section-breadcrumbs" class="section-content">
	<div class="container">
		<?php 
woocommerce_breadcrumb(array('wrap_before' => '<nav class="woocommerce-breadcrumb">', 'wrap_after' => '</nav>'));
?>
	</div>
</section>

<section class="section-content">
	<div class="container clearfix">
		<?php 
if (is_product()) {
    ?>
			<div class="main-content">
				<?php 
    woocommerce_content();
    ?>
			</div>

			<?php 
    get_sidebar('shop');
    ?>
		<?php 
} else {
    ?>
			<?php