templates/front/_common/_base.html.twig line 1

Open in your IDE?
  1. {% set STATIC_URL = asset('static/') %}
  2. {% set BUILD_ID = '1' %}
  3. <!DOCTYPE html>
  4. <html lang="{{ app.request.locale }}">
  5. <head>
  6.     <meta charset="utf-8">
  7.     <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no"/>
  8.     <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
  9.     <meta name="theme-color" content="#000000"/>
  10.     <link rel="stylesheet" href="{{ asset('static/js/validationform/validationEngine.jquery.css') }}">
  11.     <link rel="stylesheet" href="{{ asset('static/css/styles.css') }}">
  12.     <link rel="stylesheet" href="{{ asset('static/css/blocks_styl.css') }}">
  13.     {% set seo = null %}
  14.     {% if app.request.attributes.get('_route') != '' %}
  15.         {% set url_seo = path(app.request.attributes.get('_route'),
  16.             app.request.attributes.get('_route_params')) %}
  17.         {% set seo = url_seo|metatags %}
  18.     {% endif %}
  19.     {% block linkcanonical %}{% endblock %}
  20.     {% include 'front/_common/_metatags.html.twig' %}
  21.     {% if info.scriptsMeta %}
  22.         {{ info.scriptsMeta|raw }}
  23.     {% endif %}
  24.     {% if seo is not null and seo.scriptsMeta %}
  25.         {{ seo.scriptsMeta|raw }}
  26.     {% endif %}
  27.     {% if info.seoFavicon %}
  28.         {# TODO: Check thumbnail #}
  29.         <!-- inicio favicon  iphone retina, ipad, iphone en orden-->
  30.         <link rel="icon" type="image/png" href="{{ asset(info.seoFavicon|image_path) }}"/>
  31.         <link rel="apple-touch-icon-precomposed" sizes="114x114" href="{{ asset(info.seoFavicon|image_path) }}">
  32.         <link rel="apple-touch-icon-precomposed" sizes="72x72" href="{{ asset(info.seoFavicon|image_path) }}">
  33.         <link rel="apple-touch-icon-precomposed" href="{{ asset(info.seoFavicon|image_path) }}">
  34.         <!-- end favicon -->
  35.     {% endif %}
  36.     {% block cssadicional %}{% endblock %}
  37.     {# Start CSS Links #}
  38.     {# End CSS Links #}
  39.     {% if info.scriptsHeader %}
  40.         {{ info.scriptsHeader|raw }}
  41.     {% endif %}
  42.     {% if seo is not null and seo.scriptsHeader %}
  43.         {{ seo.scriptsHeader|raw }}
  44.     {% endif %}
  45. </head>
  46. <body class="{% block classbody %}{% endblock %}">
  47. {% if info.scriptsBody %}
  48.     {{ info.scriptsBody|raw }}
  49. {% endif %}
  50. {% if seo is not null and seo.scriptsBody %}
  51.     {{ seo.scriptsBody|raw }}
  52. {% endif %}
  53. {% include 'front/_common/_header.html.twig' %}
  54. {% block content %}{% endblock %}
  55. {% include 'front/_common/_footer.html.twig' %}
  56. {# Start JS Links #}
  57. <script src="{{ asset('static/js/jquery-3.2.1.min.js') }}"></script>
  58. <script src="{{ asset('static/js/main.js') }}"></script>
  59. <script src="{{ asset('static/js/header.js') }}"></script>
  60. {# End JS Links #}
  61. {% block jsfinal %}{% endblock %}
  62. <script>
  63.     $(function(){
  64.         //+++ FOOTER RESPONSIVE - ACORDEON +++
  65.         if($(window).innerWidth() < 1025){
  66.             $('.footer_subtitle_resp').on('click', function(event){
  67.                 console.log("footer aquiiiii");
  68.                 if ($(this).hasClass('active')) {
  69.                     $(this).removeClass('active').parent().find('.footer_menu').stop().slideUp();
  70.                 }else{
  71.                     $('.footer_subtitle_resp').removeClass('active');
  72.                     $('.footer_menu').stop().slideUp();
  73.                     $(this).addClass('active').parent().find('.footer_menu').stop().slideToggle();
  74.                 };
  75.             })
  76.         }
  77.         //<<< END >>>
  78.     });
  79.     {# Start Custom JS Links #}
  80.     {# End Custom JS Links #}
  81.     function storeUtms($data) {
  82.         $.ajax({
  83.             url: '{{ path('store_utms') }}',
  84.             type: 'get',
  85.             dataType: 'json',
  86.             data: $data,
  87.             success: function (data) {
  88.                 updateUtm(data);
  89.             }
  90.         })
  91.     }
  92.     function updateUtm(data) {
  93.         if (data['utm_source']) {
  94.             $('.form_utmsource').val(data['utm_source']);
  95.         }
  96.         if (data['utm_medium']) {
  97.             $('.form_utmmedium').val(data['utm_medium']);
  98.         }
  99.         if (data['utm_source']) {
  100.             $('.form_utmsource').val(data['utm_source']);
  101.         }
  102.         if (data['utm_campaign']) {
  103.             $('.form_utmcampaign').val(data['utm_campaign']);
  104.         }
  105.         if (data['utm_term']) {
  106.             $('.form_utmterm').val(data['utm_term']);
  107.         }
  108.         if (data['utm_content']) {
  109.             $('.form_utmcontent').val(data['utm_content']);
  110.         }
  111.         if (data['utm_gclid']) {
  112.             $('.form_gclid').val(data['utm_gclid']);
  113.         }
  114.     }
  115.     let utm_data = {};
  116.     {% set utm_params = ['utm_source', 'utm_campaign', 'utm_medium', 'utm_term', 'utm_content', 'gclid'] %}
  117.     {% for u in utm_params %}
  118.         {% if app.request.get(u)|default('') %}
  119.             utm_data['{{ u }}'] = '{{ app.request.get(u) }}';
  120.         {% endif %}
  121.     {% endfor %}
  122.     if (!$.isEmptyObject(utm_data)) {
  123.         storeUtms(utm_data);
  124.     }
  125.     {% include 'front/templates/utms.html.twig' %}
  126. </script>
  127. {% if info.scriptsFooter %}
  128.     {{ info.scriptsFooter|raw }}
  129. {% endif %}
  130. {% if seo is not null and seo.scriptsFooter %}
  131.     {{ seo.scriptsFooter|raw }}
  132. {% endif %}
  133. </body>
  134. </html>