-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfooter-01.liquid
69 lines (60 loc) · 2.11 KB
/
footer-01.liquid
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<footer>
{%- assign social_accounts = 'Facebook, Twitter, Pinterest, Instagram, Snapchat, Tumblr, YouTube, Vimeo,' | split: ', ' -%}
<ul>
{% for social in social_accounts %}
{%- assign social_handle = social | handleize -%}
{% capture social_link %}social_{{ social_handle }}_link{% endcapture %}
{% capture social_icon %}icon-{{ social_handle }}{% endcapture %}
{% if settings[social_link] != blank %}
<li>
<a href="{{ settings[social_link] }}" title="{{ 'layout.footer.social_platform' | t: name: shop.name, platform: social }}">
{% include social_icon %}
<span class="icon-fallback-text">{{ social }}</span>
</a>
</li>
{% endif %}
{% endfor %}
</ul>
{% if section.settings.show_payment_icons %}
{% unless shop.enabled_payment_types == empty %}
<span class="visually-hidden">{{ 'layout.footer.payment_methods' | t }}</span>
<ul class="payment-icons">
{% for type in shop.enabled_payment_types %}
<li>
{{ type | payment_type_svg_tag: class: 'icon' }}
</li>
{% endfor %}
</ul>
{% endunless %}
{% endif %}
{%- assign footer_linklist = section.settings.footer_linklist -%}
{% if linklists[footer_linklist].links.size > 0 %}
<ul>
{% for link in linklists[footer_linklist].links %}
<li><a href="{{ link.url }}">{{ link.title }}</a></li>
{% endfor %}
</ul>
{% endif %}
<div>
<small>{{ 'layout.footer.copyright' | t }} © {{ 'now' | date: "%Y" }}, {{ shop.name | link_to: '/' }}. {{ powered_by_link }}</small>
</div>
</footer>
{% schema %}
{
"name": "Footer",
"settings": [
{
"type": "link_list",
"id": "footer_linklist",
"label": "First menu",
"default": "footer"
},
{
"type": "checkbox",
"id": "show_payment_icons",
"label": "Show payment icons",
"default": false
}
]
}
{% endschema %}