{* supreme 1.7.3 *} {if $wa->currentUrl(false, true) == $wa_app_url && $theme_settings.homepage_bxslider_mode != 'hidden'} {$slider_type = $theme_settings.homepage_bxslider_type} {if $slider_type == 'stacked' && $theme_settings.sidebar_show_homepage == ''} {$slider_type = 'not_fw'} {/if} {if $theme_settings.homepage_bxslider_mode == 'promos'} {* HOMESLIDER PROMO CARDS *} {$promocards = $wa->shop->promos()} {if isset($theme_settings.homepage_bxslider_height) && $theme_settings.homepage_bxslider_height} {$slider_height = $theme_settings.homepage_bxslider_height} {else} {$slider_height = 360} {/if} {if !empty($theme_settings.site_max_width)} {if $slider_type == 'stacked'} {$slider_width = ($theme_settings.site_max_width + 30) * 0.75 - 30} {else} {$slider_width = $theme_settings.site_max_width} {/if} {else} {if $slider_type == 'stacked'} {$slider_width = 893} {else} {$slider_width = 1200} {/if} {/if} {$slider_ratio = $slider_height / $slider_width * 100} {* slider placeholder *} {if $slider_type == "fw"} {/if}
{if $promocards}
{else}


[`There are no promo cards created in your store or all of them are disabled.`]

{/if}
{else if $theme_settings.homepage_bxslider_mode == 'products'} {* HOMESLIDER PRODUCTS *} {$sliderproducts = $wa->shop->productSet($theme_settings.homepage_productset_slider)} {if $theme_settings.homepage_bxslider_bg == 'color'} {$slider_style = "background: `$theme_settings.homepage_bxslider_bg_color`"} {elseif $theme_settings.homepage_bxslider_bg == 'texture'} {if $theme_settings.homepage_bxslider_bg_tex_custom} {$slider_style = "background: url('`$wa_active_theme_url``$theme_settings.homepage_bxslider_bg_tex_custom`')"} {else} {$slider_style = "background: url('`$wa_parent_theme_url`img/themesettings/bg_tex/`$theme_settings.homepage_bxslider_bg_tex`')"} {/if} {/if}
{if $sliderproducts && count($sliderproducts)}
{foreach $sliderproducts as $b}
{if $b.summary}
{strip_tags($b.summary)|truncate:255}
{/if}
{if $b.compare_price > 0}
{shop_currency_html($b.compare_price)}
{shop_currency_html($b.price)}
{else} {if $b.min_price != $b.max_price}
[`from`] {shop_currency_html($b.min_price)}
{else}
{shop_currency_html($b.price)}
{/if} {/if} [`View details`]
{/foreach}
{else}


{sprintf('[`Product set with the ID %s either does not exist or does not contain any product. Add some products into a product set with the specified ID to make these products featured here.`]',$theme_settings.homepage_productset_slider)}

{/if}
{/if} {/if}