25 lines
909 B
PHP
25 lines
909 B
PHP
<?php get_header('shop'); ?>
|
|
|
|
<?php do_action('woocommerce_before_main_content'); // <div id="container"><div id="content" role="main"> ?>
|
|
|
|
<?php if (is_search()) : ?>
|
|
<h1 class="page-title"><?php _e('Search Results:', 'woothemes'); ?> “<?php the_search_query(); ?>” <?php if (get_query_var('paged')) echo ' — Page '.get_query_var('paged'); ?></h1>
|
|
<?php else : ?>
|
|
<h1 class="page-title"><?php _e('All Products', 'woothemes'); ?></h1>
|
|
<?php endif; ?>
|
|
|
|
<?php
|
|
$shop_page_id = get_option('woocommerce_shop_page_id');
|
|
$shop_page = get_post($shop_page_id);
|
|
echo apply_filters('the_content', $shop_page->post_content);
|
|
?>
|
|
|
|
<?php woocommerce_get_template_part( 'loop', 'shop' ); ?>
|
|
|
|
<?php do_action('woocommerce_pagination'); ?>
|
|
|
|
<?php do_action('woocommerce_after_main_content'); // </div></div> ?>
|
|
|
|
<?php do_action('woocommerce_sidebar'); ?>
|
|
|
|
<?php get_footer('shop'); ?>
|