File "products-widget.php"

Full Path: /home/siazco/grocery.siazco.se/wp-content/plugins/kapee-extensions/templates/shortcodes/products-widget.php
File size: 760 bytes
MIME-type: text/x-php
Charset: utf-8

<?php 
/**
 * Products Widget Template
 */
?>
<div id="<?php echo esc_attr($id);?>" class="<?php echo esc_attr( $class );?>">	
	<?php if( ! empty( $title ) ) { ?>
		<div class="section-heading">
			<h2><?php echo esc_html($title); ?></h2>
		</div>
	<?php } ?>
	<ul class="product_list_widget<?php echo esc_attr($widget_css); ?>">
		
		<?php $row = 1;
		while ( $query->have_posts() ) {
			
			$query->the_post();
			if( ( 'slider' == $layout ) && 1 == $row ) { 
				echo '<ul>'; 
			}
			
			wc_get_template( 'content-widget-product.php', $template_args );
			
			if( ( 'slider' == $layout ) && ( $row == $rows || $query->current_post+1 == $query->post_count ) ){ 
				$row=0; 
				echo '</ul>'; 
			} 
			$row++;
		}
		wp_reset_postdata(); ?>
		
	</ul>
</div>