templates/seo/seo.html.twig line 1

Open in your IDE?
  1. {% set ruta = app.request.get('_route') %}
  2. {% set params = app.request.attributes.get('_route_params')  %}
  3. {% set seo = qi.seo(app.request.getUri(),url('homepage')) %}
  4. {% if seo %}
  5.     <title>{{ seo.titulo }}</title>
  6.     <meta name="description" content="{{ seo.descripcion }}" />
  7.     <link rel="image_src" href="{{ seo.imagen }}"/>
  8.     <meta property="og:title" content="{{ seo.titulo }}" />
  9.     <meta property="og:type" content="article" />
  10.     <meta property="og:url" content="{{ url(ruta,params) }}" />
  11.     <meta property="og:image" content="{{ seo.imagen }}" />
  12.     <meta property="og:description" content="{{ seo.descripcion }}" />
  13. {% endif %}
  14. <link href="https://cdn.jsdelivr.net/npm/sweetalert2@10.0.2/dist/sweetalert2.min.css" rel="stylesheet" type="text/css">
  15. <script src="https://cdn.jsdelivr.net/npm/sweetalert2@9.17.1/dist/sweetalert2.all.min.js"></script>
  16. {#<!-- Global site tag (gtag.js) - Google Ads: 610291838 -->#}
  17. {#<script async src="https://www.googletagmanager.com/gtag/js?id=AW-610291838"></script>#}
  18. {#<script>#}
  19. {#    window.dataLayer = window.dataLayer || [];#}
  20. {#    function gtag(){dataLayer.push(arguments);}#}
  21. {#    gtag('js', new Date());#}
  22. {#    gtag('config', 'AW-610291838');#}
  23. {#</script>#}
  24. <script async src="https://www.googletagmanager.com/gtag/js?id=UA-183047150-1"></script>
  25. <script>
  26.     window.dataLayer = window.dataLayer || [];
  27.     function gtag(){dataLayer.push(arguments);}
  28.     gtag('js', new Date());
  29. </script>
  30. <!-- Google Tag Manager -->
  31. <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
  32. new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
  33. j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
  34. 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
  35. })(window,document,'script','dataLayer','GTM-MFJ9566');</script>
  36. <!-- End Google Tag Manager -->
  37. <!-- Facebook Pixel Code -->
  38. <script>
  39.     !function(f,b,e,v,n,t,s)
  40.     {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
  41.         n.callMethod.apply(n,arguments):n.queue.push(arguments)};
  42.         if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
  43.         n.queue=[];t=b.createElement(e);t.async=!0;
  44.         t.src=v;s=b.getElementsByTagName(e)[0];
  45.         s.parentNode.insertBefore(t,s)}(window, document,'script',
  46.         'https://connect.facebook.net/en_US/fbevents.js');
  47.     fbq('init', '2777911759103570');
  48.     fbq('track', 'PageView');
  49. </script>
  50. <noscript><img height="1" width="1" style="display:none"
  51.                src="https://www.facebook.com/tr?id=2777911759103570&ev=PageView&noscript=1"
  52.     /></noscript>
  53. <!-- End Facebook Pixel Code -->