templates/front/base/legacy_head.html.twig line 1

Open in your IDE?
  1. <head>
  2.     <meta charset="UTF-8">
  3.     <title>{{ data.meta_title }}</title>
  4.     {% if constant('IS_MOBILE') %}
  5.         <meta content="width=device-width; initial-scale=1.0; maximum-scale=1.0; minimum-scale=1.0; user-scalable=no;" name="viewport">
  6.         <meta content="True" name="HandheldFriendly">
  7.         <meta content="320" name="MobileOptimized">
  8.     {% else %}
  9.         <meta name="SKYPE_TOOLBAR" content ="SKYPE_TOOLBAR_PARSER_COMPATIBLE"/>
  10.     {% endif %}
  11.     <meta name="description" content="{{ data.meta_description }}">
  12.     <meta name="keywords" content="{{ data.meta_keywords }}">
  13.     {% if data.meta_image_fb %}
  14.         <meta property="og:title" content="{% if data.meta_title_fb.code is defined %}{{ data.meta_title }}{% else %}{{ data.meta_title_fb }}{% endif %}"/>
  15.         <meta property="og:type" content="website"/>
  16.         <meta property="og:image" content="{% if data.meta_image_fb.code is defined %}{% else %}{{ data.meta_image_fb }}{% endif %}"/>
  17.         <meta property="og:url" content="{{ current_url }}"/>
  18.         <meta property="og:description" content="{% if data.meta_description_fb.code is defined %}{{ truncate(data.meta_description, 0, 160) }}{% else %}{{ data.meta_description_fb }}{% endif %}"/>
  19.         <meta property="og:site_name" content="{% if data.meta_title.code is defined %}{% else %}{{ data.meta_title }}{% endif %}"/>
  20.     {% elseif app.session.get('controller') == 'searchController' or app.session.get('controller') == 'accountController' %}
  21.         <meta name="robots" content="noindex,nofollow">
  22.     {% endif %}
  23.     {% if data.meta_no_index %}
  24.         <meta name="robots" content="noindex,nofollow">
  25.     {% endif %}
  26.     {% if data.metaFollow %}
  27.         <meta name="robots" content="index,follow">
  28.     {% endif %}
  29.     {% for lang in data.languages %}
  30.         <link rel="alternate" href="{{ lang.link }}" hreflang="{% if lang.iso_code_real is not empty %}{{ lang.iso_code_real }}{% else %}{{ lang.iso_code }}{% endif %}" />
  31.     {% endfor %}
  32.     {% if data.canonical is not empty %}
  33.         <link rel="canonical" href="{{ data.canonical }}" />
  34.     {% endif %}
  35.     <link href='https://fonts.googleapis.com/css?family=Roboto+Condensed:400,300,400italic,700|Roboto:400,500,700,300,400italic,700italic&subset=latin,cyrillic-ext,cyrillic,latin-ext,greek-ext,greek' rel='stylesheet' type='text/css'>
  36.     <link href="//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.css" rel="stylesheet">
  37.     {% if not constant('IS_MOBILE') %}
  38.         <script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
  39.         <link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
  40.     {% endif %}
  41.     {{ encore_entry_link_tags('bigbuy-ui-css') }}
  42.     {{ encore_entry_link_tags('bigbuy-ui') }}
  43.     {{ data.css_scripts | raw }}
  44.     <link rel="stylesheet" href="{{ base_url_img }}public/css/magnific-popup.css">
  45.     <link rel="stylesheet" href="{{ base_url_img }}public/css/lightbox.css" type="text/css" media="screen" />
  46.     <link rel="stylesheet" href="{{ base_url_img }}public/fontawesome/css/all.min.css" type="text/css" media="screen" />
  47.     <script>
  48.         var baseUri = '{{ base_url }}';
  49.         var urlPagination = '{{ base_url }}category/ajax_show_products';
  50.         var currentLang = '{{ app.session.get('lang') }}';
  51.         {% if constant('IS_MOBILE') %}
  52.             var sessionLang = '{{ app.session.get('lang') }}';
  53.             var back = false;
  54.         {% endif %}
  55.     </script>
  56.     {% include 'front/base/js_vwo.html.twig' %}
  57.             
  58.     {# Didomi scripts #}
  59.     {% include 'front/base/didomi_scripts.html.twig' %}
  60.     {% include 'front/base/empathy_scripts.html.twig' %}
  61.     {{ encore_entry_script_tags('taxonomyCardList') }}
  62.     {{ encore_entry_script_tags('taxonomyCardListMobile') }}
  63.     {% set wholesaleGroup = (app.session.get('customer_group') == constant('App\\Entity\\System\\Customer::WHOLESALE_GROUP')) ? 1 : 0 %}
  64.     <script>var wholeSaleGroup =  {{ wholesaleGroup }};</script>
  65.     {{ data.js_text | raw }}
  66.     {{ data.js_scripts | raw }}
  67.     {{ data.tooltip | raw }}
  68. </head>