Exemplo n.º 1
0
function miss_woocommerce_content()
{
    if (is_singular('product')) {
        while (have_posts()) {
            the_post();
            woocommerce_get_template_part('content', 'single-product');
        }
    } else {
        ?>

		<?php 
        if (apply_filters('woocommerce_show_page_title', true)) {
            ?>
            <div class="bread-container">
                <div class="bread-wrapper">
                    <div class="blog-title"><?php 
            woocommerce_page_title();
            ?>
</div>
                    <?php 
            dimox_breadcrumbs();
            ?>
                </div>
            </div>

		<?php 
        }
        ?>

		<?php 
        do_action('woocommerce_archive_description');
        ?>

		<?php 
        if (have_posts()) {
            ?>

			<?php 
            do_action('woocommerce_before_shop_loop');
            ?>

			<?php 
            woocommerce_product_loop_start();
            ?>

				<?php 
            woocommerce_product_subcategories();
            ?>

				<?php 
            while (have_posts()) {
                the_post();
                ?>

					<?php 
                woocommerce_get_template_part('content', 'product');
                ?>

				<?php 
            }
            // end of the loop.
            ?>

			<?php 
            woocommerce_product_loop_end();
            ?>

			<?php 
            do_action('woocommerce_after_shop_loop');
            ?>

		<?php 
        } elseif (!woocommerce_product_subcategories(array('before' => woocommerce_product_loop_start(false), 'after' => woocommerce_product_loop_end(false)))) {
            ?>

			<?php 
            woocommerce_get_template('loop/no-products-found.php');
            ?>

		<?php 
        }
    }
}
Exemplo n.º 2
0
    ?>
<div class="page_title_ctn"> 
  <div class="wrapper table_wrapper">
  <h1><?php 
    the_title();
    ?>
</h1>
  <?php 
    if ($bc !== 'no') {
        echo wpb_list_child_pages();
        ?>
     
<div id="breadcrumbs">
  <?php 
        if (function_exists('dimox_breadcrumbs')) {
            dimox_breadcrumbs();
        }
        ?>
</div>
<?php 
    }
    ?>
 
</div>
</div>
<?php 
}
do_action('__after_page_title');
?>
<div class="section def_section">
  <div class="wrapper section_wrapper">
Exemplo n.º 3
0
<?php
/*
Template Name: Blog
*/
get_header();
?>
<div id="breadcumb">

	<div class="container">
		<?php if (function_exists('dimox_breadcrumbs')) dimox_breadcrumbs();?>
	</div>

</div>

<div id="inner-page">

	<div class="container" id="inner-wrapper">
	
		<?php if (get_post_meta($post->ID, 'sidebar_position', true ) =='left') { ?>
		
			<div class="one_fourth" id="sidebar">
				<?php if ( !function_exists('dynamic_sidebar') || ! generated_dynamic_sidebar('Page Sidebar') ) ; ?>
			</div>
			
			<div class="three_fourth last" id="page-content">
				 <?php
					 $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
					 $excats = get_option('ep_exclude_categories');
					 $args=array(
					    'cat'=> $excats,
					    'paged'=>$paged,
Exemplo n.º 4
0
    /**
     * Displays the breadcrumbs if they are enabled
     */
    public static function breadcrumbs()
    {
        if (!self::has_breadcrumbs()) {
            return;
        }
        ?>
			<h6 id="header-breadcrumbs">
				<?php 
        dimox_breadcrumbs('&middot;');
        ?>
			</h6>
		<?php 
    }
Exemplo n.º 5
0
		
		<br class="clear"/>
		<!-- Begin content -->
		<div id="content_wrapper">
		
			<div class="page_caption">
				<div class="caption_inner">
					<div class="caption_header">
						<h1 class="cufon"><?php 
    the_title();
    ?>
</h1>
					</div>
					<div class="pp_breadcrumbs">
						<?php 
    $bcstr = dimox_breadcrumbs();
    echo $bcstr;
    ?>
					</div>
					<br class="clear"/>
				</div>
			</div>
			
			<div class="inner">
			
				<!-- Begin main content -->
				<div class="inner_wrapper">
				
				<div class="standard_wrapper">
				<br/>
<?php 
Exemplo n.º 6
0
            echo '<section class="page-title"><div class="container clearfix">';
            $post_title = is_woo() ? woocommerce_page_title(false) : get_the_title();
            $page_tile = is_front_page() ? __("HOME", THEME_SLUG) : (isset($GLOBALS['wp_query']->tribe_is_event_query) ? $post_title ? $post_title : __("EVENTS", THEME_SLUG) : (is_404() ? __('404 PAGE', THEME_SLUG) : $post_title));
            echo '<h1>' . $page_tile . "</h1>";
            //echo '<h1>'' . ( is_front_page() ? __("HOME",THEME_SLUG) : get_the_title() ) . "</h1>";
            echo cws_get_option("breadcrumbs") ? is_woo() ? woocommerce_breadcrumb() : dimox_breadcrumbs() : "";
            echo '</div></section>';
        }
    }
} else {
    echo '<section class="page-title"><div class="container clearfix">';
    $post_title = is_woo() ? woocommerce_page_title(false) : get_the_title();
    $page_tile = __("Search", THEME_SLUG);
    echo '<h1>' . $page_tile . "</h1>";
    //echo '<h1>'' . ( is_front_page() ? __("HOME",THEME_SLUG) : get_the_title() ) . "</h1>";
    echo cws_get_option("breadcrumbs") ? is_woo() ? woocommerce_breadcrumb() : dimox_breadcrumbs() : "";
    echo '</div></section>';
}
if (is_front_page() && !is_search() && !isset($_GET['asearch'])) {
    $benefits_sb = cws_get_option("benefits-sidebar");
    if (!empty($benefits_sb)) {
        ob_start();
        dynamic_sidebar($benefits_sb);
        $benefits_sb_content = ob_get_clean();
        if (!empty($benefits_sb_content)) {
            ?>
					<section class="benefits <?php 
            echo $slider_type == 'video-slider' ? 'under' : '';
            ?>
">
						<div class="container">