{% extends 'frontoffice_base.html.twig' %}
{% set locale = app.request.locale %}
{#% set esHome=false %#}{#Per defecte es false per a que només a la plantilla de la home es tingui en compte#}
{% block stylesheets %}
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Poppins" rel="stylesheet">
<link href="{{ asset('frontoffice/css/fontawesome/css/all.css') }}" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
<link href='https://fonts.googleapis.com/css?family=Archivo+Narrow:400,700,700italic,400italic' rel='stylesheet' type='text/css'>
<link href="{{asset('frontoffice/css/owl.theme.css')}}" rel="stylesheet">
<link href="{{asset('frontoffice/css/main-responsive.css')}}" rel="stylesheet">
<link href="{{asset('frontoffice/css/main-retina.css')}}" rel="stylesheet">
<link href="{{asset('frontoffice/css/cols.css')}}" rel="stylesheet">
<link href="{{asset('frontoffice/css/magnific-popup.css')}}" rel="stylesheet">
<link href="{{asset('frontoffice/css/calendarstyle.css')}}" rel="stylesheet">
<link href="{{asset('frontoffice/css/foundation.css')}}" rel="stylesheet">
<link href="{{asset('frontoffice/css/prettyPhoto.css')}}" rel="stylesheet">
<link href="{{asset('frontoffice/css/menu.css')}}" rel="stylesheet">
<link href="{{asset('frontoffice/css/demo-cams.css')}}" rel="stylesheet">
<link href="{{asset('frontoffice/css/slider-cams.css')}}" rel="stylesheet">
<link href="{{asset('frontoffice/css/app.css')}}" rel="stylesheet">
<link href="{{asset('frontoffice/css/promos.css')}}" rel="stylesheet">
<!--<link href="{{asset('frontoffice/css/custom.css')}}" rel="stylesheet">-->
<link href="{{asset('frontoffice/css/print.css')}}" media="print" rel="stylesheet">
<!--Promos-->
<link href="https://fonts.googleapis.com/css?family=Gravitas+One&display=swap" rel="stylesheet">
{# <link rel="stylesheet" href="https://unpkg.com/swiper@7/swiper-bundle.min.css" />#}
{# <script src="https://unpkg.com/swiper@7/swiper-bundle.min.js"></script>#}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper@7/swiper-bundle.min.css" />
<script src="https://cdn.jsdelivr.net/npm/swiper@7/swiper-bundle.min.js"></script>
{% endblock %}
{% block body %}
{# AVISO DE COOKIES #}
{{ render(controller('App\\Controller\\DefaultController::cookiesGoogleAnalyticsBodyAction')) }}
{% block cookies %}
{# AVISO DE COOKIES #}
{{ render(controller('App\\Controller\\DefaultController::cookiesAction')) }}
{% endblock %}
{% block app %}
{# AVISO DE app #}
{#{ render(controller('App\\Controller\\DefaultController::app')) }#}
{% endblock %}
{#% include 'App::mobileMenu.html.twig' %#}
{#% include 'App::webHead.html.twig' %#}
{{ render (controller('App\\Controller\\HeadController::indexAction', {'app_request':app.request, 'entMenu':(entMenu is defined?entMenu:''), 'slug':(slug is defined?slug:'')})) }}
{#% include 'App::webMenu.html.twig' %#}
<div class="grid-container padding-mobile margin-top">
{% block textosmov %}{% endblock %}
{% block fondo_slider %}{% endblock %}
{% if esHome is defined and esHome==1 %}
<div class="si-movil">
<!--
<div class="swipervertical" style="width: 100%;height: 700px;">
-->
<div class="swipervertical" style="width: 100%;">
<div class="swiper-wrapper">
<div class="swiper-slide">
{% block caixa_movil %}{% endblock %}
{% if general.getWebcam360CapBoscVisible() %}
{% block Webcam360_movil %}{% endblock %}
{% endif %}
</div>
<div class="swiper-slide">
<div style="position:relative; background:#fff; width:100%;">
<div class="grid-container padding-mobile general">
{% block article_movil %}{% endblock %}
</div>
</div>
</div>
<div class="swiper-slide">
{% block foot2_movil %}{{ render (controller('App\\Controller\\FootController::indexAction')) }}{% endblock %}
</div>
<div class="swiper-slide">
{% block foot3 %}{{ render (controller('App\\Controller\\FootController::meteoAction')) }}{% endblock %}
</div>
</div>
<!-- If we need pagination -->
<!--<div class="swiper-pagination-vertical"></div>-->
<!-- If we need navigation buttons -->
<!--<div class="swiper-button-prev-vertical"></div>
<div class="swiper-button-next-vertical"></div>-->
<!-- If we need scrollbar -->
<div class="swiper-scrollbar-vertical"></div>
</div>
</div>
<div class="no-movil">
{% block caixa %}{% endblock %}
{% block Webcam360 %}{% endblock %}
<div style="position:relative; background:#fff; width:100%;">
<div class="grid-container padding-mobile general">
{% block article %}{% endblock %}
</div>
</div>
<div class="config-cookies"><a class="cookiesConfiguration" aria-controls="configCookies" aria-haspopup="true" tabindex="0" title="{{"Configuració de cookies"|trans}}"><i class="fa-solid fa-gear fa-2x"></i> <span>{{"Configuració de cookies"|trans}}</span></a></div>
{% block foot2 %}{{ render (controller('App\\Controller\\FootController::indexAction')) }}{% endblock %}
</div>
{% else %}
<div style="position:relative; background:#fff; width:100%;">
<div class="grid-container padding-mobile general">
{{ block ('article') }}
</div>
</div>
{% block foot4 %}{{ render (controller('App\\Controller\\FootController::indexAction')) }}{% endblock %}
<div class="si-movil">
{% block foot5 %}{{ render (controller('App\\Controller\\FootController::meteoAction')) }}{% endblock %}
</div>
{% endif %}
</div>
{#% if ( esHome is not defined) or ( esHome is defined and not esHome) %#}
{#% include 'App::foot.html.twig' %#}
{#% endif %#}
<div class="no-movil">
{% block foot %}{{ render (controller('App\\Controller\\FootController::meteoAction')) }}{% endblock %}
</div>
<div id="avis-cookies-config" class="reveal-overlay" style="display: none">
<div class="large reveal" id="configCookies" role="dialog" aria-hidden="false" data-yeti-box="configCookies" data-resize="configCookies" tabindex="-1" style="display: block; top: 172px;">
<div class="grid-container">
<h2>{{"Configuració de cookies"|trans}}</h2>
<ul class="tabs navbutton" data-tabs="p70s56-tabs" id="example-tabs" role="tablist">
<li class="tabs-title is-active" role="presentation">
<a href="#panel1v" aria-selected="true" role="tab" aria-controls="panel1v" id="panel1v-label" tabindex="0">{{"Cookies requerides"|trans}}</a>
</li>
<li class="tabs-title" role="presentation">
<a href="#panel2v" role="tab" aria-controls="panel2v" aria-selected="false" id="panel2v-label" tabindex="-1">{{"Cookies analítiques"|trans}}</a>
</li>
</ul>
<div class="tabs-content" data-tabs-content="example-tabs">
<div class="tabs-panel is-active" id="panel1v" role="tabpanel" aria-labelledby="panel1v-label">
<h4>{{"Cookies requerides"|trans}}</h4>
<p>{{"Les cookies requerides o funcionals fan referència a la funcionalitat del nostre web, i ens permeten millorar el servei que oferim, per exemple, deixar-te introduir informació en els formularis sense necessitat d'escriure de nou les dades, o per reconèixer les preferències quan tornis al nostre lloc web."|trans}}</p>
<div class="grid-x grid-padding-x">
<div class="large-2 medium-2" style="width:6rem;">
<div class="switch large" style="display:inline-block;">
<input class="switch-input" id="requeridas" type="checkbox" name="requeridas" readonly="readonly" checked="checked">
<label class="switch-paddle">
<span class="switch-active" aria-hidden="true">{{"Si"|trans}}</span>
<span class="switch-inactive" aria-hidden="true">{{"No"|trans}}</span>
</label>
</div>
</div>
<div class="large-10 medium-10">
<h4 class="nomargin">{{"Activades"|trans}}</h4>
</div>
</div>
</div>
<div class="tabs-panel" id="panel2v" role="tabpanel" aria-labelledby="panel2v-label" aria-hidden="true">
<h4>{{"Cookies analítiques"|trans}}</h4>
<p>{{"Les cookies analítiques ens permeten reconèixer i comptar la quantitat d'usuaris al nostre lloc, veure com es mouen dins d'ell i registrar els continguts que els usuaris veuen o són de major interès. Això ens ajuda a millorar el servei que oferim, assegurant que els nostres usuaris troben la informació que necessiten."|trans}}</p>
<div class="grid-x grid-padding-x">
<div class="large-2 medium-2" style="width:6rem;">
<div class="switch large" style="display:inline-block;">
<input class="switch-input" id="analiticas" type="checkbox" name="analiticas">
<label class="switch-paddle" for="analiticas">
<span class="switch-active" aria-hidden="true">{{"Si"|trans}}</span>
<span class="switch-inactive" aria-hidden="true">{{"No"|trans}}</span>
</label>
</div>
</div>
<div class="large-10 medium-10">
<h4 class="nomargin">{{"Activar"|trans}}</h4>
</div>
</div>
</div>
</div>
</div>
<div class="grid-x grid-padding-x grid-padding-y">
<div class="large-4 medium-4 cell">
<button id="acceptAllCookies" class="button expanded nomargin acceptAllCookies"><i class="fas fa-check-circle"></i> {{"Permet todes les cookies"|trans}}</button>
</div>
<div class="large-4 medium-4 cell">
<button id="rejectAllCookies" class="button expanded nomargin"><i class="fas fa-ban"></i> {{"Rebutja totes les cookies"|trans}}</button>
</div>
<div class="large-4 medium-4 cell">
<button id="saveConfigCookies" class="button expanded nomargin"><i class="fas fa-clipboard-check"></i> {{"Desa la configuració"|trans}}</button>
</div>
</div>
<button class="close-button" data-close="" aria-label="Close modal" type="button"><span aria-hidden="true">×</span></button>
</div>
</div>
{% endblock %}
{% block javascripts %}
<script src="https://api.skitude.com/v2/applications/cda04e680bea3981751d7aa7257eb07c932771e5dea28db4a4dc9a457bf5d155/smartbanner.js?language={{ locale }}"></script>
<!-- LESS JS engine-->
<script src="{{asset('less/less-1.5.0.min.js')}}"></script>
<script src="{{asset('frontoffice/js/vendor/modernizr.js')}}"></script>
<script src="{{asset('frontoffice/js/jquery.js')}}" type="text/javascript"></script>
<script type="text/javascript">
$(function () {
$(".swipervertical").css('height', $(window).height() + 'px');
$(".acceptAllCookies").on("click", function (e) {
e.preventDefault();
aceptaCookies('{{path("aceptar_cookie")}}');
aceptaCookies('{{path("aceptar_cookie_google_analytics")}}');
});
$("#rejectAllCookies").on("click", function () {
aceptaCookies('{{path("eliminar_cookies")}}');
aceptaCookies('{{path("aceptar_cookie")}}');
});
$("#saveConfigCookies").on("click", function () {
aceptaCookies('{{path("aceptar_cookie")}}');
if ($("#analiticas").prop('checked'))
{
aceptaCookies('{{path("aceptar_cookie_google_analytics")}}');
}
});
$(".cookiesConfiguration").on("click", function () {
$("#avis-cookies-config").slideDown();
});
$("#avis-cookies-config .close-button").on("click", function () {
$("#avis-cookies-config").slideUp();
});
});
function aceptaCookies(path)
{
$.ajax({
type: "POST",
url: path,
data: "accept=1",
dataType: "text",
success: function () {
$("#avis-cookies").slideUp();
$("#avis-cookies-config").slideUp();
}
});
}
</script>
<script src="{{asset('frontoffice/js/waypoints.min.js')}}"></script>
<script src="{{asset('frontoffice/js/main.js')}}"></script>
<script src="{{asset('frontoffice/js/jquery.magnific-popup.min.js')}}"></script>
<script src="{{asset('frontoffice/js/prettyPhoto/jquery.prettyPhoto.js')}}"></script>
<script src="{{asset('frontoffice/js/jquery.cams-slider.js')}}"></script>
<!--<script src="{{asset('frontoffice/js/vendor/jquery.js')}}"></script>-->
<script src="{{asset('frontoffice/js/vendor/what-input.js')}}"></script>
<script src="{{asset('frontoffice/js/vendor/foundation.js')}}"></script>
<script src="{{asset('frontoffice/js/menu.js')}}"></script>
{# AVISO DE COOKIES #}
{{ render(controller('App\\Controller\\DefaultController::cookiesGoogleAnalyticsAction')) }}
<script>
$(document).foundation();
</script>
<script type="text/javascript" charset="utf-8">
$(document).ready(function () {
$("area[rel^='prettyPhoto']").prettyPhoto();
$(".gallery:first a[rel^='prettyPhoto']").prettyPhoto({animation_speed: 'normal', theme: 'facebook', slideshow: 3000, autoplay_slideshow: true});
$(".gallery:gt(0) a[rel^='prettyPhoto']").prettyPhoto({animation_speed: 'fast', slideshow: 10000, hideflash: true});
$("#custom_content a[rel^='prettyPhoto']:first").prettyPhoto({
custom_markup: '<div id="map_canvas" style="width:260px; height:265px"></div>',
changepicturecallback: function () {
initialize();
}
});
$("#custom_content a[rel^='prettyPhoto']:last").prettyPhoto({
custom_markup: '<div id="bsap_1259344" class="bsarocks bsap_d49a0984d0f377271ccbf01a33f2b6d6"></div><div id="bsap_1237859" class="bsarocks bsap_d49a0984d0f377271ccbf01a33f2b6d6" style="height:260px"></div><div id="bsap_1251710" class="bsarocks bsap_d49a0984d0f377271ccbf01a33f2b6d6"></div>',
changepicturecallback: function () {
_bsap.exec();
}
});
});
var swipervertical = new Swiper('.swipervertical', {
// Optional parameters
direction: 'vertical',
//loop: true,
// If we need pagination
pagination: {
el: '.swiper-pagination-vertical',
},
// Navigation arrows
navigation: {
nextEl: '.swiper-button-next-vertical',
prevEl: '.swiper-button-prev-vertical',
},
// And if we need scrollbar
scrollbar: {
el: '.swiper-scrollbar-vertical',
},
});
</script>
<script>
// if (window.matchMedia("(min-width: 768px)").matches) {
// window.addEventListener('mouseover', initLandbot, { once: true });
// window.addEventListener('touchstart', initLandbot, { once: true });
// var myLandbot;
// function initLandbot() {
// if (!myLandbot) {
// var s = document.createElement('script');s.type = 'text/javascript';s.async = true;
// s.addEventListener('load', function() {
// var myLandbot = new Landbot.Livechat({
// configUrl: 'https://storage.googleapis.com/landbot.pro/v3/H-1748610-2AFHJXPMDEEHRXW3/index.json',
// });
// });
// s.src = 'https://cdn.landbot.io/landbot-3/landbot-3.0.0.js';
// var x = document.getElementsByTagName('script')[0];
// x.parentNode.insertBefore(s, x);
// }
// }
//
// }
</script>
{% endblock %}