Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 64 additions & 13 deletions config/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@
],
"type": "select"
}
]
],
"default": null
},
{
"key": "colors",
Expand Down Expand Up @@ -298,7 +299,8 @@
],
"type": "select"
}
]
],
"default": null
},
{
"key": "social_media",
Expand Down Expand Up @@ -336,7 +338,8 @@
"key": "social_linkedin_url",
"type": "text"
}
]
],
"default": null
},
{
"key": "header",
Expand Down Expand Up @@ -409,7 +412,8 @@
"key": "headerTopURL",
"type": "text"
}
]
],
"default": null
},
{
"key": "homepage",
Expand Down Expand Up @@ -841,7 +845,8 @@
"key": "homepage_blog",
"type": "blog"
}
]
],
"default": null
},
{
"key": "pages",
Expand Down Expand Up @@ -894,7 +899,8 @@
],
"type": "select"
}
]
],
"default": null
},
{
"key": "blogs",
Expand All @@ -911,7 +917,8 @@
"key": "articleRelated",
"type": "checkbox"
}
]
],
"default": null
},
{
"key": "products",
Expand Down Expand Up @@ -959,7 +966,8 @@
"key": "ppRelatedProducts",
"type": "checkbox"
}
]
],
"default": null
},
{
"key": "collections",
Expand Down Expand Up @@ -1025,7 +1033,8 @@
],
"type": "select"
}
]
],
"default": null
},
{
"key": "shop",
Expand Down Expand Up @@ -1066,7 +1075,8 @@
"key": "coPaymentCard",
"type": "checkbox"
}
]
],
"default": null
},
{
"key": "restricted",
Expand Down Expand Up @@ -1341,7 +1351,8 @@
"key": "closedSocialTrue",
"type": "checkbox"
}
]
],
"default": null
},
{
"key": "footer",
Expand Down Expand Up @@ -1426,8 +1437,48 @@
"caption": "Button text",
"key": "footerButtonText",
"type": "text"
},
{
"caption": "Payment options",
"key": "footer_payment_header",
"type": "header"
},
{
"caption": "Show payment options",
"default": false,
"key": "footer_payment_enable",
"type": "checkbox"
},
{
"caption": "Payment text",
"default": "We accept",
"key": "footer_payment_text",
"type": "text"
},
{
"caption": "Payment methods",
"key": "footer_payment_methods",
"settings": [
{
"caption": "Payment name",
"key": "name",
"type": "text"
},
{
"caption": "Logo",
"key": "logo",
"type": "image"
},
{
"caption": "Logo alt text",
"key": "alt",
"type": "text"
}
],
"type": "struct"
}
]
],
"default": null
}
]
}
}
27 changes: 27 additions & 0 deletions snippets/siteFooter.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,33 @@
<div class="place-self-stretch grid place-items-center">
{% if settings.footerButtonEnabled %}<a href="{{ settings.footerButtonURL }}" class="btn btn-lg btn-primary">{{ settings.footerButtonText | t:'default' }}</a>{% endif %}
</div>
{% if settings.footer_payment_enable %}
<div class="mt-8 flex flex-col items-center gap-4" aria-label="Accepted payment methods">
<p class="font-semibold">
{{ settings.footer_payment_text | t:'default' }}
</p>

<ul class="flex flex-wrap gap-4 list-none p-0 m-0">
{% for method in settings.footer_payment_methods %}
{% if method.logo %}
<li>
<img
src="{{ method.logo | asset_img_url:'120','0' }}"
alt="{{ method.alt }}"
loading="lazy"
class="w-auto object-contain opacity-90"
style="height: 22px;"
>




</li>
{% endif %}
{% endfor %}
</ul>
</div>
{% endif %}
</footer>
<footer class="footer-horizontal p-2 pb-4 max-w-8xl mx-auto container">
<p class="text-sm">{{ 'Copyright &copy;' | t:'default' }} {{ site.name }} - {{ 'All rights reserved' | t:'default'}}</p>
Expand Down