Example #1
0
 function include_woocommerce_template($tmpl)
 {
     global $gantry;
     $find = array('woocommerce.php');
     $file = '';
     if (is_single() && get_post_type() == 'product') {
         $file = 'single-product.php';
         $find[] = $file;
     } elseif (is_tax('product_cat') || is_tax('product_tag')) {
         $term = get_queried_object();
         $file = 'taxonomy-' . $term->taxonomy . '-' . $term->slug . '.php';
         $find[] = 'taxonomy-' . $term->taxonomy . '.php';
         $find[] = $file;
     } elseif (is_post_type_archive('product') || is_page(woocommerce_get_page_id('shop'))) {
         $file = 'archive-product.php';
         $find[] = $file;
     }
     $find = array_reverse($find);
     $template = GantryBodyLayout::locate_type($find);
     if ($template && $template != '') {
         return $template;
     } else {
         woocommerce_content();
         return '';
     }
     return $tmpl;
 }
?>

<div class="clear"></div>

</header> <!-- / END HOME SECTION  -->


<div id="content" class="site-content">

	<div class="container">

		<div class="content-left-wrap col-md-12">

			<div id="primary" class="content-area">

				<main id="main" class="site-main" role="main">

					<?php 
woocommerce_content();
?>

				</main><!-- #main -->

			</div><!-- #primary -->

		</div><!-- .content-left-wrap -->

	</div><!-- .container -->

<?php 
get_footer();
 function woocommerce_product_taxonomy_content()
 {
     _deprecated_function(__FUNCTION__, '1.6');
     woocommerce_content();
 }
Example #4
0
<?php

get_header();
?>

<div class="row">
	<div class="small-100 large-75 columns" role="main">

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

	<?php 
while (woocommerce_content()) {
    the_post();
    ?>
		<article <?php 
    post_class();
    ?>
 id="post-<?php 
    the_ID();
    ?>
">
			<header>
				<h1 class="entry-title"><?php 
    the_title();
    ?>
</h1>
			</header>
			<?php 
    do_action('foundationPress_page_before_entry_content');
    <div class="section post-single woocommerce"><!-- SECTION -->
   
		<div class="container">	
           <div class="row">
           	<?php if(is_product()){ ?>
			<div class="<?php echo $single_product_layout; ?> columns">  
                 <?php woocommerce_content(); ?>
			</div><!-- END SIXTEEN COLUMNS --> 
            <?php if($smof_data['rnr_enable_wc_single_sidebar']) { 

			get_sidebar('woocommerce'); } ?> 
            
            <?php } //Main Shop page layout 
			else if(is_shop() || is_product_category() || is_product_tag()) { ?>
			<div class="<?php echo $main_shop_layout; ?> columns">  
                 <?php woocommerce_content(); ?>
			</div><!-- END SIXTEEN COLUMNS --> 
            <?php if($smof_data['rnr_enable_wc_sidebar']) { 
			
			get_sidebar('woocommerce'); } ?> 
            
			<?php } ?>
           </div><!-- END ROW -->         
          </div><!-- END CONTAINER -->       
  

    </div><!--END SECTION -->
    
        </div><!--END SECTION -->
<?php get_footer(); ?>
Example #6
0
function woocommerce_fix()
{
    if (is_singular('product')) {
        woocommerce_content();
    } else {
        //For ANY product archive.
        //Product taxonomy, product search or /shop landing
        woocommerce_get_template('archive-product.php');
    }
}