templates/base_frontend_new.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <!--[if IE 8]> <html lang="es" translate="no" class="ie8 no-js"> <![endif]-->
  3. <!--[if IE 9]> <html lang="es" translate="no" class="ie9 no-js"> <![endif]-->
  4. <!--[if !IE]><!-->
  5. <html lang="es" translate="no">
  6.     <!--<![endif]-->
  7.     <head>
  8.         <meta charset="utf-8"/>
  9.         <title>{% block title %}{% endblock %} | {{ 'nextcaddy'|trans({}, 'FrontendBundle') }}</title>
  10.         {{ render_google_analytics()|raw }}
  11.         <meta http-equiv="X-UA-Compatible" content="IE=edge">
  12.         <meta name="viewport" content="width=device-width, initial-scale=1">
  13.         <meta http-equiv="Content-type" content="text/html; charset=utf-8">
  14.         <meta content="" name="description"/>
  15.         <meta content="" name="author"/>
  16.         <meta name="application-name" content="NEXTCADDY"/>
  17.         <meta name="msapplication-TileColor" content="#FFFFFF" />
  18.         <meta name="msapplication-TileImage" content="mstile-144x144.png" />
  19.         <link rel="apple-touch-icon-precomposed" sizes="57x57" href="{{ asset('iconos/favicons/frontend_icon/apple-touch-icon-57x57.png') }}">
  20.         <link rel="apple-touch-icon-precomposed" sizes="72x72" href="{{ asset('iconos/favicons/frontend_icon/apple-touch-icon-72x72.png') }}">
  21.         <link rel="apple-touch-icon-precomposed" sizes="114x114" href="{{ asset('iconos/favicons/frontend_icon/apple-touch-icon-114x114.png') }}">
  22.         <link rel="apple-touch-icon-precomposed" sizes="120x120" href="{{ asset('iconos/favicons/frontend_icon/apple-touch-icon-120x120.png') }}">
  23.         <link rel="apple-touch-icon-precomposed" sizes="144x144" href="{{ asset('iconos/favicons/frontend_icon/apple-touch-icon-144x144.png') }}">
  24.         <link rel="apple-touch-icon-precomposed" sizes="152x152" href="{{ asset('iconos/favicons/frontend_icon/apple-touch-icon-152x152.png') }}">
  25.         <link rel="icon" type="image/png" href="{{ asset('iconos/favicons/frontend_icon/favicon-16x16.png') }}" sizes="16x16">
  26.         <link rel="icon" type="image/png" href="{{ asset('iconos/favicons/frontend_icon/favicon-32x32.png') }}" sizes="32x32">
  27.         {#
  28.         <link href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.0/dist/semantic.min.css" rel="stylesheet" type="text/css"/>
  29.         #}
  30.         <link href="https://cdn.jsdelivr.net/npm/fomantic-ui@2.8.7/dist/semantic.min.css" rel="stylesheet" type="text/css"/>
  31.         <link rel="stylesheet" type="text/css" href="{{ asset('css/frontend/frontend_nuevo.css?v=2.19') }}"/>
  32.         <link href="https://fonts.googleapis.com/css?family=Raleway|Scope+One" rel="stylesheet">
  33.         {% block stylesheets %}{% endblock %}
  34.     </head>
  35.     {% set claseBody = "day" %}
  36.     {% if ("now"|date("H:i") >= "21:00") or (("now"|date("H:i") >= "00:00") and ("now"|date("H:i") <= "07:00")) %}
  37.         {% set claseBody = "night" %}
  38.     {% endif %}
  39.     {% if fede is defined %}
  40.         {% set claseBody = claseBody ~ " " ~ fede|upper %}
  41.     {% endif %}
  42.     <body class="{{ claseBody }}">
  43.         <div class="cover" id="cover"></div>
  44.         <div class="mobile hidden ui center aligned padded grid fluid cabecera sombra" id="cabecera">
  45.             <div class="three wide noPaddingTop noPaddingBottom column middle aligned" id="logocliente">
  46.                 {% set url = "" %}
  47.                 {% if entity is defined and not entity is null %}
  48.                     {% set url = path("_club", {id: entity.cliente.nombreCorto}) %}
  49.                 {% elseif competicion is defined and not competicion is null %}
  50.                     {% set url = path("_club", {id: competicion.organizador.cliente.nombreCorto}) %}
  51.                 {% endif %}
  52.                 <a href="{{ url }}" target="_blank">
  53.                     {% 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') %}
  54.                         {% include 'jgolf.html.twig' %}
  55.                     {% 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') %}
  56.                         {% include 'levante.html.twig' %}
  57.                     {% 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') %}
  58.                         {% include 'fcg.html.twig' %}
  59.                     {% 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') %}
  60.                         {% include 'fgm.html.twig' %}
  61.                     {% 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') %}
  62.                         {% include 'rfga.html.twig' %}
  63.                     {% 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') %}
  64.                         {% include 'lpg.html.twig' %}
  65.                     {% 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') %}
  66.                     {% endif %}
  67.                 </a>
  68.             </div>
  69.             <div class="middle aligned ten wide column" id="nombrecliente">
  70.                 <h3 class="ui grey header rale left aligned">
  71.                     <div class="content">
  72.                         {% 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') %}
  73.                             JGOLF 18.0
  74.                         {% 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') %}
  75.                             {{ 'header.levante'|trans({}, 'FrontendBundle') }}
  76.                         {% 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') %}
  77.                             {{ 'header.canaria'|trans({}, 'FrontendBundle') }}
  78.                         {% 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') %}
  79.                             {{ 'header.madrid'|trans({}, 'FrontendBundle') }}
  80.                         {% 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') %}
  81.                             {{ 'header.title'|trans({}, 'FrontendBundle') }}
  82.                         {% 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') %}
  83.                             Liga Provincial de Golf de Málaga
  84.                         {% 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') %}
  85.                             Elite Golf
  86.                         {% else %}
  87.                             NEXTCADDY
  88.                         {% endif %}
  89.                         <div class="sub header">
  90.                             {% if data is defined %}
  91.                                 {% for c in data %}{{ c.comp.club.nombre }}{% endfor %}
  92.                             {% elseif competicion is defined %}
  93.                                 {{ competicion.club.nombre }}
  94.                             {% elseif grouping is defined %}
  95.                                 {{ grouping.cliente.nombre }}
  96.                             {% else %}
  97.                                 {{ 'header.subtitle'|trans({}, 'FrontendBundle') }}
  98.                             {% endif %}
  99.                         </div>
  100.                     </div>
  101.                 </h3>
  102.             </div>
  103.             <div class="three wide column logo provider" id="logonxt">
  104.                 {% include 'nextcaddy_new.html.twig' %}
  105.             </div>
  106.         </div>
  107.         <div class="large screen computer only ui divider hidden"></div>
  108.         <div class="main ui container" id="container-ppal">
  109.             {% block container %}{% endblock %}
  110.         </div>
  111.         <div class="ui divider hidden"></div>
  112.         {% include 'frontend_footer_new.html.twig' %}
  113.         {% if competicion is defined and competicion.modo.id == 4 %}
  114.             <div class="testMark" data-tooltip="Competición de Test" data-position="right center">
  115.                 <svg viewBox="0 0 64 64">
  116.                     <g fill="none" stroke="#FFF" stroke-linecap="round" stroke-miterlimit="10" stroke-width="3" stroke-linejoin="round">
  117.                         <circle cx="31" cy="20" r="2"/>
  118.                         <circle cx="35" cy="32" r="2" />
  119.                         <circle cx="22" cy="48" r="2"  />
  120.                         <circle cx="38" cy="51" r="4" />
  121.                         <path d="M48 40l-7.5-15a5 5 0 0 1-.5-2.2V2H24v20.8a5 5 0 0 1-.5 2.2L16 40" />
  122.                         <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" />
  123.                     </g>
  124.                 </svg>
  125.             </div>
  126.         {% endif %}
  127.         {#<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>#}
  128.         <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>
  129.         <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/fomantic-ui@2.8.7/dist/semantic.min.js"></script>
  130.         <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/gsap/1.14.2/TweenMax.min.js"></script>
  131.         <script type="text/javascript" src="{{ asset('js/frontend/frontend_header.js') }}"></script>
  132.         <script id="script-scroll-magic" type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/ScrollMagic/1.3.0/jquery.scrollmagic.min.js"></script>
  133.         <script src="{{ asset('bundles/fosjsrouting/js/router.js') }}"></script>
  134.         <script src="{{ path('fos_js_routing_js', {"callback": "fos.Router.setData"}) }}"></script>
  135.         <script src="https://cdn.jsdelivr.net/npm/instant.page@5.1.0/instantpage.min.js"></script>
  136.         <script>
  137.             var scrollMagicController;
  138.             $('.message .close').on('click', function() {
  139.                 $(this).closest('.message').transition('fade');
  140.             });
  141.             // Get IE or Edge browser version. Si no es IE, cargamos el scrollmagic
  142.             if (!detectIE()) {
  143.                 scrollMagicController = new ScrollMagic();
  144.             }
  145.             /**
  146.             * detect IE
  147.             */
  148.             function detectIE() {
  149.                 var res = false;
  150.                 var ua = window.navigator.userAgent;
  151.                 var msie = ua.indexOf('MSIE ');
  152.                 if (msie > 0) {
  153.                     // IE 10 or older
  154.                     res = true;
  155.                 }
  156.                 var trident = ua.indexOf('Trident/');
  157.                 if (trident > 0) {
  158.                     // IE 11 => return version number
  159.                     var rv = ua.indexOf('rv:');
  160.                     res = true;
  161.                 }
  162.                 var edge = ua.indexOf('Edge/');
  163.                 if (edge > 0) {
  164.                     // Edge (IE 12+) => return version number
  165.                     res = true;
  166.                 }
  167.                 // other browser
  168.                 return res;
  169.             }
  170.             //smooth scroll
  171.             $(function () {
  172.                 $('a[href*="#"]:not([href="#"])').click(function () {
  173.                     if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
  174.                         var target = $(this.hash);
  175.                         target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
  176.                         if (target.length) {
  177.                             $('html, body').animate({
  178.                                 scrollTop: target.offset().top
  179.                             }, 1000);
  180.                             return false;
  181.                         }
  182.                     }
  183.                 });
  184.             });
  185.             var colectaGA = function(){
  186.                 $.get(Routing.generate('collect'), function(data) {
  187.                     //console.log(data);
  188.                 });
  189.             };
  190.             if(!(window.ga && ga.create)){
  191.                 //colectaGA();
  192.             }
  193.             if(!window.google_tag_manager){
  194.                 //colectaGA();
  195.             }
  196.             $(".footer .accordion").accordion({});
  197.         </script>
  198.         <!-- Google Analytics -->
  199.         <script type="text/plain" data-cookie-consent="tracking">
  200.             window.dataLayer = window.dataLayer || [];
  201.                       function gtag(){dataLayer.push(arguments);}
  202.                       gtag('js', new Date());
  203.                       gtag('config', 'G-CX2CY455X9');
  204.         </script>
  205.         <!-- end of Google Analytics-->
  206.         <script type="text/javascript" charset="UTF-8" src="//cdn.cookie-script.com/s/d15e906aa1580a76686a205833f60d8d.js"></script>
  207.         <script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
  208.         <script type="text/javascript" src="{{ asset('js/shared/utilToast.js?v=1.02') }}"></script>
  209.         {% block javascripts %}{% endblock %}
  210.     </body>
  211. </html>