templates/base.html.twig line 1

Open in your IDE?
  1. {% set page = getPage(app.request.attributes.get("_controller")) %}
  2. <!DOCTYPE html>
  3. <html lang="{{ app.request.locale }}">
  4.     <head>
  5.         <meta charset="UTF-8">
  6.         <meta name="viewport" content="width=device-width, initial-scale=1.0">
  7.         <link type="image/png"  rel="icon"
  8.               href="{{ asset('assets/img/icone.png') }}">
  9.         {#        <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">

  10.                 <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">

  11.                 <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">

  12.                 <link rel="manifest" href="/site.webmanifest">
  13. 
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#15683A">
  14. 
<meta name="msapplication-TileColor" content="#15683A">#}
  15.         {#    <a href="{{path('name')}}"></a>#}
  16.         <link rel="apple-touch-icon" sizes="180x180" href="{{ asset('assets/img/apple-touch-icon.png') }}">
  17.         <link rel="icon" type="image/png" sizes="32x32" href="{{ asset('assets/img/favicon-32x32.png') }}">
  18.         <link rel="icon" type="image/png" sizes="16x16" href="{{ asset('assets/img/favicon-16x16.png') }}">
  19.         <link rel="manifest" href="{{ asset('assets/img/site.webmanifest') }}">
  20.         <link rel="mask-icon" href="{{ asset('assets/img/safari-pinned-tab.svg') }}" color="#15683A">
  21.         <meta name="msapplication-TileColor" content="#15683A">
  22.         {% block metaTags %}
  23.             <meta name="description" content="{{ page ? page.metaDescription : "Concepteur et fabricant de machines pour abattoir." }}">
  24.             <title>{{ page ? page.metaTitle : siteTitle }}</title>
  25.             <meta property="og:type" content="website">
  26.             <meta property="og:site_name" content="FACOMIA">
  27.             <meta property="og:url" content="{{ app.request.uri }}">
  28.             <meta property="og:image" content="{{ asset('assets/img/logo-ogg.jpg') }}">
  29.             <meta property="og:title" content="{{ page ? page.metaTitle : "FACOMIA - Le pionnier des constructeurs français de machines pour abattoir" }}">
  30.             <meta property="og:description" content="{{ page ? page.metaDescription : "Concepteur et fabricant de machines pour abattoir." }}">
  31.         {% endblock %}
  32.         {% set metaColor = getMetaColor() %}
  33.         {% if metaColor %}
  34.             <meta name="theme-color" content="{{ getMetaColor() }}">
  35.         {% endif %}
  36.         {{ encore_entry_link_tags('app') }}
  37.         {% block stylesheets %}
  38.         {% endblock %}
  39.         {% set googleAnalytic = getGoogleAnalytic() %}
  40.         {% if googleAnalytic %}
  41.             <!-- Google tag (gtag.js) -->
  42.             <script async src="https://www.googletagmanager.com/gtag/js?id={{ googleAnalytic }}"></script>
  43.             <script>
  44.                 window.dataLayer = window.dataLayer || [];
  45.                 function gtag() {
  46.                     dataLayer.push(arguments);
  47.                 }
  48.                 gtag('js', new Date());
  49.                 gtag('config', '{{ googleAnalytic }}');
  50.             </script>
  51.         {% endif %}
  52.         {% set googleSearchConsole = getGoogleSearchConsole() %}
  53.         {% if googleSearchConsole %}
  54.             <meta name="google-site-verification" content="{{ googleSearchConsole }}"/>
  55.         {% endif %}
  56.         <link rel="stylesheet" href="{{ asset('assets/libs/openlayers/ol.css') }}">
  57.         <script type="text/javascript" src="{{ asset('assets/libs/openlayers/ol.js') }}"></script>
  58.         <link rel="stylesheet" href="{{ asset('assets/libs/aos/aos.css') }}">
  59.     </head>
  60.     <body data-navbar-search-url="{{ path('front_navbar_search') }}" {% block body_tag %}{% endblock %}>
  61.         <div class="wrapper">
  62.             {% block flash %}
  63.                 {% for label, messages in app.flashes %}
  64.                     {% for key, message in messages %}
  65.                         <div class="modal fade mat-200" id="flashMessageModal" tabindex="-1" role="dialog"
  66.                              aria-labelledby="flashMessageModalLabel" aria-hidden="true">
  67.                             <div class="modal-dialog" role="document">
  68.                                 <div class="modal-content">
  69.                                     <div class="modal-body">
  70.                                         <div class="text-right">
  71.                                             <button type="button" class="close" data-dismiss="modal" aria-label="Close">
  72.                                                 <span aria-hidden="true">&times;</span>
  73.                                             </button>
  74.                                         </div>
  75.                                         <div>
  76.                                             {% if label == "success" %}
  77.                                                 <i class="fa fa-check text-success"></i>
  78.                                             {% else %}
  79.                                                 <i class="fa fa-warning text-danger"></i>
  80.                                             {% endif %}
  81.                                             {{ message|trans|raw }}
  82.                                         </div>
  83.                                     </div>
  84.                                 </div>
  85.                             </div>
  86.                         </div>
  87.                     {% endfor %}
  88.                 {% endfor %}
  89.             {% endblock %}
  90.             {% block navbar %}
  91.                 {#   <div class="fixed-top zi-999 bgc-white c-black pay-10">
  92.                        <div class="container">
  93.                            <div class="row align-items-center fs-14 fw-300">
  94.                                <div class="font-italic col">
  95.                                    {{ page ? page.title : siteTitle }}
  96.                                </div>
  97.                            </div>
  98.                        </div>
  99.                    </div>#}
  100.                 <div class="d-none d-lg-block">
  101.                     {% include "commons/navbar.html.twig" %}
  102.                 </div>
  103.                 <div class="d-block d-lg-none">
  104.                     {% include "commons/navbarMobile.html.twig" %}
  105.                 </div>
  106.                 {#        #}
  107.             {% endblock %}
  108.         {% block body %}{% endblock %}
  109.         {% block footer %}
  110.             {% include "front/footer.html.twig" %}
  111.         {% endblock %}
  112.         <div class="position-fixed b-20 r-20 pointer scrollToTopDiv scrollToTop bgc-white pa-12">
  113.             <i class="fa-light fa-arrow-up-to-line fs-25 c-15683A"></i>
  114.         </div>
  115.     </div>
  116.     {{ encore_entry_script_tags('app') }}
  117.     <script type="text/javascript" src="{{ asset('assets/libs/aos/aos.js') }}"></script>
  118.     <script>
  119.         AOS.init({
  120.             once: true,
  121.         });
  122.     </script>
  123.     <script type="text/javascript" src="{{ asset('assets/libs/cookieconsent/cookie-consent.js') }}"></script>
  124.     <script type="text/javascript">
  125.         document.addEventListener('DOMContentLoaded', function () {
  126.             cookieconsent.run({
  127.                 "notice_banner_type": "simple",
  128.                 "consent_type": "implied",
  129.                 "palette": "light",
  130.                 "language": "fr",
  131.                 "website_name": "{{ siteTitle }}",
  132.                 "change_preferences_selector": "#changePreferences"
  133.             });
  134.         });
  135.     </script>
  136.     <script src="https://www.google.com/recaptcha/api.js" async defer></script>
  137.     {% block javascripts %}
  138.     {% endblock %}
  139. </body>
  140. </html>