You are here

simple-cookie-compliance.html.twig in Simple Cookie Compliance 8

{% set no_script_class = use_no_script ? 'cookie-compliance--no-script' : '' %}

{% if use_no_script %}
<noscript>
{% endif %}
<div class="cookie-compliance clearfix {{ no_script_class }}">
  <div class="cookie-compliance__inner">
    <div class="cookie-compliance__text">
      {{ message_text }}
    </div>
    {% if not use_no_script %}
      <button class="cookie-compliance__button js-cookie-compliance__agree">{{ agree_button }}</button>
    {% endif %}
  </div>
</div>
{% if use_no_script %}
</noscript>
{% endif %}

File

templates/simple-cookie-compliance.html.twig
View source
  1. {% set no_script_class = use_no_script ? 'cookie-compliance--no-script' : '' %}
  2. {% if use_no_script %}
  3. <noscript>
  4. {% endif %}
  5. <div class="cookie-compliance clearfix {{ no_script_class }}">
  6. <div class="cookie-compliance__inner">
  7. <div class="cookie-compliance__text">
  8. {{ message_text }}
  9. </div>
  10. {% if not use_no_script %}
  11. <button class="cookie-compliance__button js-cookie-compliance__agree">{{ agree_button }}</button>
  12. {% endif %}
  13. </div>
  14. </div>
  15. {% if use_no_script %}
  16. </noscript>
  17. {% endif %}