UNPKG

apostrophe

Version:

The Apostrophe Content Management System.

19 lines (17 loc) 819 B
{%- macro button(options) -%} <a href="{% if options.url %}{{options.url }}{% else %}#{% endif %}"{% if options.dataAttrs %} {{ options.dataAttrs }}{% endif %}{# #} class="apos-progress-btn{# #}{% if options.float %} apos-progress-btn--float-{{options.float}}{% endif %}{# #}{% if options.color %} apos-progress-btn--{{options.color}}{% endif %}{# #}{% if options.arrow %} apos-progress-btn--arrow-{{options.arrow}}{% endif %}{# #}"> {# BUG: won't match if there is nore than one data attribute #} {# present in the string #} {%- if options.dataAttrs == 'data-save' -%} <span class="apos-progress-btn-spinner"> <img src="/modules/apos/images/small-spinner.gif"> </span> {%- endif -%} {{ __ns('apostrophe', options.label | d('')) }} </a> {%- endmacro -%}