{% extends "layouts/master.html.twig" %}
{% block siteHeader %}
{% include 'organisms/site-header.html.twig' %}
{% endblock %}
{% block pageHeader %}
{% include 'molecules/page-header.html.twig' with {
title: 'Banner de cookies Drupal'
} %}
{% endblock %}
{% block pageContent %}
<div class="org-modules-container has-banners">
{% include 'molecules/banners/xl.html.twig' with { modifiers: '', hasImage: true } %}
{% include 'molecules/banners/s-no-link.html.twig' with { modifiers: 'is-light' } %}
{% include 'molecules/banners/s.html.twig' with { modifiers: '' } %}
{% include 'molecules/banners/s.html.twig' with { modifiers: 'is-studies' } %}
{% include 'molecules/banners/s.html.twig' with { modifiers: '' } %}
</div>
<div class="row">
<div class="col-lg-9">
<section class="org-tier">
<div class="tier-header">
<h2 class="tier-title">Actualidade</h2>
<div class="tier-action">
<a href="">ver máis</a>
</div>
</div>
<div class="tier-content">
<div class="org-modules-container is-three-quarters">
{% include 'molecules/news/l.html.twig' %}
{% include 'molecules/news/m.html.twig' with { hasImage: true } %}
</div>
</div>
</section>
</div>
<div class="col-lg-3">
<section class="org-tier">
<div class="tier-header">
<h2 class="tier-title">Axenda</h2>
<div class="tier-action">
<a href="">ver máis</a>
</div>
</div>
<div class="tier-content">
<div class="org-modules-container is-one-quarter">
{% include 'molecules/events/m.html.twig' with { hasDate: true } %}
{% include 'molecules/events/m.html.twig' with { hasDate: true } %}
</div>
</div>
</section>
</div>
</div>
{% endblock %}
{% block siteFooter %}
<div id="sliding-popup" style="bottom: 0px;" class="sliding-popup-bottom initial">
<div role="alertdialog" aria-labelledby="popup-text"
class="eu-cookie-compliance-banner eu-cookie-compliance-banner-info eu-cookie-compliance-banner--opt-in">
<div class="popup-content info eu-cookie-compliance-content">
<div id="popup-text" class="eu-cookie-compliance-message">
<h2>Usamos cookies neste sitio para mellorar a súa experiencia de usuario</h2>
<p>Facendo clic no botón Aceptar, acepta que o fagamos.</p>
<button type="button" class="find-more-button eu-cookie-compliance-more-button find-more-button-processed">
Máis información
</button>
</div>
<div id="popup-buttons" class="eu-cookie-compliance-buttons">
<button type="button" class="agree-button eu-cookie-compliance-secondary-button">Aceptar</button>
<button type="button" class="decline-button eu-cookie-compliance-default-button">Non, grazas</button>
</div>
</div>
</div>
</div>
<!-- Banner revocar acceso abierto -->
<div id="sliding-popup" class="eu-cookie-withdraw-wrapper sliding-popup-bottom open" style="bottom: 0px; display: none;">
<button type="button" class="eu-cookie-withdraw-tab">
<span class="is-sr-only">Configuración de privacidade</span>
</button>
<div role="alertdialog" aria-labelledby="popup-text" class="eu-cookie-withdraw-banner">
<div class="popup-content info eu-cookie-compliance-content">
<div id="popup-text" class="eu-cookie-compliance-message">
<h2>Usamos cookies neste sitio para mellorar a súa experiencia de usuario</h2>
<p>Deu o seu consentimento para que usemos cookies.</p>
</div>
<div id="popup-buttons" class="eu-cookie-compliance-buttons">
<button type="button" class="eu-cookie-withdraw-button">Revocar consentimento</button>
</div>
</div>
</div>
</div>
<!-- Banner revocar acceso cerrado -->
<div id="sliding-popup" class="eu-cookie-withdraw-wrapper sliding-popup-bottom closed" style="bottom: -114px; display: none;">
<button type="button" class="eu-cookie-withdraw-tab">
<span class="is-sr-only">Configuración de privacidade</span>
</button>
<div role="alertdialog" aria-labelledby="popup-text" class="eu-cookie-withdraw-banner">
<div class="popup-content info eu-cookie-compliance-content">
<div id="popup-text" class="eu-cookie-compliance-message">
<h2>Usamos cookies neste sitio para mellorar a súa experiencia de usuario</h2>
<p>Deu o seu consentimento para que usemos cookies.</p>
</div>
<div id="popup-buttons" class="eu-cookie-compliance-buttons">
<button type="button" class="eu-cookie-withdraw-button">Revocar consentimento</button>
</div>
</div>
</div>
</div>
{% include 'organisms/site-footer.html.twig' %}
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<script type="text/javascript">
var $initialPopup = $('.sliding-popup-bottom.initial');
var $withdrawPopupClosed = $('.eu-cookie-withdraw-wrapper.closed');
var $withdrawPopupOpen = $('.eu-cookie-withdraw-wrapper.open');
$('.eu-cookie-compliance-buttons .agree-button').on('click', function () {
$initialPopup.hide();
$withdrawPopupClosed.show();
});
$('.eu-cookie-compliance-buttons .decline-button').on('click', function () {
$initialPopup.hide();
});
$('.eu-cookie-withdraw-wrapper.closed .eu-cookie-withdraw-tab').on('click', function () {
$withdrawPopupClosed.hide();
$withdrawPopupOpen.show();
});
$('.eu-cookie-withdraw-wrapper.open .eu-cookie-withdraw-tab').on('click', function () {
$withdrawPopupOpen.hide();
$withdrawPopupClosed.show();
});
$('.eu-cookie-withdraw-button').on('click', function () {
$withdrawPopupClosed.hide();
$withdrawPopupOpen.hide();
$initialPopup.show();
});
</script>
{% endblock %}