/**
 * 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();
    }
}
Ejemplo n.º 2
0
<?php

/** 
* Template Name:  Ad Template
*
 * @version		1.0.0
 * @package		wp-ad-adder/templates
 * @author 		Norbert Dreszer
*/
if (!defined('ABSPATH')) {
    exit;
}
// Exit if accessed directly
get_header();
?>

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

			<?php 
content_product_adder_single();
?>

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

<?php 
get_sidebar();
get_footer();