{* supreme 1.7.3 *} {if empty($theme_settings.debug_disable_shop_frontend_homepage) && empty($theme_settings.debug_disable_shop_all) && empty($theme_settings.debug_disable_all_hooks)} {* @event frontend_homepage.%plugin_id% *} {foreach $frontend_homepage as $_}{$_}{/foreach} {/if} {$theme_color = str_replace('img/themesettings/','', str_replace(array('.png','.jpg','bokeh_','abstract_','sky_'),'', $theme_settings.color_scheme))} {if $theme_settings.homepage_bxslider_type == 'stacked' && $theme_settings.sidebar_show_homepage} {include file="`$wa_active_theme_path`/banner.html" inline} {/if} {if isset($theme_settings.homepage_bullets_enabled)} {$homepage_bullets_enabled = $theme_settings.homepage_bullets_enabled} {else} {$homepage_bullets_enabled = true} {/if} {if $homepage_bullets_enabled} {if $wa->block('supreme.home.services') && empty($theme_settings.debug_disable_block_home) && empty($theme_settings.debug_disable_all_blocks)} {$wa->block('supreme.home.services')} {else}
{if $theme_settings.homepage_bullet_1_link !== ''} {/if}
{if $theme_settings.homepage_bullets_type == "image_icons"} {if $theme_settings.homepage_bullet_1_icon_img} {else} {* site img/icon1.svg *} {/if} {else if $theme_settings.homepage_bullets_type == "fa_icons"} {if $theme_settings.homepage_bullet_1_icon_fa} {/if} {/if}
{$theme_settings.homepage_bullet_1_title}

{$theme_settings.homepage_bullet_1_body}

{if $theme_settings.homepage_bullet_1_link !== ''}
{/if}
{if $theme_settings.homepage_bullet_2_link !== ''} {/if}
{if $theme_settings.homepage_bullets_type == "image_icons"} {if $theme_settings.homepage_bullet_2_icon_img} {else} {* site img/icon2.svg *} {/if} {else if $theme_settings.homepage_bullets_type == "fa_icons"} {if $theme_settings.homepage_bullet_2_icon_fa} {/if} {/if}
{$theme_settings.homepage_bullet_2_title}

{$theme_settings.homepage_bullet_2_body}

{if $theme_settings.homepage_bullet_2_link !== ''}
{/if}
{if $theme_settings.homepage_bullet_3_link !== ''} {/if}
{if $theme_settings.homepage_bullets_type == "image_icons"} {if $theme_settings.homepage_bullet_3_icon_img} {else} {* site img/icon3.svg *} {/if} {else if $theme_settings.homepage_bullets_type == "fa_icons"} {if $theme_settings.homepage_bullet_3_icon_fa} {/if} {/if}
{$theme_settings.homepage_bullet_3_title}

{$theme_settings.homepage_bullet_3_body}

{if $theme_settings.homepage_bullet_3_link !== ''}
{/if}
{/if} {/if} {if $wa->block('supreme.home.under.services') && empty($theme_settings.debug_disable_block_home) && empty($theme_settings.debug_disable_all_blocks)} {$wa->block('supreme.home.under.services')} {/if} {if isset($theme_settings.show_categories_on_homepage) && $theme_settings.show_categories_on_homepage != 'no'} {$home_categories = []} {if $theme_settings.show_categories_on_homepage == 'all'} {*only first level*} {$home_categories_all = $wa->shop->categories(0, null, true, true)} {foreach $home_categories_all as $hc} {if !isset($hc.params.show_on_homepage) || (isset($hc.params.show_on_homepage) && $hc.params.show_on_homepage != 'false' && $hc.params.show_on_homepage != '0')} {$home_categories[] = $hc} {/if} {/foreach} {elseif $theme_settings.show_categories_on_homepage == 'selected'} {*selected from all levels*} {$home_categories_all = $wa->shop->categories(0, null, false, true)} {foreach $home_categories_all as $hc} {if isset($hc.params.show_on_homepage) && ($hc.params.show_on_homepage == 'true' || $hc.params.show_on_homepage == '1')} {$home_categories[] = $hc} {/if} {/foreach} {/if} {$home_categories_view = $theme_settings.home_categories_view|default:'grid'} {if $home_categories}
{if $theme_settings.show_categories_on_homepage == 'all'}
[`Categories`]
{elseif $theme_settings.show_categories_on_homepage == 'selected'}
[`Popular categories`]
{/if} {if $home_categories_view == 'slider'} {include file="`$wa_active_theme_path`/categories.slider.html" categories=$home_categories inline} {elseif $home_categories_view == 'grid'} {include file="`$wa_active_theme_path`/categories.grid.html" categories=$home_categories inline} {else} {include file="`$wa_active_theme_path`/categories.compact.html" categories=$home_categories inline} {/if}
{/if} {/if} {$hp_set_default_limit = 50} {if $theme_settings.homepage_productset1_show} {$hp_set1_limit = $theme_settings.homepage_productset1_limit|default:36} {if $hp_set1_limit > $hp_set_default_limit || $hp_set1_limit == 0} {$hp_set1_limit = $hp_set_default_limit} {/if} {$hp_set1 = $wa->shop->productSet($theme_settings.homepage_productset1_id, 0, $hp_set1_limit)} {$hp_set1_view = $theme_settings.homepage_productset1_view|default:'slider'} {if $hp_set1} {if isset($theme_settings.homepage_productset1_random) && $theme_settings.homepage_productset1_random} {$hp_set1_shuffle = true} {else} {$hp_set1_shuffle = false} {/if}
{$theme_settings.homepage_productset1_name}
{include file="products-list.html" products=$hp_set1 catalog_view=$hp_set1_view shuffle=$hp_set1_shuffle}
{else}

{sprintf('[`In your store backend, drag some products into %s product list (which is in the left sidebar of the Products screen), and these products will be automatically published here — right on your storefront homepage.`]',"`$theme_settings.homepage_productset1_id`")}

{/if} {/if} {if $theme_settings.homepage_productset2_show} {$hp_set2_limit = $theme_settings.homepage_productset2_limit|default:36} {if $hp_set2_limit > $hp_set_default_limit || $hp_set2_limit == 0} {$hp_set2_limit = $hp_set_default_limit} {/if} {$hp_set2 = $wa->shop->productSet($theme_settings.homepage_productset2_id, 0, $hp_set2_limit)} {$hp_set2_view = $theme_settings.homepage_productset2_view|default:'slider'} {if $hp_set2} {if isset($theme_settings.homepage_productset2_random) && $theme_settings.homepage_productset2_random} {$hp_set2_shuffle = true} {else} {$hp_set2_shuffle = false} {/if}
{$theme_settings.homepage_productset2_name}
{include file="products-list.html" products=$hp_set2 catalog_view=$hp_set2_view shuffle=$hp_set2_shuffle}
{else}

{sprintf('[`In your store backend, drag some products into %s product list (which is in the left sidebar of the Products screen), and these products will be automatically published here — right on your storefront homepage.`]',"`$theme_settings.homepage_productset2_id`")}

{/if} {/if} {if $theme_settings.homepage_productset3_show} {$hp_set3_limit = $theme_settings.homepage_productset3_limit|default:36} {if $hp_set3_limit > $hp_set_default_limit || $hp_set3_limit == 0} {$hp_set3_limit = $hp_set_default_limit} {/if} {$hp_set3 = $wa->shop->productSet($theme_settings.homepage_productset3_id, 0, $hp_set3_limit)} {$hp_set3_view = $theme_settings.homepage_productset3_view|default:'slider'} {if $hp_set3} {if isset($theme_settings.homepage_productset3_random) && $theme_settings.homepage_productset3_random} {$hp_set3_shuffle = true} {else} {$hp_set3_shuffle = false} {/if}
{$theme_settings.homepage_productset3_name}
{include file="products-list.html" products=$hp_set3 catalog_view=$hp_set3_view shuffle=$hp_set3_shuffle}
{else}

{sprintf('[`In your store backend, drag some products into %s product list (which is in the left sidebar of the Products screen), and these products will be automatically published here — right on your storefront homepage.`]',"`$theme_settings.homepage_productset3_id`")}

{/if} {/if} {if $wa->block('supreme.home.about') && empty($theme_settings.debug_disable_block_home) && empty($theme_settings.debug_disable_all_blocks)}
{$wa->block('supreme.home.about')}
{else}
{if !empty($theme_settings.homepage_about_title)} {/if} {$theme_settings.homepage_about_body}
{/if}