templates/templates/models/drupal-cookies-banner.html.twig line 1

Open in your IDE?
  1. {% extends "layouts/master.html.twig" %}
  2. {% block siteHeader %}
  3.     {% include 'organisms/site-header.html.twig' %}
  4. {% endblock %}
  5. {% block pageHeader %}
  6.     {% include 'molecules/page-header.html.twig' with {
  7.         title: 'Banner de cookies Drupal'
  8.     } %}
  9. {% endblock %}
  10. {% block pageContent %}
  11.     <div class="org-modules-container has-banners">
  12.         {% include 'molecules/banners/xl.html.twig' with { modifiers: '', hasImage: true } %}
  13.         {% include 'molecules/banners/s-no-link.html.twig' with { modifiers: 'is-light' } %}
  14.         {% include 'molecules/banners/s.html.twig' with { modifiers: '' } %}
  15.         {% include 'molecules/banners/s.html.twig' with { modifiers: 'is-studies' } %}
  16.         {% include 'molecules/banners/s.html.twig' with { modifiers: '' } %}
  17.     </div>
  18.     <div class="row">
  19.         <div class="col-lg-9">
  20.             <section class="org-tier">
  21.                 <div class="tier-header">
  22.                     <h2 class="tier-title">Actualidade</h2>
  23.                     <div class="tier-action">
  24.                         <a href="">ver máis</a>
  25.                     </div>
  26.                 </div>
  27.                 <div class="tier-content">
  28.                     <div class="org-modules-container is-three-quarters">
  29.                         {% include 'molecules/news/l.html.twig' %}
  30.                         {% include 'molecules/news/m.html.twig' with { hasImage: true } %}
  31.                     </div>
  32.                 </div>
  33.             </section>
  34.         </div>
  35.         <div class="col-lg-3">
  36.             <section class="org-tier">
  37.                 <div class="tier-header">
  38.                     <h2 class="tier-title">Axenda</h2>
  39.                     <div class="tier-action">
  40.                         <a href="">ver máis</a>
  41.                     </div>
  42.                 </div>
  43.                 <div class="tier-content">
  44.                     <div class="org-modules-container is-one-quarter">
  45.                         {% include 'molecules/events/m.html.twig' with { hasDate: true } %}
  46.                         {% include 'molecules/events/m.html.twig' with { hasDate: true } %}
  47.                     </div>
  48.                 </div>
  49.             </section>
  50.         </div>
  51.     </div>
  52. {% endblock %}
  53. {% block siteFooter %}
  54.     <div id="sliding-popup" style="bottom: 0px;" class="sliding-popup-bottom initial">
  55.         <div role="alertdialog" aria-labelledby="popup-text"
  56.              class="eu-cookie-compliance-banner eu-cookie-compliance-banner-info eu-cookie-compliance-banner--opt-in">
  57.             <div class="popup-content info eu-cookie-compliance-content">
  58.                 <div id="popup-text" class="eu-cookie-compliance-message">
  59.                     <h2>Usamos cookies neste sitio para mellorar a súa experiencia de usuario</h2>
  60.                     <p>Facendo clic no botón Aceptar, acepta que o fagamos.</p>
  61.                     <button type="button" class="find-more-button eu-cookie-compliance-more-button find-more-button-processed">
  62.                         Máis información
  63.                     </button>
  64.                 </div>
  65.                 <div id="popup-buttons" class="eu-cookie-compliance-buttons">
  66.                     <button type="button" class="agree-button eu-cookie-compliance-secondary-button">Aceptar</button>
  67.                     <button type="button" class="decline-button eu-cookie-compliance-default-button">Non, grazas</button>
  68.                 </div>
  69.             </div>
  70.         </div>
  71.     </div>
  72.     <!-- Banner revocar acceso abierto -->
  73.     <div id="sliding-popup" class="eu-cookie-withdraw-wrapper sliding-popup-bottom open" style="bottom: 0px; display: none;">
  74.         <button type="button" class="eu-cookie-withdraw-tab">
  75.             <span class="is-sr-only">Configuración de privacidade</span>
  76.         </button>
  77.         <div role="alertdialog" aria-labelledby="popup-text" class="eu-cookie-withdraw-banner">
  78.             <div class="popup-content info eu-cookie-compliance-content">
  79.                 <div id="popup-text" class="eu-cookie-compliance-message">
  80.                     <h2>Usamos cookies neste sitio para mellorar a súa experiencia de usuario</h2>
  81.                     <p>Deu o seu consentimento para que usemos cookies.</p>
  82.                 </div>
  83.                 <div id="popup-buttons" class="eu-cookie-compliance-buttons">
  84.                     <button type="button" class="eu-cookie-withdraw-button">Revocar consentimento</button>
  85.                 </div>
  86.             </div>
  87.         </div>
  88.     </div>
  89.     <!-- Banner revocar acceso cerrado -->
  90.     <div id="sliding-popup" class="eu-cookie-withdraw-wrapper sliding-popup-bottom closed" style="bottom: -114px; display: none;">
  91.         <button type="button" class="eu-cookie-withdraw-tab">
  92.             <span class="is-sr-only">Configuración de privacidade</span>
  93.         </button>
  94.         <div role="alertdialog" aria-labelledby="popup-text" class="eu-cookie-withdraw-banner">
  95.             <div class="popup-content info eu-cookie-compliance-content">
  96.                 <div id="popup-text" class="eu-cookie-compliance-message">
  97.                     <h2>Usamos cookies neste sitio para mellorar a súa experiencia de usuario</h2>
  98.                     <p>Deu o seu consentimento para que usemos cookies.</p>
  99.                 </div>
  100.                 <div id="popup-buttons" class="eu-cookie-compliance-buttons">
  101.                     <button type="button" class="eu-cookie-withdraw-button">Revocar consentimento</button>
  102.                 </div>
  103.             </div>
  104.         </div>
  105.     </div>
  106.     {% include 'organisms/site-footer.html.twig' %}
  107. {% endblock %}
  108. {% block javascripts %}
  109.     {{ parent() }}
  110.     <script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
  111.     <script type="text/javascript">
  112.         var $initialPopup = $('.sliding-popup-bottom.initial');
  113.         var $withdrawPopupClosed = $('.eu-cookie-withdraw-wrapper.closed');
  114.         var $withdrawPopupOpen = $('.eu-cookie-withdraw-wrapper.open');
  115.         $('.eu-cookie-compliance-buttons .agree-button').on('click', function () {
  116.           $initialPopup.hide();
  117.           $withdrawPopupClosed.show();
  118.         });
  119.         $('.eu-cookie-compliance-buttons .decline-button').on('click', function () {
  120.           $initialPopup.hide();
  121.         });
  122.         $('.eu-cookie-withdraw-wrapper.closed .eu-cookie-withdraw-tab').on('click', function () {
  123.           $withdrawPopupClosed.hide();
  124.           $withdrawPopupOpen.show();
  125.         });
  126.         $('.eu-cookie-withdraw-wrapper.open .eu-cookie-withdraw-tab').on('click', function () {
  127.           $withdrawPopupOpen.hide();
  128.           $withdrawPopupClosed.show();
  129.         });
  130.         $('.eu-cookie-withdraw-button').on('click', function () {
  131.           $withdrawPopupClosed.hide();
  132.           $withdrawPopupOpen.hide();
  133.           $initialPopup.show();
  134.         });
  135.     </script>
  136. {% endblock %}