{% set STATIC_URL = asset('static/') %}
{% set BUILD_ID = '1' %}
<!DOCTYPE html>
<html lang="{{ app.request.locale }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no"/>
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<meta name="theme-color" content="#000000"/>
{% set seo = null %}
{% if app.request.attributes.get('_route') != '' %}
{% set url_seo = path(app.request.attributes.get('_route'),
app.request.attributes.get('_route_params')) %}
{% set seo = url_seo|metatags %}
{% endif %}
{% block linkcanonical %}{% endblock %}
{% include 'front/_common/_metatags.html.twig' %}
{% if info.scriptsMeta %}
{{ info.scriptsMeta|raw }}
{% endif %}
{% if seo is not null and seo.scriptsMeta %}
{{ seo.scriptsMeta|raw }}
{% endif %}
{% if info.seoFavicon %}
{# TODO: Check thumbnail #}
<!-- inicio favicon iphone retina, ipad, iphone en orden-->
<link rel="icon" type="image/png" href="{{ asset(info.seoFavicon|image_path) }}"/>
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="{{ asset(info.seoFavicon|image_path) }}">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="{{ asset(info.seoFavicon|image_path) }}">
<link rel="apple-touch-icon-precomposed" href="{{ asset(info.seoFavicon|image_path) }}">
<!-- end favicon -->
{% endif %}
<link rel="stylesheet" href="{{ asset('static/js/validationform/validationEngine.jquery.css') }}">
<link rel="stylesheet" href="{{ asset('static/css/styles.css') }}">
<link rel="stylesheet" href="{{ asset('static/css/blocks_styl.css') }}">
{% block cssadicional %}{% endblock %}
{% if info.scriptsHeader %}
{{ info.scriptsHeader|raw }}
{% endif %}
{% if seo is not null and seo.scriptsHeader %}
{{ seo.scriptsHeader|raw }}
{% endif %}
</head>
<body class="{{ (referer_euro or app.session.get('referer_euro')) ? 'header_btn_back_hide' }} {% block classbody %}{% endblock %}">
{% if info.scriptsBody %}
{{ info.scriptsBody|raw }}
{% endif %}
{% if seo is not null and seo.scriptsBody %}
{{ seo.scriptsBody|raw }}
{% endif %}
{% include 'front/_common/_header.html.twig' %}
{% block content %}{% endblock %}
{% include 'front/_common/_footer.html.twig' %}
<script src="{{ asset('static/js/jquery-3.2.1.min.js') }}"></script>
<script src="{{ asset('static/js/main.js') }}"></script>
<script src="{{ asset('static/js/header.js') }}"></script>
{% block jsfinal %}{% endblock %}
<script>
$(function(){
//+++ FOOTER RESPONSIVE - ACORDEON +++
if($(window).innerWidth() < 1025){
$('.footer_subtitle_resp').on('click', function(event){
console.log("footer aquiiiii");
if ($(this).hasClass('active')) {
$(this).removeClass('active').parent().find('.footer_menu').stop().slideUp();
}else{
$('.footer_subtitle_resp').removeClass('active');
$('.footer_menu').stop().slideUp();
$(this).addClass('active').parent().find('.footer_menu').stop().slideToggle();
};
})
}
//<<< END >>>
});
function storeUtms($data) {
$.ajax({
url: '{{ path('store_utms') }}',
type: 'get',
dataType: 'json',
data: $data,
success: function (data) {
updateUtm(data);
}
})
}
function updateUtm(data) {
if (data['utm_source']) {
$('.form_utmsource').val(data['utm_source']);
}
if (data['utm_medium']) {
$('.form_utmmedium').val(data['utm_medium']);
}
if (data['utm_source']) {
$('.form_utmsource').val(data['utm_source']);
}
if (data['utm_campaign']) {
$('.form_utmcampaign').val(data['utm_campaign']);
}
if (data['utm_term']) {
$('.form_utmterm').val(data['utm_term']);
}
if (data['utm_content']) {
$('.form_utmcontent').val(data['utm_content']);
}
if (data['utm_gclid']) {
$('.form_gclid').val(data['utm_gclid']);
}
}
let utm_data = {};
{% set utm_params = ['utm_source', 'utm_campaign', 'utm_medium', 'utm_term', 'utm_content', 'gclid'] %}
{% for u in utm_params %}
{% if app.request.get(u)|default('') %}
utm_data['{{ u }}'] = '{{ app.request.get(u) }}';
{% endif %}
{% endfor %}
if (!$.isEmptyObject(utm_data)) {
storeUtms(utm_data);
}
{% include 'front/templates/utms.html.twig' %}
</script>
{% if info.scriptsFooter %}
{{ info.scriptsFooter|raw }}
{% endif %}
{% if seo is not null and seo.scriptsFooter %}
{{ seo.scriptsFooter|raw }}
{% endif %}
</body>
</html>