<!DOCTYPE html>
<!--[if IE 8]> <html lang="es" translate="no" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="es" translate="no" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!-->
<html lang="es" translate="no">
<!--<![endif]-->
<head>
<meta charset="utf-8"/>
<title>{% block title %}{% endblock %} | {{ 'nextcaddy'|trans({}, 'FrontendBundle') }}</title>
{{ render_google_analytics()|raw }}
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<meta content="" name="description"/>
<meta content="" name="author"/>
<meta name="application-name" content="NEXTCADDY"/>
<meta name="msapplication-TileColor" content="#FFFFFF" />
<meta name="msapplication-TileImage" content="mstile-144x144.png" />
<link rel="apple-touch-icon-precomposed" sizes="57x57" href="{{ asset('iconos/favicons/frontend_icon/apple-touch-icon-57x57.png') }}">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="{{ asset('iconos/favicons/frontend_icon/apple-touch-icon-72x72.png') }}">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="{{ asset('iconos/favicons/frontend_icon/apple-touch-icon-114x114.png') }}">
<link rel="apple-touch-icon-precomposed" sizes="120x120" href="{{ asset('iconos/favicons/frontend_icon/apple-touch-icon-120x120.png') }}">
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ asset('iconos/favicons/frontend_icon/apple-touch-icon-144x144.png') }}">
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="{{ asset('iconos/favicons/frontend_icon/apple-touch-icon-152x152.png') }}">
<link rel="icon" type="image/png" href="{{ asset('iconos/favicons/frontend_icon/favicon-16x16.png') }}" sizes="16x16">
<link rel="icon" type="image/png" href="{{ asset('iconos/favicons/frontend_icon/favicon-32x32.png') }}" sizes="32x32">
{#
<link href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.0/dist/semantic.min.css" rel="stylesheet" type="text/css"/>
#}
<link href="https://cdn.jsdelivr.net/npm/fomantic-ui@2.8.7/dist/semantic.min.css" rel="stylesheet" type="text/css"/>
<link rel="stylesheet" type="text/css" href="{{ asset('css/frontend/frontend_nuevo.css?v=2.19') }}"/>
<link href="https://fonts.googleapis.com/css?family=Raleway|Scope+One" rel="stylesheet">
{% block stylesheets %}{% endblock %}
</head>
{% set claseBody = "day" %}
{% if ("now"|date("H:i") >= "21:00") or (("now"|date("H:i") >= "00:00") and ("now"|date("H:i") <= "07:00")) %}
{% set claseBody = "night" %}
{% endif %}
{% if fede is defined %}
{% set claseBody = claseBody ~ " " ~ fede|upper %}
{% endif %}
<body class="{{ claseBody }}">
<div class="cover" id="cover"></div>
<div class="mobile hidden ui center aligned padded grid fluid cabecera sombra" id="cabecera">
<div class="three wide noPaddingTop noPaddingBottom column middle aligned" id="logocliente">
{% set url = "" %}
{% if entity is defined and not entity is null %}
{% set url = path("_club", {id: entity.cliente.nombreCorto}) %}
{% elseif competicion is defined and not competicion is null %}
{% set url = path("_club", {id: competicion.organizador.cliente.nombreCorto}) %}
{% endif %}
<a href="{{ url }}" target="_blank">
{% if (entity is defined and (entity is not null) and entity.id in ["8819", "7707", "7723", "JGLF"]) or (app.request.attributes.get('_route') == 'provincias' and id == 2) or competicion is defined and (competicion.organizador.id == 'JGLF') %}
{% include 'jgolf.html.twig' %}
{% elseif cliente is defined and (cliente is not null) and (cliente.id == 2) or (app.request.attributes.get('_route') == 'provincias' and id == 46) or entity is defined and (entity.cliente.nombreCorto starts with 'LV') or competicion is defined and (competicion.organizador.cliente.nombreCorto starts with 'LV') %}
{% include 'levante.html.twig' %}
{% elseif cliente is defined and (cliente is not null) and (cliente.id == 3) or (app.request.attributes.get('_route') == 'provincias' and id == 35) or entity is defined and (entity.cliente.nombreCorto starts with 'CP') or competicion is defined and (competicion.organizador.cliente.nombreCorto starts with 'CP') %}
{% include 'fcg.html.twig' %}
{% elseif cliente is defined and (cliente is not null) and (cliente.id == 4) or (app.request.attributes.get('_route') == 'provincias' and id == 28) or entity is defined and (entity.cliente.nombreCorto starts with 'CM') or competicion is defined and (competicion.organizador.cliente.nombreCorto starts with 'CM') %}
{% include 'fgm.html.twig' %}
{% elseif cliente is defined and (cliente is not null) and (cliente.id == 1) or (app.request.attributes.get('_route') == 'provincias' and (id != 46 and id != 35 and id != 28)) or entity is defined and (entity.cliente.nombreCorto starts with 'AM' and entity.cliente.nombreCorto != 'AMLP') or competicion is defined and (competicion.organizador.cliente.nombreCorto starts with 'AM' and competicion.organizador.cliente.nombreCorto != 'AMLP') %}
{% include 'rfga.html.twig' %}
{% elseif cliente is defined and (cliente is not null) and (cliente.id == 10) or (entity is defined and entity.cliente.nombreCorto == 'AMLP') or competicion is defined and (competicion.organizador.cliente.nombreCorto == 'AMLP') %}
{% include 'lpg.html.twig' %}
{% elseif cliente is defined and (cliente is not null) and (cliente.id == 35) or (entity is defined and entity.cliente.nombreCorto == 'ELTG') or competicion is defined and (competicion.organizador.cliente.nombreCorto == 'ELTG') %}
{% endif %}
</a>
</div>
<div class="middle aligned ten wide column" id="nombrecliente">
<h3 class="ui grey header rale left aligned">
<div class="content">
{% if (entity is defined and (entity is not null) and entity.id in ["8819", "7707", "7723", "JGLF"]) or (app.request.attributes.get('_route') == 'provincias' and id == 2) or competicion is defined and (competicion.organizador.id == 'JGLF') %}
JGOLF 18.0
{% elseif cliente is defined and (cliente is not null) and (cliente.id == 2) or (app.request.attributes.get('_route') == 'provincias' and id == 46) or entity is defined and (entity.cliente.nombreCorto starts with 'LV') or competicion is defined and (competicion.organizador.cliente.nombreCorto starts with 'LV') %}
{{ 'header.levante'|trans({}, 'FrontendBundle') }}
{% elseif cliente is defined and (cliente is not null) and (cliente.id == 3) or (app.request.attributes.get('_route') == 'provincias' and id == 35) or entity is defined and (entity.cliente.nombreCorto starts with 'CP') or competicion is defined and (competicion.organizador.cliente.nombreCorto starts with 'CP') %}
{{ 'header.canaria'|trans({}, 'FrontendBundle') }}
{% elseif cliente is defined and (cliente is not null) and (cliente.id == 4) or (app.request.attributes.get('_route') == 'provincias' and id == 28) or entity is defined and (entity.cliente.nombreCorto starts with 'CM') or competicion is defined and (competicion.organizador.cliente.nombreCorto starts with 'CM') %}
{{ 'header.madrid'|trans({}, 'FrontendBundle') }}
{% elseif cliente is defined and (cliente is not null) and (cliente.id == 1) or (app.request.attributes.get('_route') == 'provincias' and (id != 46 and id != 35 and id != 28)) or entity is defined and (entity.cliente.nombreCorto starts with 'AM' and entity.cliente.nombreCorto != 'AMLP') or competicion is defined and (competicion.organizador.cliente.nombreCorto starts with 'AM' and competicion.organizador.cliente.nombreCorto != 'AMLP') %}
{{ 'header.title'|trans({}, 'FrontendBundle') }}
{% elseif cliente is defined and (cliente is not null) and (cliente.id == 10) or (entity is defined and entity.cliente.nombreCorto == 'AMLP') or competicion is defined and (competicion.organizador.cliente.nombreCorto == 'AMLP') %}
Liga Provincial de Golf de Málaga
{% elseif cliente is defined and (cliente is not null) and (cliente.id == 35) or (entity is defined and entity.cliente.nombreCorto == 'ELTG') or competicion is defined and (competicion.organizador.cliente.nombreCorto == 'ELTG') %}
Elite Golf
{% else %}
NEXTCADDY
{% endif %}
<div class="sub header">
{% if data is defined %}
{% for c in data %}{{ c.comp.club.nombre }}{% endfor %}
{% elseif competicion is defined %}
{{ competicion.club.nombre }}
{% elseif grouping is defined %}
{{ grouping.cliente.nombre }}
{% else %}
{{ 'header.subtitle'|trans({}, 'FrontendBundle') }}
{% endif %}
</div>
</div>
</h3>
</div>
<div class="three wide column logo provider" id="logonxt">
{% include 'nextcaddy_new.html.twig' %}
</div>
</div>
<div class="large screen computer only ui divider hidden"></div>
<div class="main ui container" id="container-ppal">
{% block container %}{% endblock %}
</div>
<div class="ui divider hidden"></div>
{% include 'frontend_footer_new.html.twig' %}
{% if competicion is defined and competicion.modo.id == 4 %}
<div class="testMark" data-tooltip="Competición de Test" data-position="right center">
<svg viewBox="0 0 64 64">
<g fill="none" stroke="#FFF" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" stroke-linejoin="round">
<circle cx="31" cy="20" r="2"/>
<circle cx="35" cy="32" r="2" />
<circle cx="22" cy="48" r="2" />
<circle cx="38" cy="51" r="4" />
<path d="M48 40l-7.5-15a5 5 0 0 1-.5-2.2V2H24v20.8a5 5 0 0 1-.5 2.2L16 40" />
<path d="M53 50.3L48 40H16l-5 10.3a8 8 0 0 0-.9 5 8.2 8.2 0 0 0 8.2 6.7h27.4a8.2 8.2 0 0 0 8.3-7.4 8 8 0 0 0-1-4.3z" />
</g>
</svg>
</div>
{% endif %}
{#<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>#}
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.3/jquery.min.js" integrity="sha512-STof4xm1wgkfm7heWqFJVn58Hm3EtS31XFaagaa8VMReCXAkQnJZ+jEy8PCC/iT18dFy95WcExNHFTqLyp72eQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/fomantic-ui@2.8.7/dist/semantic.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/gsap/1.14.2/TweenMax.min.js"></script>
<script type="text/javascript" src="{{ asset('js/frontend/frontend_header.js') }}"></script>
<script id="script-scroll-magic" type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/ScrollMagic/1.3.0/jquery.scrollmagic.min.js"></script>
<script src="{{ asset('bundles/fosjsrouting/js/router.js') }}"></script>
<script src="{{ path('fos_js_routing_js', {"callback": "fos.Router.setData"}) }}"></script>
<script src="https://cdn.jsdelivr.net/npm/instant.page@5.1.0/instantpage.min.js"></script>
<script>
var scrollMagicController;
$('.message .close').on('click', function() {
$(this).closest('.message').transition('fade');
});
// Get IE or Edge browser version. Si no es IE, cargamos el scrollmagic
if (!detectIE()) {
scrollMagicController = new ScrollMagic();
}
/**
* detect IE
*/
function detectIE() {
var res = false;
var ua = window.navigator.userAgent;
var msie = ua.indexOf('MSIE ');
if (msie > 0) {
// IE 10 or older
res = true;
}
var trident = ua.indexOf('Trident/');
if (trident > 0) {
// IE 11 => return version number
var rv = ua.indexOf('rv:');
res = true;
}
var edge = ua.indexOf('Edge/');
if (edge > 0) {
// Edge (IE 12+) => return version number
res = true;
}
// other browser
return res;
}
//smooth scroll
$(function () {
$('a[href*="#"]:not([href="#"])').click(function () {
if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
var target = $(this.hash);
target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
if (target.length) {
$('html, body').animate({
scrollTop: target.offset().top
}, 1000);
return false;
}
}
});
});
var colectaGA = function(){
$.get(Routing.generate('collect'), function(data) {
//console.log(data);
});
};
if(!(window.ga && ga.create)){
//colectaGA();
}
if(!window.google_tag_manager){
//colectaGA();
}
$(".footer .accordion").accordion({});
</script>
<!-- Google Analytics -->
<script type="text/plain" data-cookie-consent="tracking">
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-CX2CY455X9');
</script>
<!-- end of Google Analytics-->
<script type="text/javascript" charset="UTF-8" src="//cdn.cookie-script.com/s/d15e906aa1580a76686a205833f60d8d.js"></script>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<script type="text/javascript" src="{{ asset('js/shared/utilToast.js?v=1.02') }}"></script>
{% block javascripts %}{% endblock %}
</body>
</html>