templates/includes/blocks/actions.html.twig line 1

  1. {% if content.actionsLinkedItem == 'actionsModal' %}
  2. <div class="modal" :class="{'modal--show': show}" x-data="modal">
  3.     <div class="actions  {% if content.centered %} actions--center {% endif %}  {{ content.top }} {{ content.bottom }}
  4.    {% if content.inverted %} actions--inverted {% endif %}">
  5.         <div class="actions__container">
  6.             {% include('/includes/popup-cta.html.twig') with { 'label': content.actionsButtonLabel } %}
  7.         </div>
  8.     </div>
  9.     {% if content.actionsDownloadFormBlock %}
  10.         {% include('/includes/blocks/' ~ content.actionsDownloadFormBlock.type ~ '.html.twig') with { content: content.actionsDownloadFormBlock, view: view.actionsDownloadFormBlock } %}
  11.     {% endif %}
  12. </div>
  13. {% elseif content.actionsActionLink %}
  14.     <div class="actions  {% if content.centered %} actions--center {% endif %}  {{ content.top }} {{ content.bottom }}
  15.            {% if content.inverted %} actions--inverted {% endif %}">
  16.         <div class="actions__container">
  17.             {% if content.actionsButtonType == 'box' %}
  18.                 <a href="{{ content.actionsActionLink }}"
  19.                    class="button button--{{ content.actionsButtonColor }} button--size-{{ content.actionsButtonSize }}">
  20.                 <span class="button__inner">
  21.                   {{ content.actionsButtonLabel }}
  22.                 </span>
  23.                 </a>
  24.             {% elseif content.actionsButtonType == 'text' %}
  25.                 <a href="{{ content.actionsActionLink }}"
  26.                    class="text-button text-button--{{ content.actionsTextButtonColor }}
  27.                      {% if content.uppercase %} uppercase {% endif %}">
  28.                     {{ content.actionsButtonLabel }}
  29.                     <svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16">
  30.                         <path d="M.5 8.5h15M10.5 3.5l5 5-5 5" stroke="currentColor" stroke-miterlimit="10"
  31.                               stroke-linecap="round" stroke-linejoin="round"/>
  32.                     </svg>
  33.                 </a>
  34.             {% endif %}
  35.         </div>
  36.     </div>
  37. {% endif %}