Skip to content
This repository has been archived by the owner on Jul 19, 2021. It is now read-only.

Commit

Permalink
Update for accessible payment icons (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Berthe authored May 22, 2017
1 parent db87a22 commit 09dfc0b
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 6 deletions.
3 changes: 2 additions & 1 deletion src/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,8 @@
},
"footer": {
"social_platform": "{{ name }} auf {{ platform }}",
"copyright": "Urheberrecht"
"copyright": "Urheberrecht",
"payment_methods": "Akzeptierte Zahlungsarten"
}
},
"products": {
Expand Down
3 changes: 2 additions & 1 deletion src/locales/en.default.json
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,8 @@
},
"footer": {
"social_platform": "{{ name }} on {{ platform }}",
"copyright": "Copyright"
"copyright": "Copyright",
"payment_methods": "Payment methods accepted"
}
},
"products": {
Expand Down
3 changes: 2 additions & 1 deletion src/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,8 @@
},
"footer": {
"social_platform": "{{ name }} en {{ platform }}",
"copyright": "Derechos de autor"
"copyright": "Derechos de autor",
"payment_methods": "Medios de pago aceptados"
}
},
"products": {
Expand Down
3 changes: 2 additions & 1 deletion src/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,8 @@
},
"footer": {
"social_platform": "{{ name }} sur {{ platform }}",
"copyright": "Droit d'auteur"
"copyright": "Droit d'auteur",
"payment_methods": "Méthodes de paiement acceptées"
}
},
"products": {
Expand Down
3 changes: 2 additions & 1 deletion src/locales/pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,8 @@
},
"footer": {
"social_platform": "{{ name }} em {{ platform }}",
"copyright": "Direitos autorais"
"copyright": "Direitos autorais",
"payment_methods": "Métodos de pagamento aceitos"
}
},
"products": {
Expand Down
3 changes: 2 additions & 1 deletion src/locales/pt-PT.json
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,8 @@
},
"footer": {
"social_platform": "{{ name }} na {{ plataform }}",
"copyright": "Direitos autorais"
"copyright": "Direitos autorais",
"payment_methods": "Métodos de pagamento aceites"
}
},
"products": {
Expand Down
2 changes: 2 additions & 0 deletions src/sections/footer.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@
{% unless shop.enabled_payment_types == empty %}
{%- assign payment_icons_available = 'amazon_payments,american_express,apple_pay,bitcoin,cirrus,dankort,diners_club,discover,dogecoin,dwolla,forbrugsforeningen,interac,jcb,litecoin,maestro,master,paypal,visa' | split: ',' -%}

<span class="visually-hidden">{{ 'layout.footer.payment_methods' | t }}</span>
<ul class="payment-icons">
{% for type in shop.enabled_payment_types %}
{% if payment_icons_available contains type %}
<li>
{%- assign icon_name = type | prepend: 'icon-' -%}
{% include icon_name %}
<span class="visually-hidden">{{ type | capitalize | replace: '_', ' ' }}</span>
</li>
{% endif %}
{% endfor %}
Expand Down

0 comments on commit 09dfc0b

Please sign in to comment.