{{ '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"
        }
      ]
    },
    {
      "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 version=\"1.1\" id=\"Layer_1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewbox=\"0 0 150 150\" style=\"enable-background:new 0 0 150 150;\" height=\"1em\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xml:space=\"preserve\">\n  <g>\n   <path d=\"M131.95,12.84c-5.03,5.87-10.06,11.74-15.1,17.6c-9.93,11.54-19.88,23.07-29.81,34.6c-0.11,0.12-0.2,0.25-0.37,0.47\n     c16.38,23.8,32.77,47.61,49.27,71.57c-0.51,0.03-0.84,0.07-1.18,0.07c-11.35,0-22.7-0.01-34.06,0.02c-0.78,0-1.22-0.24-1.67-0.89\n     c-10.58-15.41-21.18-30.79-31.78-46.18c-0.25-0.36-0.51-0.71-0.82-1.14c-2.93,3.39-5.79,6.7-8.64,10.01\n     c-10.7,12.42-21.41,24.84-32.09,37.28c-0.59,0.68-1.18,0.94-2.07,0.92c-3.07-0.05-6.15-0.02-9.54-0.02\n     c15.95-18.51,31.74-36.82,47.57-55.19c-2.56-3.72-5.09-7.41-7.63-11.1C40.93,51.86,27.85,32.87,14.78,13.88\n     c-0.22-0.33-0.38-0.7-0.57-1.04c12.08,0,24.16,0,36.25,0c0.08,0.14,0.15,0.28,0.24,0.42c10.22,14.85,20.44,29.71,30.67,44.56\n     c0.13,0.19,0.29,0.36,0.5,0.6c0.35-0.38,0.66-0.68,0.94-1.01c11.76-13.64,23.51-27.27,35.26-40.92c1.02-1.18,1.96-2.43,2.94-3.64\n     C124.65,12.84,128.3,12.84,131.95,12.84z M121.13,129.4c-0.24-0.4-0.34-0.58-0.45-0.74C95.71,93.01,70.74,57.36,45.74,21.73\n     c-0.3-0.43-1.04-0.77-1.58-0.77c-4.78-0.06-9.57-0.04-14.35-0.03c-0.26,0-0.53,0.03-0.99,0.06c0.4,0.59,0.68,1.02,0.97,1.44\n     c8.98,12.82,17.97,25.65,26.95,38.47c15.78,22.53,31.57,45.06,47.33,67.61c0.48,0.68,0.97,0.93,1.78,0.92\n     c4.66-0.04,9.32-0.02,13.99-0.02C120.2,129.4,120.55,129.4,121.13,129.4\"></path>\n  </g>\n</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": "html",
      "id": "copyright",
      "label": "t:sections.footer_v4.settings.copyright.label",
      "default": " © Copyright 2024 | <a href='http://engotheme.com' rel='nofollow' target='_blank' class='footer-v24__theme-name'>Engo-theme</a> By <a href='https://shopilaunch.com/' rel='nofollow' target='_blank' class='footer-v24__shop-name'> ShopiLaunch.</a><a href='https://landing.shopilaunch.com/starter/go/' 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 %}
