{{ 'section-footer-v4.css' | asset_url | stylesheet_tag }}

{% comment %} Add padding bottom for toolbar mobile {% endcomment %}
{% if template != 'product' %}
  {% assign pb_mobile = '--pb-mobile: 53px' %}
{% else %}
  {% assign pb_mobile = '' %}
{% endif %}

<footer {% render 'section-attr', style: pb_mobile %}>
  <div class='footer-v24'>
    <xo-container {% render 'section-layout' %}>
      <xo-grid class='footer-v24-bar'>
        <div class='footer-v24-bar__left' style='--xs: 12;--sm: 12; --order-sm: 1; --lg: 6; --order-lg: 1; --xxl: 3; --order-xxl: 1;'>
          {%- if section.settings.show_list_icon -%}
            <div class='footer-v24-bar__list-icon'>
              {% if section.settings.icon_fb != blank %}
                <a href='{{section.settings.icon_fb }}' class='footer-v24-bar__item'>{{ section.settings.icon_fb }}</a>
              {% endif %}
              {% if section.settings.icon_yt != blank %}
                <a href='{{section.settings.icon_yt }}' class='footer-v24-bar__item'>{{ section.settings.icon_yt }}</a>
              {% endif %}
              {% if section.settings.icon_ig != blank %}
                <a href='{{section.settings.icon_ig }}' class='footer-v24-bar__item'>{{ section.settings.icon_ig }}</a>
              {% endif %}
            </div>
          {%- endif -%}
        </div>

        <div class='footer-v24-bar__center' style='--xs: 12; --sm: 12; --order-sm: 3; --lg: 12; --order-lg: 3;  --xxl: 6; --order-xxl: 2;'>
          {%- if section.settings.menu -%}
            {%- for link in section.settings.menu.links -%}
              <a
                href='{{ link.url }}'
              >
                {{ link.title }}
              </a>
            {%- endfor -%}
          {%- endif -%}
        </div>

        <div class='footer-v24-bar__right' style='--xs: 12; --sm: 12; --order-sm: 3; --lg: 6; --order-lg: 2;--xxl: 3; --order-xxl: 3;'>
          {% if section.settings.show_list_method_payment %}
            <div class='footer__bottom--right'>
              <div class='footer-v24__copyright-payment'>
                {%- if section.settings.image_payment -%}
                  {% render 'image', image: section.settings.image_payment %}
                {%- endif -%}
              </div>
            </div>
          {% endif %}
        </div>
      </xo-grid>
      {% comment %} content bottom cua theme {% endcomment %}
    </xo-container>
  </div>
  <div class='footer-v24__content-bottom'>
    <div class='footer__bottom'>
      <div class='footer-v24__copyright'>
        {% if section.settings.copyright != blank %}
          {{- section.settings.copyright -}}
        {% else %}
          <small class='footer-v24__copyright-content'>&copy; Copyright {{ 'now' | date: '%Y' }} | {{ shop.name | link_to: routes.root_url -}}</small>
          <small class='footer-v24__copyright-content'> By <a class='footer-v24__copyright-shopilaunch' href='https://shopilaunch.com/'> ShopiLaunch.</a> </small>
          <small class='footer-v24__copyright-content footer-v24__copyright-content--black'>{{ powered_by_link }}.</small>
        {% endif %}
      </div>
    </div>
  </div>
</footer>

{% schema %}
{
  "name": "t:sections.footer_v4.name",
  "class": "section-footer",
  "settings": [
    {
      "type": "select",
      "id": "width",
      "label": "t:sections.all.width.label",
      "default": "box",
      "options": [
        {
          "value": "box",
          "label": "t:sections.all.width.options__1.label"
        },
        {
          "value": "wide",
          "label": "t:sections.all.width.options__2.label"
        },
        {
          "value": "fullwidth",
          "label": "t:sections.all.width.options__3.label"
        },
        {
          "value": "sidepadding",
          "label": "t:sections.all.width.options__4.label"
        }
      ]
    },
    {
      "type": "checkbox",
      "id": "show_list_icon",
      "default": true,
      "label": "t:sections.footer_v4.settings.show_list_icon.label"
    },
    {
      "type": "checkbox",
      "id": "show_list_method_payment",
      "default": true,
      "label": "t:sections.footer_v4.settings.show_list_method_payment.label"
    },
    {
      "type": "html",
      "id": "icon_fb",
      "label": "t:sections.footer_v4.blocks.text.settings.item_icon1.label",
      "default": "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"16\" width=\"10\" viewbox=\"0 0 320 512\"><path d=\"M80 299.3V512H196V299.3h86.5l18-97.8H196V166.9c0-51.7 20.3-71.5 72.7-71.5c16.3 0 29.4 .4 37 1.2V7.9C291.4 4 256.4 0 236.2 0C129.3 0 80 50.5 80 159.4v42.1H14v97.8H80z\"></path></svg>"
    },
    {
      "type": "url",
      "id": "button_link5",
      "label": "t:sections.footer_v4.blocks.text.settings.icon_link1.label"
    },
    {
      "type": "html",
      "id": "icon_yt",
      "label": "t:sections.footer_v4.blocks.text.settings.item_icon2.label",
      "default": "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"16\" width=\"18\" viewBox=\"0 0 576 512\"><path d=\"M549.7 124.1c-6.3-23.7-24.8-42.3-48.3-48.6C458.8 64 288 64 288 64S117.2 64 74.6 75.5c-23.5 6.3-42 24.9-48.3 48.6-11.4 42.9-11.4 132.3-11.4 132.3s0 89.4 11.4 132.3c6.3 23.7 24.8 41.5 48.3 47.8C117.2 448 288 448 288 448s170.8 0 213.4-11.5c23.5-6.3 42-24.2 48.3-47.8 11.4-42.9 11.4-132.3 11.4-132.3s0-89.4-11.4-132.3zm-317.5 213.5V175.2l142.7 81.2-142.7 81.2z\"/></svg>"
    },
    {
      "type": "url",
      "id": "button_link6",
      "label": "t:sections.footer_v4.blocks.text.settings.icon_link2.label"
    },
    {
      "type": "html",
      "id": "icon_ig",
      "label": "t:sections.footer_v4.blocks.text.settings.item_icon3.label",
      "default": "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"16\" width=\"14\" viewbox=\"0 0 448 512\"><path d=\"M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z\"></path></svg>"
    },
    {
      "type": "url",
      "id": "button_link7",
      "label": "t:sections.footer_v4.blocks.text.settings.icon_link3.label"
    },
    {
      "type": "image_picker",
      "id": "image_payment",
      "label": "t:sections.footer_v4.settings.image_payment.label",
      "info": "t:sections.footer_v4.settings.info.label"
    },
    {
      "type": "link_list",
      "id": "menu",
      "label": "t:sections.footer_v4.blocks.link_list.name"
    },
    {
      "type": "liquid",
      "id": "copyright",
      "label": "t:sections.footer_v4.settings.copyright.label",
      "default": " © Copyright {{ 'now' | date: '%Y' }} | <a href='http://dessy-store-newdemo.myshopify.com' rel='nofollow' target='_blank' class='footer-v24__theme-name'>Dessy</a> By <a href='https://shopilaunch.com/' rel='nofollow' target='_blank' class='footer-v24__shop-name'> ShopiLaunch.</a><a href='https://shopify.pxf.io/9gPaY0' rel='nofollow' target='_blank' class='footer-v24__powered-shopify'> Powered by Shopify.</a>"
    },
    {
      "type": "header",
      "content": "t:sections.all.heading.content"
    },
    {
      "type": "color_scheme",
      "id": "color_scheme",
      "label": "t:sections.all.color_scheme.label"
    },
    {
      "type": "color",
      "id": "background_color",
      "label": "t:sections.all.bg_color.label"
    },
    {
      "type": "color_background",
      "id": "background_gradient",
      "label": "t:sections.all.bg_gradient.label"
    },
    {
      "type": "number",
      "id": "padding_top",
      "label": "t:sections.all.padding_top.label",
      "default": 50
    },
    {
      "type": "number",
      "id": "padding_bottom",
      "label": "t:sections.all.padding_bottom.label",
      "default": 50
    }
  ],
  "presets": [
    {
      "name": "t:sections.footer_v4.presets.name"
    }
  ]
}
{% endschema %}
