Exemplo n.º 1
0
        echo "<a href='#' class='productitem productcategorywrapout' data-width='1'>\r\n\t\t\t\t\t\t\t<div class='productcontent productcategorywrap' style='margin: {$marginsize}px'>\r\n\t\t\t\t\t\t\t\t<div class='article-head-wrapper'>\r\n\t\t\t\t\t\t\t\t\t<span>{$title}</span>\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t</div>\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t</a>";
    }
    while (have_posts()) {
        the_post();
        woocommerce_get_template_part('content', 'product');
    }
} else {
    woocommerce_get_template('loop/no-products-found.php');
}
?>
		</div>
		<?php 
global $wp_query;
$paged = get_query_var('paged') ? get_query_var('paged') : 1;
if ($wp_query->max_num_pages > 1) {
    echo "<div class='blogpagingholder'>\r\n\t\t\t\t\t<div class='blogpagingwrapper'>\r\n\t\t\t\t\t" . jeg_new_pagination(get_the_ID(), $paged, $wp_query->max_num_pages) . "\r\n\t\t\t\t\t</div>\r\n\t\t\t\t</div>";
}
wp_reset_postdata();
?>
		
		
	</div>	
</div>
<div class="productloader bigloader"></div>
<style>
	<?php 
if (vp_option('joption.override_overlay')) {
    ?>
	.productitem .pmask {
		background : <?php 
    echo vp_option('joption.product_overlay_color');
Exemplo n.º 2
0
        $statement['category__in'] = $_REQUEST['category'];
    }
}
if (!empty($_REQUEST['sort'])) {
    if ($_REQUEST['sort'] === 'date') {
        $statement['orderby'] = "date";
        $statement['order'] = "DESC";
    } else {
        $statement['meta_key'] = "post_views_count";
        $statement['orderby'] = "meta_value_num";
        $statement['order'] = "DESC";
    }
}
$query = new WP_Query($statement);
if ($query->have_posts()) {
    while ($query->have_posts()) {
        $query->the_post();
        $blogitemtype = vp_metabox('jkreativ_blog_format.format');
        jeg_get_template_part('template/blogpost/masonry', $blogitemtype);
    }
} else {
}
wp_reset_postdata();
?>
	</div>
	<?php 
if ($query->max_num_pages > 1) {
    echo "<div class='blogpagingholder'>\n\t\t\t\t<div class='blogpagingwrapper hideme'>\n\t\t\t\t" . jeg_new_pagination(JEG_PAGE_ID, $paged, $query->max_num_pages) . "\n\t\t\t\t</div>\n\t\t\t</div>";
}
?>
</div>