templates/marketplace/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html class="h-100">
  3.     <head>
  4.     
  5.         {% if app.request.query.get('search_category') != null %}
  6.             {% set searchParams = app.request.query.get('search_category') %}
  7.         {% elseif  app.request.query.get('search') != null %}
  8.             {% set searchParams = app.request.query.get('search') %}
  9.         {% elseif  app.request.query.get('env') != null %}
  10.             {% set searchParams = {'env': app.request.query.get('env')} %}
  11.         {% elseif  app.request.query.get('marketplaceCategory') != null %}
  12.             {% set searchParams = {'marketplaceCategory': app.request.query.get('marketplaceCategory')} %}
  13.         {% else %}
  14.             {% set searchParams = [] %}
  15.         {% endif %}
  16.         {% set seo = seoRepo.getSeoContent(app.request.get('_route'), searchParams) %}
  17.         <meta charset="UTF-8">
  18.         <meta name="viewport" content="width=device-width, initial-scale=1">
  19.         <link rel="apple-touch-icon" href="{{ asset('build/images/favicon/cropped_logo_header_180.png') }}">
  20.         <link rel="icon" href="{{ asset('build/images/favicon/favicon_wellbing.png') }}" type="image/png">
  21.         
  22.         {# {% block title %} #}
  23.         <title>{{seo.0.seoTitle|default("WELLBING")}}</title>
  24.         <meta itemprop="name" content="{{seo.0.seoTitle|default("")}}">
  25.         <meta name="twitter:title" content="{{seo.0.seoTitle|default("")}}">
  26.         <meta property="og:title" content="{{seo.0.seoTitle|default("")}}">
  27.         <meta name="description" content="{{seo.0.seoDescription|default("")}}">
  28.         <meta itemprop="description" content="{{seo.0.seoDescription|default("")}}">
  29.         <meta name="twitter:description" content="{{seo.0.seoDescription|default("")}}">
  30.         <meta property="og:description" content="{{seo.0.seoDescription|default("")}}">
  31.         {# {% endblock %} #}
  32.         {# Run `composer require symfony/webpack-encore-bundle` and uncomment the following Encore helpers to start using Symfony UX #} 
  33.         <link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css" rel="stylesheet" />
  34.         <link href="{{ asset('fa/fontawesome-all.min.css') }}" rel="stylesheet">
  35.         <link href="{{ asset('fa-pro/css/all.min.css') }}" rel="stylesheet">
  36.         <link rel="preconnect" href="https://fonts.googleapis.com">
  37.         <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  38.         <link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@100;400;700;900&display=swap" rel="stylesheet">
  39.         <link href="https://fonts.googleapis.com/css2?family=Raleway:wght@100;400;700;900&display=swap" rel="stylesheet">
  40.         <!-- Link Swiper's CSS -->
  41.         <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swiper/swiper-bundle.min.css" />
  42.         <!-- JavaScript Bundle with Popper -->
  43.         <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0-beta1/dist/js/bootstrap.bundle.min.js" integrity="sha384-pprn3073KE6tl6bjs2QrFaJGz5/SUsLqktiwsUTF55Jfv3qYSDhgCecCxMW52nD2" crossorigin="anonymous"></script>
  44.         <!-- Jquery -->
  45.         <script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
  46.         <!-- Swiper JS -->
  47.         <script src="https://cdn.jsdelivr.net/npm/swiper/swiper-bundle.min.js"></script>
  48.         {# CHAT #}
  49.         <!-- Start of HubSpot Embed Code -->
  50.         <script type="text/javascript" id="hs-script-loader" async defer src="{{HUBSPOT.JS_URL}}"></script>
  51.         <!-- End of HubSpot Embed Code -->    
  52.         {% block stylesheets %}
  53.             {{ encore_entry_link_tags('app-marketplace') }}
  54.         {% endblock %}
  55.         <script type="text/javascript" src="{{ asset('tarteaucitron/tarteaucitron.js') }}"></script>
  56.         <script type="text/javascript">
  57.             tarteaucitron.init({
  58.             "privacyUrl": "{{ path('marketplace_app_conditionsGenerales') }}", /* Privacy policy url */
  59.             "hashtag": "#tarteaucitron", /* Open the panel with this hashtag */
  60.             "cookieName": "tarteaucitron", /* Cookie name */
  61.             "orientation": "middle", /* Banner position (top - bottom) */
  62.             "showAlertSmall": false, /* Show the small banner on bottom right */
  63.             "cookieslist": true, /* Show the cookie list */
  64.             "closePopup": false, /* Show a close X on the banner */
  65.             "showIcon": false, /* Show cookie icon to manage cookies */
  66.             "iconPosition": "BottomLeft", /* BottomRight, BottomLeft, TopRight and TopLeft */
  67.             "adblocker": false, /* Show a Warning if an adblocker is detected */
  68.             "DenyAllCta" : false, /* Show the deny all button */
  69.             "AcceptAllCta" : true, /* Show the accept all button when highPrivacy on */
  70.             "highPrivacy": true, /* HIGHLY RECOMMANDED Disable auto consent */
  71.             "handleBrowserDNTRequest": false, /* If Do Not Track == 1, disallow all */
  72.             "removeCredit": true, /* Remove credit link */
  73.             "moreInfoLink": true, /* Show more info link */
  74.             "useExternalCss": false, /* If false, the tarteaucitron.css file will be loaded */
  75.             "useExternalJs": false, /* If false, the tarteaucitron.js file will be loaded */
  76.             //"cookieDomain": ".my-multisite-domaine.fr", /* Shared cookie for multisite */
  77.             "readmoreLink": "", /* Change the default readmore link */
  78.             "mandatory": true, /* Show a message about mandatory cookies */
  79.             });
  80.             tarteaucitron.user.googletagmanagerId = 'GTM-5LX63R6V'; /* Google Tag Manager */
  81.             (tarteaucitron.job = tarteaucitron.job || []).push('googletagmanager');
  82.             (tarteaucitron.job = tarteaucitron.job || []).push('phpsessid');
  83.         </script>
  84.         <script type="text/javascript" src="{{ asset('tarteaucitron/tarteaucitronCustom.js') }}"></script>
  85.        
  86.         {% block javascripts %}
  87.             {# // <script src="https://player.vimeo.com/api/player.js"></script> #}
  88.             {{ encore_entry_script_tags('app-marketplace') }}
  89.         {% endblock %}
  90.     </head>
  91.     <body class="d-flex flex-column h-100">
  92.         <main class="flex-shrink-0">
  93.         {% include "marketplace/components/_help_modal.html.twig" %}
  94.             {% block header %}
  95.                 {% include 'marketplace/components/header.html.twig' %}
  96.             {% endblock %}
  97.             {% for label, messages in app.flashes(['warning', 'error']) %}
  98.                 {% for message in messages %}
  99.                     <div class="alert alert-{{ label }} alert-dismissible" role="alert">
  100.                         {{ message }}
  101.                         <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
  102.                     </div>
  103.                 {% endfor %}
  104.             {% endfor %}
  105.             {% block body %}{% endblock %}
  106.         </main>
  107.         {% block footer %}
  108.             {% include 'marketplace/components/footer.html.twig' %}
  109.         {% endblock %}
  110.     </body>
  111. </html>