{% if theme.hero_image != blank or theme.hero_welcome_text != blank %}
{% if theme.hero_image != blank %}
{% endif %}
{% if theme.hero_welcome_text != blank or theme.hero_button_text != blank %}
{% endif %}
{% if theme.hero_welcome_text != blank %}
{% endif %}
{{ theme.hero_welcome_text }}
{% endif %}
{% if theme.hero_button_text != blank %}{{ theme.hero_button_text }}{% endif %}
{% if theme.featured_products > 0 %}
{% if paginate.pages > 1 %}
{% if theme.all_products_button_text != blank %}{{ theme.all_products_button_text }}{% endif %}
{% endif %}
{% else %}
{% endif %}
{% endpaginate %}
{% endif %}
{% if theme.show_home_page_categories and categories.active.size > 0 %}
{{ theme.featured_header }}
{% paginate products from products.current by theme.featured_products order:theme.featured_order %} {% assign num_results = paginate.items %} {% if paginate.next.is_link %} {% assign num_results = paginate.current_offset | plus: paginate.page_size %} {% endif %} {% if products != blank %}
{% for product in products %}
{% assign image_width = product.image.width | times: 1.0 %}
{% assign image_height = product.image.height | times: 1.0 %}
{% assign aspect_ratio = image_width | divided_by: image_height %}
{% assign product_status = '' %}
{% case product.status %}
{% when 'active' %}
{% if product.on_sale %}{% assign product_status = 'On sale' %}{% endif %}
{% when 'sold-out' %}
{% assign product_status = 'Sold out' %}
{% when 'coming-soon' %}
{% assign product_status = 'Coming soon' %}
{% endcase %}
{% capture image_class %}
{% if product.image.height > product.image.width %}
image-tall
{% elsif product.image.height < product.image.width %}
image-wide
{% else %}
image-square
{% endif %}
{% endcapture %}
{% endfor %}
{% if theme.home_page_categories_header %}
{% endif %}
{{ theme.home_page_categories_header }}
{% endif %}
{% for category in categories.active %}
{% endfor %}