iframe_consent-1.0.x-dev/components/iframe-consent-placeholder/iframe-consent-placeholder.twig

components/iframe-consent-placeholder/iframe-consent-placeholder.twig
{#
/**
 * @file
 * Theme override to display a button with or without icons.
 */
#}

{% set attributes = attributes ?? create_attribute() %}
{% set manage_button_attributes = create_attribute() %}
{% set accept_button_attributes = create_attribute() %}

{%
  set iframe_consent_placeholder_classes = [
  'iframe-consent-placeholder',
  ]
%}
{%
  set manage_button_classes = [
  'iframe-consent-placeholder-button',
  'iframe-consent-placeholder-button--manage',
  ]|merge(manage_button_utility_classes ? manage_button_utility_classes : [])
%}
{%
  set accept_button_classes = [
  'iframe-consent-placeholder-button',
  'iframe-consent-placeholder-button--accept',
  ]|merge(accept_button_utility_classes ? accept_button_utility_classes : [])
%}

<div{{ attributes.addClass(iframe_consent_placeholder_classes) }}>
  <div class="iframe-consent-placeholder__content">
    <div class="iframe-consent-placeholder__text">
      <div class="iframe-consent-placeholder__body">
        {% block body %}{{ body }}{% endblock %}
      </div>
      <div class="iframe-consent-placeholder__required-consents">
        <strong>{{ 'Required group/s:'|t }} </strong>
      </div>
    </div>

    <div class="iframe-consent-placeholder__buttons">
      <button{{ manage_button_attributes.addClass(manage_button_classes) }} type="button">
        {{ manage_button_label }}
      </button>
      {% if display_accept_button %}
        <button{{ accept_button_attributes.addClass(accept_button_classes) }} type="button">
          {{ accept_button_label }}
        </button>
      {% endif %}
    </div>
  </div>
  <div class="iframe-consent-placeholder__background">{% block background %}{{- background -}}{% endblock %}</div>
</div>

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc