{* Mobile product image *}
{$shop_desktop = waRequest::cookie('shop_desktop')}
{if $wa->isMobile() && $shop_desktop != '1'}
{if $product.images}
{$wa->shop->badgeHtml($product.badge)}
{if count($product.images) > 1 || (count($product.images) === 1)}
1} class="product-dialog-image" style="display:none;"{/if}>
{foreach $product.images as $image}
{$wa->shop->imgHtml($image, $theme_settings.product_image_size, [ 'alt' => $product.name|escape, 'id' => 'product-image-'|cat:$image.id, 'data-slide' => $image@iteration-1 ])}
{if $image.description}
{$image.description}
{/if}
{/foreach}
{$video = $product->video}
{if $video}
{/if}
{else}
{$wa->shop->productImgHtml($product, $theme_settings.product_image_size, ['id' => 'product-image', 'alt' => $product.name|escape ])}
{/if}
{else}
{/if}
{else}
{* Desktop product image *}
{if method_exists($product, 'getVideo')}
{$video = $product->video}
{if $video}
{if !empty($video.images[0])}
{$_thumb = $video.images[0]}
{$_absolute_thumb_uri = "{$wa->url(true)}{$_thumb|substr:1}"}
{/if}
{/if}
{else}
{$video = null}
{/if}
{if $product.images}
{$wa->shop->badgeHtml($product.badge)}
{if $theme_settings.product_zoom}
{$wa->shop->productImgHtml($product, $theme_settings.product_image_size, [ class => 'zoom-image-elevate', 'data-zoom-image' => $wa->shop->productImgUrl($product, "970"), 'itemprop' => 'image', 'id' => 'product-image', 'alt' => $product.name|escape])}
{else}
{$wa->shop->productImgHtml($product, $theme_settings.product_image_size, [ 'itemprop' => 'image', 'id' => 'product-image', 'alt' => $product.name|escape])}
{/if}
[`Click image for a larger view`]
{if $theme_settings.product_galery == 1}
{if count($product.images) > 1 || (count($product.images) === 1 && $video)}
{foreach $product.images as $image}
{/foreach}
{if $video}
{/if}
{/if}
{else}
{if count($product.images) > 1 || (count($product.images) === 1 && $video)}
{foreach $product.images as $image}
{/foreach}
{if $video}
{/if}
{/if}
{/if}
{else}
{/if}
{/if}
{$favorite_p = waRequest::cookie("shop_favorite", '', waRequest::TYPE_STRING)}
{assign var=favorite_p_split value=","|explode:$favorite_p}
{$sku = $product.skus[$product.sku_id]}
{if $sku.sku}
[`Code`]: {$sku.sku|escape}
{/if}
{if !empty($product.rating) && $product.rating > 0}
{$wa->shop->ratingHtml($product.rating, 16)}
{else}
{/if}
{$product.name|escape}
{* @event frontend_product.%plugin_id%.block_aux *}
{if !empty($frontend_product)}
{foreach $frontend_product as $_}{$_.block_aux}{/foreach}
{/if}
{if $theme_settings.product_share}
{/if}
{if !empty($product.categories)}
{if count($product.categories) > 1}
[`Categories`]: {foreach $product.categories as $c}{if $c.status}
{$c.name|escape} {/if}{/foreach}
{else}
[`Category`]: {foreach $product.categories as $c}{if $c.status}
{$c.name|escape} {/if}{/foreach}
{/if}
{/if}
{if $product.tags}
{/if}