';
$i = 0;
$items = array();
while( $loop->have_posts() ) : $loop->the_post();
global $product;
$thumb_id = get_post_thumbnail_id(get_the_ID());
$image_url = get_the_post_thumbnail_url(get_the_ID(), 'full');
if(!$image_url) {
$image_url = get_template_directory_uri().'/images/no-image.png';
}
$alt = get_post_meta($thumb_id, '_wp_attachment_image_alt', true);
$link = get_permalink();
$title = get_the_title();
$content = get_the_excerpt();
$price = $product->get_price_html();
$product_meta = true;
$color = '#000';
$active = '';
if ( $i < 1 ) $active = 'active';
echo '
';
$active = '';
echo '
';
echo '
';
if( $product_meta ) {
echo '
';
}
echo '
';
echo '
';
//item end
array_push($items, $i);
$i++;
endwhile;
//indicators, navigation
if($i>1) {
echo '
';
$active = 'active';
echo '
';
$s = 0;
foreach ($items as $item) {
echo '';
$active = '';
$s++;
}
echo '
';
//indicators end
}//indicators, navigation
echo '