templates/main/site/views/common/canvas.html.twig line 1

Open in your IDE?
  1. {% trans_default_domain 'Site' %}
  2. <!DOCTYPE HTML>
  3. <html lang="{{ app.request.locale }}">
  4.     <head>
  5.         {% if 2 == getCookieConsentVersion() %}
  6.             <link rel="stylesheet" href="https://cdn.consentmanager.mgr.consensu.org/delivery/cmp.min.css" />
  7.             <script type="text/javascript" data-cmp-ab="1" src="https://cdn.consentmanager.net/delivery/autoblocking/6e2d023889e6.js" data-cmp-host="b.delivery.consentmanager.net" data-cmp-cdn="cdn.consentmanager.net"></script>
  8.         {% endif %}
  9.         <script type="application/javascript">
  10.             {# Define the version of the cookie consent we use here 1 = old, 2 = new consentManager #}
  11.             const cc_v_td = {{ getCookieConsentVersion() }};
  12.         </script>
  13.         {% if cart is defined %}
  14.             {% set layerCart = cart %}
  15.         {% else %}
  16.             {% set layerCart = null %}
  17.         {% endif %}
  18.         {% if tracking is defined %}
  19.             {% set layerTracking = tracking %}
  20.         {% else %}
  21.             {% set layerTracking = null %}
  22.         {% endif %}
  23.         {{ getGTMLayerTag(layerTracking, layerCart, app.request.attributes.get('_route')) }}
  24.         {{ getGTMHeadTag(true) }}
  25.         <title>{% block title %}{{ 'site.head.title'|trans() }}{% endblock %}</title>
  26.         {{ getGTMEvents(app.request.attributes.get('_route')) }}
  27.         {% if 'www.brulafine.fr' == app.request.httpHost or 'brulafine.fr' == app.request.httpHost %}
  28.             <meta name="facebook-domain-verification" content="o1kd6ti8llazsusr05k31zkneknill" />
  29.         {% elseif 'www.brulafine.org' == app.request.httpHost or 'brulafine.org' == app.request.httpHost %}
  30.             <meta name="facebook-domain-verification" content="lyzgtozjtnnc2kd8rlviechgs23kem" />
  31.         {% else %}
  32. {#            {{ getFacebookMetaTag(app.request.attributes.get('_route')) }}#}
  33.         {% endif %}
  34.         {{ getCanonicalLinkTag(app.request.attributes.get('_route')) }}
  35.         <meta charset="utf-8">
  36.         <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
  37.         <meta name="mobile-web-app-capable" content="yes">
  38.         <meta name="apple-mobile-web-app-capable" content="yes"/>
  39.         <meta name="msapplication-config" content="browserconfig.xml">
  40.         <meta name="theme-color" content="#D81C60">
  41.         {% if app.request.httpHost in ["www.brulafine.fr", "brulafine.fr", "brulafine.org", "www.brulafine.org"] %}
  42.             <meta name="robots" content="noindex, nofollow">
  43.         {% elseif app.request.httpHost in ['www.brulafine.com', 'brulafine.com', 'www.brulafine.it', 'brulafine.it'] or app.environment in ['dev', 'test'] %}
  44.             <link rel="alternate" href="{{ getLocaleRoute(app.request, 'fr') }}" hreflang="fr-fr" />
  45.             <link rel="alternate" href="{{ getLocaleRoute(app.request, 'it') }}" hreflang="it-it" />
  46.             <link rel="alternate" href="{{ getLocaleRoute(app.request, 'fr') }}" hreflang="x-default" />
  47.         {% endif %}
  48.         {% block meta_description %}
  49.         {% endblock %}
  50.         {% block page_specific_meta %}{% endblock %}
  51.         <meta name="google-site-verification" content="F-4-FJljideWvHsrBxLDOxEFV8yjPWHouNBa2KXmTME"/>
  52.         <link rel="apple-touch-icon" sizes="180x180" href="{{ asset('images/main/apple-touch-icon.png') }}">
  53.         <link rel="icon" type="image/png" href="{{ asset('images/main/favicon-32x32.png') }}" sizes="32x32">
  54.         <link rel="icon" type="image/png" href="{{ asset('images/main/favicon-16x16.png') }}" sizes="16x16">
  55.         <link rel="mask-icon" href="{{ asset('images/main/safari-pinned-tab.svg') }}" color="#404040">
  56.         <link rel="shortcut icon" href="{{ asset('css/images/favicon.ico') }}">
  57.         {#<link rel="stylesheet" href="{{ asset('assets/site/javascripts/intl-tel-input/build/css/intlTelInput.css') }}">#}
  58.         {% block stylesheets %}
  59.             <link rel="stylesheet" href="{{ asset('css/main/styles.css') }}" media="all"/>
  60.             <link rel="preconnect" href="https://fonts.googleapis.com">
  61.             <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  62.             <link href="https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,wght@0,400;0,700;0,800;1,400;1,700&family=Yellowtail&display=swap" rel="stylesheet">
  63.         {% endblock stylesheets %}
  64.         {% if app.request.locale == 'fr' %}
  65.             <script type="text/javascript" src="{{ asset('js/general/p69303uni.js') }}"></script>
  66.             {% if tracking is defined %}
  67.                 {% if justPurchasedUpsell is not defined %}
  68.                     {{ getKelkooAllPagesTag(tracking) }}
  69.                 {% elseif justPurchasedUpsell is defined and justPurchasedUpsell == false %}
  70.                     {{ getKelkooAllPagesTag(tracking) }}
  71.                 {% endif %}
  72.             {% endif %}
  73.         {% endif %}
  74.         {% if tracking is defined %}
  75.             {{ showBingTag(app.request.locale, tracking) }}
  76.         {% endif %}
  77.         {{ getGoogleAnalyticsTag(app.request.locale) }}
  78.         {% if tracking is defined %}
  79.             {% if cart is defined %}
  80.                 {% if cartTotal is defined %}
  81.                     {{ getGTagEventSnippet(app.request.locale, app.request.attributes.get('_route'), tracking, cart, cartTotal) }}
  82.                 {% else %}
  83.                     {{ getGTagEventSnippet(app.request.locale, app.request.attributes.get('_route'), tracking, cart) }}
  84.                 {% endif %}
  85.             {% else %}
  86.                 {{ getGTagEventSnippet(app.request.locale, app.request.attributes.get('_route'), tracking) }}
  87.             {% endif %}
  88.         {% else %}
  89.             {% if cart is defined %}
  90.                 {% if cartTotal is defined %}
  91.                     {{ getGTagEventSnippet(app.request.locale, app.request.attributes.get('_route'), cart, cartTotal) }}
  92.                 {% else %}
  93.                     {{ getGTagEventSnippet(app.request.locale, app.request.attributes.get('_route'), cart) }}
  94.                 {% endif %}
  95.             {% else %}
  96.                 {{ getGTagEventSnippet(app.request.locale, app.request.attributes.get('_route')) }}
  97.             {% endif %}
  98.         {% endif %}
  99.         {% if justPurchasedUpsell is not defined %}
  100.             {{ getTaboolaPixel() }}
  101.             {% if tracking is defined %}
  102.                 {% if cart is defined %}
  103.                     {{ getTaboolaPixelEvent(app.request.attributes.get('_route'), tracking, cart) }}
  104.                 {% else %}
  105.                     {{ getTaboolaPixelEvent(app.request.attributes.get('_route'), tracking) }}
  106.                 {% endif %}
  107.             {% endif %}
  108.         {% elseif justPurchasedUpsell is defined and justPurchasedUpsell == false %}
  109.             {{ getTaboolaPixel() }}
  110.             {% if tracking is defined %}
  111.                 {% if cart is defined %}
  112.                     {{ getTaboolaPixelEvent(app.request.attributes.get('_route'), tracking, cart) }}
  113.                 {% else %}
  114.                     {{ getTaboolaPixelEvent(app.request.attributes.get('_route'), tracking) }}
  115.                 {% endif %}
  116.             {% endif %}
  117.         {% endif %}
  118.         {% if cart is defined %}
  119.             {{ getGtagPurchaseEventTag(app.request.attributes.get('_route'), cart) }}
  120.             {% if justPurchasedUpsell is not defined %}
  121.                 {{ getOutbrainTag(app.request.attributes.get('_route'), cart) }}
  122. {#                {{ getTaboolaPixelNew(app.request.attributes.get('_route'), cart) }}#}
  123.             {% elseif justPurchasedUpsell is defined and justPurchasedUpsell == false %}
  124.                 {{ getOutbrainTag(app.request.attributes.get('_route'), cart) }}
  125. {#                {{ getTaboolaPixelNew(app.request.attributes.get('_route'), cart) }}#}
  126.             {% endif %}
  127.         {% else %}
  128.             {{ getGtagPurchaseEventTag(app.request.attributes.get('_route')) }}
  129.             {% if justPurchasedUpsell is not defined %}
  130.                 {{ getOutbrainTag(app.request.attributes.get('_route')) }}
  131.             {% elseif justPurchasedUpsell is defined and justPurchasedUpsell == false %}
  132.                 {{ getOutbrainTag(app.request.attributes.get('_route')) }}
  133.             {% endif %}
  134.         {% endif %}
  135. {#        {{ getMicrosoftClarityTag(app.request.locale) }}#}
  136.         {% if tracking is defined %}
  137.             {{ getNudgifyScript(tracking) }}
  138.         {% endif %}
  139.   </head>
  140.   {% block body %}<body>{% endblock %}
  141. {% if tracking is defined %}
  142.     {% if cart is defined %}
  143.         {{ FbkJavascriptSDK(app.request.attributes.get('_route'), app.request.locale, tracking, cart) }}
  144.     {% else %}
  145.         {{ FbkJavascriptSDK(app.request.attributes.get('_route'), app.request.locale, tracking) }}
  146.     {% endif %}
  147. {% else %}
  148.     {{ FbkJavascriptSDK(app.request.attributes.get('_route'), app.request.locale) }}
  149. {% endif %}
  150. {% block fb_event_tag %}
  151.     {{ getFbkEventTag(app.request.locale) }} {# We want only one tag per page. If no event provided, pageview will be displayed. #}
  152. {% endblock %}
  153. {% if tracking is defined %}
  154.     {% if cart is defined %}
  155.         {{ loadMetaPixelCode(cart, tracking) }}
  156.     {% else %}
  157.         {{ loadMetaPixelCode(null, tracking) }}
  158.     {% endif %}
  159.     {% if app.user is defined %}
  160.         {{ InspectletTag(tracking, app.request.attributes.get('_route'), app.user) }}
  161.     {% else %}
  162.         {{ InspectletTag(tracking, app.request.attributes.get('_route')) }}
  163.     {% endif %}
  164. {% endif %}
  165. {% if justPurchasedUpsell is not defined %}
  166.     {{ getAdRollTag() }}
  167.     {{ getIvidTag(app.request.attributes.get('_route')) }}
  168. {% elseif justPurchasedUpsell is defined and justPurchasedUpsell == false %}
  169.     {{ getAdRollTag() }}
  170.     {{ getIvidTag(app.request.attributes.get('_route')) }}
  171. {% endif %}
  172. {% if cart is defined %}
  173.     {% if justPurchasedUpsell is not defined %}
  174.         {{ getSquaDataTag(app.request.attributes.get('_route'), cart) }}
  175.         {{ getAffilaeCommonTag(app.request.attributes.get('_route'), cart) }}
  176.         {{ getAffilaeCustomersTag(app.request.attributes.get('_route'), cart) }}
  177.         {{ getAffilaeCustomersTag(app.request.attributes.get('_route'), cart, 'new', 'b') }}
  178.         {{ getAffilaeCustomersTag(app.request.attributes.get('_route'), cart, 'old', 'a') }}
  179.         {{ getAffilaeCustomersTag(app.request.attributes.get('_route'), cart, 'old', 'b') }}
  180.     {% elseif justPurchasedUpsell is defined and justPurchasedUpsell == false %}
  181.         {{ getSquaDataTag(app.request.attributes.get('_route'), cart) }}
  182.         {{ getAffilaeCommonTag(app.request.attributes.get('_route'), cart) }}
  183.         {{ getAffilaeCustomersTag(app.request.attributes.get('_route'), cart) }}
  184.         {{ getAffilaeCustomersTag(app.request.attributes.get('_route'), cart, 'new', 'b') }}
  185.         {{ getAffilaeCustomersTag(app.request.attributes.get('_route'), cart, 'old', 'a') }}
  186.         {{ getAffilaeCustomersTag(app.request.attributes.get('_route'), cart, 'old', 'b') }}
  187.     {% endif %}
  188.     {% if displayConversionTag is defined and displayConversionTag %}
  189.         {{ getKwankoTag(app.request.attributes.get('_route'), cart) }}
  190.         {{ getAffilaeTag(app.request.attributes.get('_route'), cart) }}
  191.     {% endif %}
  192. {#    {{ getPerformcbTag(app.request.attributes.get('_route'), cart) }}#}
  193.     {% if tracking is defined %}
  194.         {% if justPurchasedUpsell is not defined %}
  195.             {{ getKelkooTag(app.request.attributes.get('_route'), tracking, cart) }}
  196.         {% elseif justPurchasedUpsell is defined and justPurchasedUpsell == false %}
  197.             {{ getKelkooTag(app.request.attributes.get('_route'), tracking, cart) }}
  198.         {% endif %}
  199.     {% endif %}
  200.     {% if justPurchasedUpsell is not defined %}
  201.         {{ getOutbrainOverTag(app.request.attributes.get('_route'), cart) }}
  202.     {% elseif justPurchasedUpsell is defined and justPurchasedUpsell == false %}
  203.         {{ getOutbrainOverTag(app.request.attributes.get('_route'), cart) }}
  204.     {% endif %}
  205.     {{ getCriteoTag(app.request.attributes.get('_route'), cart) }}
  206. {% else %}
  207.     {% if displayConversionTag is defined and displayConversionTag %}
  208.         {{ getAffilaeTag(app.request.attributes.get('_route')) }}
  209.     {% endif %}
  210.     {% if justPurchasedUpsell is not defined %}
  211.         {{ getSquaDataTag(app.request.attributes.get('_route')) }}
  212.         {{ getAffilaeCommonTag(app.request.attributes.get('_route')) }}
  213.         {{ getAffilaeCustomersTag(app.request.attributes.get('_route')) }}
  214.         {{ getAffilaeCustomersTag(app.request.attributes.get('_route'), null, 'new', 'b') }}
  215.         {{ getAffilaeCustomersTag(app.request.attributes.get('_route'), null, 'old', 'a') }}
  216.         {{ getAffilaeCustomersTag(app.request.attributes.get('_route'), null, 'old', 'b') }}
  217.         {{ getOutbrainOverTag(app.request.attributes.get('_route')) }}
  218.     {% elseif justPurchasedUpsell is defined and justPurchasedUpsell == false %}
  219.         {{ getSquaDataTag(app.request.attributes.get('_route')) }}
  220.         {{ getAffilaeCommonTag(app.request.attributes.get('_route')) }}
  221.         {{ getAffilaeCustomersTag(app.request.attributes.get('_route')) }}
  222.         {{ getAffilaeCustomersTag(app.request.attributes.get('_route'), null, 'new', 'b') }}
  223.         {{ getAffilaeCustomersTag(app.request.attributes.get('_route'), null, 'old', 'a') }}
  224.         {{ getAffilaeCustomersTag(app.request.attributes.get('_route'), null, 'old', 'b') }}
  225.         {{ getOutbrainOverTag(app.request.attributes.get('_route')) }}
  226.     {% endif %}
  227.     {{ getCriteoTag(app.request.attributes.get('_route')) }}
  228. {% endif %}
  229.     {{ firePageViewEvent() }}
  230. {% set urlAllowedForMagazine = ['brulafine.com', 'www.brulafine.com'] %}
  231. {% block page_topbar %}{% endblock %}
  232. {% block page_navigation %}{% endblock %}
  233. {% block page_content %}{% endblock %}
  234. {% block page_footer %}{% endblock %}
  235. {% block page_modals %}{% endblock %}
  236. {% block javascripts %}
  237.     <script src="https://code.jquery.com/jquery-2.2.4.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"></script>
  238.     <script src="{{ asset('js/main/vendor.min.js') }}"></script>
  239.     <script src="{{ asset('js/main/scripts.min.js') }}"></script>
  240.     <script type="application/javascript">
  241.         // define some gobal js variables.
  242.         // TODO
  243.         {#var globalIsMobile = {{ is_mobile() | default(0) }};#}
  244.         {#var globalIsTablet = {{ is_tablet() | default(0) }};#}
  245.         {% set pbcValue = 1 %}
  246.         {% if (getConfigParam(constant('App\\Entity\\Main\\SiteConfig::COACHING_MODE_NAME'))).value == constant('App\\Entity\\Main\\SiteConfig::COACHING_MODE_OPTION_CLEAN') %}
  247.             {% set pbcValue = 0 %}
  248.         {% endif %}
  249.         var globalPBCValue = {{ pbcValue }};
  250.         {#var globalIsDesktop = {{ (not is_mobile() and not is_tablet()) | default(0) }};#}
  251.     </script>
  252. {% endblock %}
  253. </body>
  254. </html>