{% doc %} Renders the Glow Army rewards page. When the Glow Army section renders this snippet, its settings and blocks are used. On the default page template it falls back to the theme copy. @example {% render 'glow-army-page' %} {% enddoc %} {% liquid assign glow_editor = false if section.type == 'glow-army' assign glow_editor = true endif assign heading = 'glow_army.heading' | t if glow_editor if section.settings.heading != blank assign heading = section.settings.heading endif endif assign intro = 'glow_army.text' | t assign join_label = 'glow_army.join' | t assign points_label = 'glow_army.points' | t assign join_url = routes.account_register_url assign points_url = routes.account_url assign how_heading = 'glow_army.how' | t assign earn_heading = 'glow_army.earn' | t assign redeem_heading = 'glow_army.redeem' | t assign referral_heading = 'glow_army.referral_heading' | t assign referral_text = 'glow_army.referral_text' | t assign referral_button = 'glow_army.referral_button' | t assign referral_url = join_url if glow_editor if section.settings.text != blank assign intro = section.settings.text endif if section.settings.join_label != blank assign join_label = section.settings.join_label endif if section.settings.points_label != blank assign points_label = section.settings.points_label endif if section.settings.join_link != blank assign join_url = section.settings.join_link endif if section.settings.points_link != blank assign points_url = section.settings.points_link endif if section.settings.how_heading != blank assign how_heading = section.settings.how_heading endif if section.settings.earn_heading != blank assign earn_heading = section.settings.earn_heading endif if section.settings.redeem_heading != blank assign redeem_heading = section.settings.redeem_heading endif if section.settings.referral_heading != blank assign referral_heading = section.settings.referral_heading endif if section.settings.referral_text != blank assign referral_text = section.settings.referral_text endif if section.settings.referral_button != blank assign referral_button = section.settings.referral_button endif if section.settings.referral_link != blank assign referral_url = section.settings.referral_link endif endif %}

{{ heading }}

{{ intro }}

{% if section.blocks.size > 0 %}
{% assign step_count = 0 %} {% assign earn_count = 0 %} {% assign reward_count = 0 %} {% for block in section.blocks %} {% if block.type == 'step' %} {% assign step_count = step_count | plus: 1 %} {% endif %} {% if block.type == 'earn' %} {% assign earn_count = earn_count | plus: 1 %} {% endif %} {% if block.type == 'reward' %} {% assign reward_count = reward_count | plus: 1 %} {% endif %} {% endfor %} {% if step_count > 0 %}

{{ how_heading }}

    {% for block in section.blocks %} {% if block.type == 'step' %}
  1. {{ block.settings.number }}

    {{ block.settings.title }}

    {{ block.settings.text }}

  2. {% endif %} {% endfor %}
{% endif %} {% if earn_count > 0 %}

{{ earn_heading }}

    {% for block in section.blocks %} {% if block.type == 'earn' %}
  • {{ block.settings.title }}

    {{ block.settings.text }}

  • {% endif %} {% endfor %}
{% endif %} {% if reward_count > 0 %}

{{ redeem_heading }}

    {% for block in section.blocks %} {% if block.type == 'reward' %}
  • {% if block.settings.image != blank %} {{ block.settings.image | image_url: width: 160 | image_tag: class: 'glow-army__reward-image', alt: block.settings.title, widths: '80, 160', loading: 'lazy' }} {% endif %}

    {{ block.settings.title }}

    {{ block.settings.text }}

  • {% endif %} {% endfor %}
{% endif %}
{% else %}

{{ how_heading }}

  1. 01

    {{ 'glow_army.steps.one_title' | t }}

    {{ 'glow_army.steps.one_text' | t }}

  2. 02

    {{ 'glow_army.steps.two_title' | t }}

    {{ 'glow_army.steps.two_text' | t }}

  3. 03

    {{ 'glow_army.steps.three_title' | t }}

    {{ 'glow_army.steps.three_text' | t }}

{{ earn_heading }}

  • {{ 'glow_army.earn_items.order_title' | t }}

    {{ 'glow_army.earn_items.order_text' | t }}

  • {{ 'glow_army.earn_items.birthday_title' | t }}

    {{ 'glow_army.earn_items.birthday_text' | t }}

  • {{ 'glow_army.earn_items.review_title' | t }}

    {{ 'glow_army.earn_items.review_text' | t }}

  • {{ 'glow_army.earn_items.profile_title' | t }}

    {{ 'glow_army.earn_items.profile_text' | t }}

{{ redeem_heading }}

  • {{ 'glow_army.rewards.rate_title' | t }}

    {{ 'glow_army.rewards.rate_text' | t }}

  • {{ 'glow_army.rewards.off_50_title' | t }}

    {{ 'glow_army.rewards.off_50_text' | t }}

  • {{ 'glow_army.rewards.balm_title' | t }}

    {{ 'glow_army.rewards.balm_text' | t }}

  • {{ 'glow_army.rewards.off_100_title' | t }}

    {{ 'glow_army.rewards.off_100_text' | t }}

  • {{ 'glow_army.rewards.toner_title' | t }}

    {{ 'glow_army.rewards.toner_text' | t }}

  • {{ 'glow_army.rewards.off_200_title' | t }}

    {{ 'glow_army.rewards.off_200_text' | t }}

  • {{ 'glow_army.rewards.off_300_title' | t }}

    {{ 'glow_army.rewards.off_300_text' | t }}

  • {{ 'glow_army.rewards.sunscreen_title' | t }}

    {{ 'glow_army.rewards.sunscreen_text' | t }}

{% endif %}

{{ referral_heading }}

{{ referral_text }}

{{ referral_button }}