/**
 * WP Product template functions
 *
 * Here all plugin template functions are defined.
 *
 * @version		1.1.3
 * @package		ecommerce-product-catalog/
 * @author 		Norbert Dreszer
 */
function content_product_adder()
{
    if (is_archive() || is_search() || is_home_archive() || is_ic_product_listing()) {
        do_action('before_product_archive');
        content_product_adder_archive();
    } else {
        content_product_adder_single();
    }
}
Exemplo n.º 2
0
<?php

/**
 * The template for displaying products archive pages.
 *
 * 
 *
 * @version		1.0.0
 * @package		ecommerce-product-catalog/templates
 * @author 		Norbert Dreszer
 */
if (!defined('ABSPATH')) {
    exit;
}
// Exit if accessed directly
get_header();
?>
	<div id="primary" class="content-area">
		<div id="content" class="site-content" role="main">
		<?php 
content_product_adder_archive();
?>

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

<?php 
get_sidebar();
get_footer();