{strip}
{if $theme_settings.slider_type == 'two'}
{if $wa->photos}
{$slider_photo = $wa->photos->photos($theme_settings.slider_photo)}
{if $slider_photo}
{if $theme_settings.slider_tabs}
{foreach $slider_photo as $photo}
- {$photo.name}
{/foreach}
{/if}
{else}
{foreach $slider_product as $slider}
-
{$wa->shop->productImgHtml($slider, '400', ['alt' => $slider.name, 'default' => "`$wa_theme_url`img/no-foto-catalog.gif"])}
{$badge_html = $wa->shop->badgeHtml($slider.badge)}
{if $badge_html}
{$badge_html}
{if $slider.compare_price > 0}
{$percent = 100-($slider.price/$slider.compare_price)*100}-{$percent|round:0}%
{/if}
{else}
{if $slider.compare_price > 0}
{$percent = 100-($slider.price/$slider.compare_price)*100}-{$percent|round:0}%
{/if}
{/if}
{strip_tags($slider.name)|truncate:300}
{$rating = $wa->shop->ratingHtml($slider.rating, 16)}
{if $rating}
{$rating}
{else}
{/if}
{strip_tags($slider.summary)|escape|truncate:100}
{shop_currency($slider.price)}
{/foreach}
{if $slider_product|count > 1}
{/if}
{if $theme_settings.slider_tabs}
{foreach $slider_product as $slider}
-
{if $slider_product|count > 6}
{strip_tags($slider.name)|truncate:55}
{else}
{strip_tags($slider.name)|truncate:85}
{/if}
{/foreach}
{/if}
{else}
{include file="`$wa_active_theme_path`/list-thumbs.html" products=$promos}
{/if}
{$promocards = $wa->shop->promos()}
{if $promocards}