woocommerce/templates/archive-product.php

27 lines
1.0 KiB
PHP
Raw Normal View History

2011-08-09 15:16:18 +00:00
<?php get_header('shop'); ?>
2011-08-10 17:11:11 +00:00
<?php do_action('woocommerce_before_main_content'); // <div id="container"><div id="content" role="main"> ?>
2011-08-09 15:16:18 +00:00
2011-10-09 13:49:56 +00:00
<?php
$shop_page_id = get_option('woocommerce_shop_page_id');
$shop_page = get_post($shop_page_id);
2011-10-12 11:17:06 +00:00
$shop_page_title = (get_option('woocommerce_shop_page_title')) ? get_option('woocommerce_shop_page_title') : $shop_page->post_title;
2011-10-09 13:49:56 +00:00
?>
2011-08-09 15:16:18 +00:00
<?php if (is_search()) : ?>
2012-01-05 11:31:22 +00:00
<h1 class="page-title"><?php _e('Search Results:', 'woocommerce'); ?> &ldquo;<?php the_search_query(); ?>&rdquo; <?php if (get_query_var('paged')) echo ' &mdash; Page '.get_query_var('paged'); ?></h1>
2011-08-09 15:16:18 +00:00
<?php else : ?>
2011-10-12 11:17:06 +00:00
<h1 class="page-title"><?php echo apply_filters('the_title', $shop_page_title); ?></h1>
2011-08-09 15:16:18 +00:00
<?php endif; ?>
2011-10-09 13:49:56 +00:00
<?php echo apply_filters('the_content', $shop_page->post_content); ?>
2011-08-09 15:16:18 +00:00
2011-08-10 17:11:11 +00:00
<?php woocommerce_get_template_part( 'loop', 'shop' ); ?>
2011-08-09 15:16:18 +00:00
2011-08-10 17:11:11 +00:00
<?php do_action('woocommerce_pagination'); ?>
2011-08-09 15:16:18 +00:00
2011-08-10 17:11:11 +00:00
<?php do_action('woocommerce_after_main_content'); // </div></div> ?>
2011-08-09 15:16:18 +00:00
<?php do_action('woocommerce_sidebar'); ?>
2011-08-09 15:16:18 +00:00
<?php get_footer('shop'); ?>