var/cache/dev/twig/da/dadfd86fd67a37be1287b1ba32973b605f06154e2abda1746898b9cd2e9678c2.php line 51

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* base.html.twig */
  14. class __TwigTemplate_78a329586fe6dd6d562980194d0adf9aa6f78e5efd0a204907c0c1e75e10d0c3 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.             'metaTags' => [$this'block_metaTags'],
  25.             'stylesheets' => [$this'block_stylesheets'],
  26.             'body_tag' => [$this'block_body_tag'],
  27.             'flash' => [$this'block_flash'],
  28.             'navbar' => [$this'block_navbar'],
  29.             'body' => [$this'block_body'],
  30.             'footer' => [$this'block_footer'],
  31.             'javascripts' => [$this'block_javascripts'],
  32.         ];
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""base.html.twig"));
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""base.html.twig"));
  41.         // line 1
  42.         $context["page"] = $this->extensions['App\Service\AppService']->getPage(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'1$this->source); })()), "request", [], "any"falsefalsefalse1), "attributes", [], "any"falsefalsefalse1), "get", ["_controller"], "method"falsefalsefalse1));
  43.         // line 2
  44.         echo "<!DOCTYPE html>
  45. <html lang=\"";
  46.         // line 3
  47.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'3$this->source); })()), "request", [], "any"falsefalsefalse3), "locale", [], "any"falsefalsefalse3), "html"nulltrue);
  48.         echo "\">
  49.     <head>
  50.         <meta charset=\"UTF-8\">
  51.         <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">
  52.         ";
  53.         // line 9
  54.         echo "        <meta property=\"og:type\" content=\"website\">
  55.         <meta property=\"og:site_name\" content=\"DMD INOX\">
  56.         <link rel=\"apple-touch-icon\" sizes=\"180x180\" href=\"";
  57.         // line 11
  58.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/appletouch.png"), "html"nulltrue);
  59.         echo "\">
  60.         <link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"";
  61.         // line 12
  62.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/favicon-32x32.png"), "html"nulltrue);
  63.         echo "\">
  64.         <link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"";
  65.         // line 13
  66.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/favicon-16x16.png"), "html"nulltrue);
  67.         echo "\">
  68.         <link rel=\"manifest\" href=\"";
  69.         // line 14
  70.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/site.webmanifest"), "html"nulltrue);
  71.         echo "\">
  72.         <link rel=\"mask-icon\" href=\"";
  73.         // line 15
  74.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/safari-pinned-tab.svg"), "html"nulltrue);
  75.         echo "\" color=\"#3991AF\">
  76.         <meta name=\"msapplication-TileColor\" content=\"#3991AF\">
  77.         ";
  78.         // line 17
  79.         $this->displayBlock('metaTags'$context$blocks);
  80.         // line 27
  81.         echo "        ";
  82.         $context["metaColor"] = $this->extensions['App\Service\AppService']->getMetaColor();
  83.         // line 28
  84.         echo "        ";
  85.         if ((isset($context["metaColor"]) || array_key_exists("metaColor"$context) ? $context["metaColor"] : (function () { throw new RuntimeError('Variable "metaColor" does not exist.'28$this->source); })())) {
  86.             // line 29
  87.             echo "            <meta name=\"theme-color\" content=\"";
  88.             echo twig_escape_filter($this->env$this->extensions['App\Service\AppService']->getMetaColor(), "html"nulltrue);
  89.             echo "\">
  90.         ";
  91.         }
  92.         // line 31
  93.         echo "        ";
  94.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("app");
  95.         echo "
  96.         ";
  97.         // line 32
  98.         $this->displayBlock('stylesheets'$context$blocks);
  99.         // line 34
  100.         echo "
  101.         ";
  102.         // line 35
  103.         $context["gtag_id"] = "";
  104.         // line 36
  105.         echo "
  106.         ";
  107.         // line 37
  108.         if ((!== twig_compare((isset($context["gtag_id"]) || array_key_exists("gtag_id"$context) ? $context["gtag_id"] : (function () { throw new RuntimeError('Variable "gtag_id" does not exist.'37$this->source); })()), ""))) {
  109.             // line 38
  110.             echo "        <!-- Google tag (gtag.js) -->
  111.         <script async src=\"https://www.googletagmanager.com/gtag/js?id=";
  112.             // line 39
  113.             echo twig_escape_filter($this->env, (isset($context["gtag_id"]) || array_key_exists("gtag_id"$context) ? $context["gtag_id"] : (function () { throw new RuntimeError('Variable "gtag_id" does not exist.'39$this->source); })()), "html"nulltrue);
  114.             echo "\" data-cookie-consent=\"tracking\" type=\"text/plain\"></script>
  115.         <script data-cookie-consent=\"tracking\" type=\"text/plain\">
  116.             window.dataLayer = window.dataLayer || [];
  117.             function gtag() {
  118.                 dataLayer.push(arguments);
  119.             }
  120.             gtag('js',
  121.                 new Date()
  122.             );
  123.             gtag('config', '";
  124.             // line 50
  125.             echo twig_escape_filter($this->env, (isset($context["gtag_id"]) || array_key_exists("gtag_id"$context) ? $context["gtag_id"] : (function () { throw new RuntimeError('Variable "gtag_id" does not exist.'50$this->source); })()), "html"nulltrue);
  126.             echo "');
  127.         </script>
  128.         ";
  129.         }
  130.         // line 53
  131.         echo "
  132.         ";
  133.         // line 55
  134.         $context["googleSearchConsole"] = $this->extensions['App\Service\AppService']->getGoogleSearchConsole();
  135.         // line 56
  136.         echo "        ";
  137.         if ((isset($context["googleSearchConsole"]) || array_key_exists("googleSearchConsole"$context) ? $context["googleSearchConsole"] : (function () { throw new RuntimeError('Variable "googleSearchConsole" does not exist.'56$this->source); })())) {
  138.             // line 57
  139.             echo "            <meta name=\"google-site-verification\" content=\"";
  140.             echo twig_escape_filter($this->env, (isset($context["googleSearchConsole"]) || array_key_exists("googleSearchConsole"$context) ? $context["googleSearchConsole"] : (function () { throw new RuntimeError('Variable "googleSearchConsole" does not exist.'57$this->source); })()), "html"nulltrue);
  141.             echo "\"/>
  142.         ";
  143.         }
  144.         // line 59
  145.         echo "        <link rel=\"stylesheet\" href=\"";
  146.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/libs/openlayers/ol.css"), "html"nulltrue);
  147.         echo "\">
  148.         <script type=\"text/javascript\" src=\"";
  149.         // line 60
  150.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/libs/openlayers/ol.js"), "html"nulltrue);
  151.         echo "\"></script>
  152.         <link rel=\"stylesheet\" href=\"";
  153.         // line 61
  154.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/libs/aos/aos.css"), "html"nulltrue);
  155.         echo "\">
  156.     </head>
  157.     <body data-navbar-search-url=\"";
  158.         // line 63
  159.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("front_navbar_search");
  160.         echo "\" ";
  161.         $this->displayBlock('body_tag'$context$blocks);
  162.         echo ">
  163.         <div class=\"wrapper\">
  164.             ";
  165.         // line 65
  166.         $this->displayBlock('flash'$context$blocks);
  167.         // line 93
  168.         echo "            ";
  169.         $this->displayBlock('navbar'$context$blocks);
  170.         // line 143
  171.         echo "        ";
  172.         $this->displayBlock('body'$context$blocks);
  173.         // line 144
  174.         echo "        ";
  175.         $this->displayBlock('footer'$context$blocks);
  176.         // line 147
  177.         echo "        <div class=\"position-fixed b-20 r-20 scrollToTopDiv\">
  178.             <i class=\"fa fa-arrow-circle-up pointer scrollToTop fw-600 fs-40 c-65B3CD\"></i>
  179.         </div>
  180.     </div>
  181.     ";
  182.         // line 151
  183.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("app");
  184.         echo "
  185.     <script type=\"text/javascript\" src=\"";
  186.         // line 152
  187.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/libs/aos/aos.js"), "html"nulltrue);
  188.         echo "\"></script>
  189.     <script>
  190.         AOS.init({
  191.             once: true,
  192.         });
  193.     </script>
  194.     <script type=\"text/javascript\" src=\"https://www.freeprivacypolicy.com/public/cookie-consent/4.1.0/cookie-consent.js\"></script>
  195.     <script type=\"text/javascript\">
  196.         document.addEventListener('DOMContentLoaded', function () {
  197.             cookieconsent.run({
  198.                 \"notice_banner_type\": \"simple\",
  199.                 \"consent_type\": \"explicit\",
  200.                 \"palette\": \"light\",
  201.                 \"language\": \"fr\",
  202.                 \"website_name\": \"";
  203.         // line 166
  204.         echo twig_escape_filter($this->env, (isset($context["siteTitle"]) || array_key_exists("siteTitle"$context) ? $context["siteTitle"] : (function () { throw new RuntimeError('Variable "siteTitle" does not exist.'166$this->source); })()), "html"nulltrue);
  205.         echo "\",
  206.                 \"change_preferences_selector\": \"#changePreferences\",
  207.             });
  208.         });
  209.     </script>
  210.     <script src=\"https://www.google.com/recaptcha/api.js\" async defer></script>
  211.     ";
  212.         // line 175
  213.         $this->displayBlock('javascripts'$context$blocks);
  214.         // line 177
  215.         echo "</body>
  216. </html>
  217. ";
  218.         
  219.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  220.         
  221.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  222.     }
  223.     // line 17
  224.     public function block_metaTags($context, array $blocks = [])
  225.     {
  226.         $macros $this->macros;
  227.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  228.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metaTags"));
  229.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  230.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metaTags"));
  231.         // line 18
  232.         echo "            ";
  233.         // line 19
  234.         echo "            ";
  235.         // line 20
  236.         echo "            <meta property=\"og:url\" content=\"";
  237.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'20$this->source); })()), "request", [], "any"falsefalsefalse20), "uri", [], "any"falsefalsefalse20), "html"nulltrue);
  238.         echo "\">
  239.             <meta name=\"description\" content=\"";
  240.         // line 21
  241.         echo twig_escape_filter($this->env, (((isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'21$this->source); })())) ? (twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'21$this->source); })()), "metaDescription", [], "any"falsefalsefalse21)) : ((isset($context["siteTitle"]) || array_key_exists("siteTitle"$context) ? $context["siteTitle"] : (function () { throw new RuntimeError('Variable "siteTitle" does not exist.'21$this->source); })()))), "html"nulltrue);
  242.         echo "\">
  243.             <title>";
  244.         // line 22
  245.         echo twig_escape_filter($this->env, (((isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'22$this->source); })())) ? (twig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'22$this->source); })()), "metaTitle", [], "any"falsefalsefalse22)) : ((isset($context["siteTitle"]) || array_key_exists("siteTitle"$context) ? $context["siteTitle"] : (function () { throw new RuntimeError('Variable "siteTitle" does not exist.'22$this->source); })()))), "html"nulltrue);
  246.         echo "</title>
  247.             <meta property=\"og:image\" content=\"";
  248.         // line 23
  249.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/img/logo.svg"), "html"nulltrue);
  250.         echo "\">
  251.             <meta property=\"og:title\" content=\"";
  252.         // line 24
  253.         (((isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'24$this->source); })())) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'24$this->source); })()), "metaTitle", [], "any"falsefalsefalse24), "html"nulltrue))) : (print ("DMD INOX - Raccords, vannes & accessoires de tuyauterie inox")));
  254.         echo "\">
  255.             <meta property=\"og:description\" content=\"";
  256.         // line 25
  257.         (((isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'25$this->source); })())) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'25$this->source); })()), "metaDescription", [], "any"falsefalsefalse25), "html"nulltrue))) : (print ("Nous sommes à la fois concepteurs, fabricants, négociants et vendeurs d’accessoires de tuyauterie inox des plus basiques aux plus complexes.")));
  258.         echo "\">
  259.         ";
  260.         
  261.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  262.         
  263.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  264.     }
  265.     // line 32
  266.     public function block_stylesheets($context, array $blocks = [])
  267.     {
  268.         $macros $this->macros;
  269.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  270.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  271.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  272.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  273.         // line 33
  274.         echo "        ";
  275.         
  276.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  277.         
  278.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  279.     }
  280.     // line 63
  281.     public function block_body_tag($context, array $blocks = [])
  282.     {
  283.         $macros $this->macros;
  284.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  285.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body_tag"));
  286.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  287.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body_tag"));
  288.         
  289.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  290.         
  291.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  292.     }
  293.     // line 65
  294.     public function block_flash($context, array $blocks = [])
  295.     {
  296.         $macros $this->macros;
  297.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  298.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""flash"));
  299.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  300.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""flash"));
  301.         // line 66
  302.         echo "                ";
  303.         $context['_parent'] = $context;
  304.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'66$this->source); })()), "flashes", [], "any"falsefalsefalse66));
  305.         foreach ($context['_seq'] as $context["label"] => $context["messages"]) {
  306.             // line 67
  307.             echo "                    ";
  308.             $context['_parent'] = $context;
  309.             $context['_seq'] = twig_ensure_traversable($context["messages"]);
  310.             foreach ($context['_seq'] as $context["key"] => $context["message"]) {
  311.                 // line 68
  312.                 echo "                        <div class=\"modal fade mat-200\" id=\"flashMessageModal\" tabindex=\"-1\" role=\"dialog\"
  313.                              aria-labelledby=\"flashMessageModalLabel\" aria-hidden=\"true\">
  314.                             <div class=\"modal-dialog\" role=\"document\">
  315.                                 <div class=\"modal-content\">
  316.                                     <div class=\"modal-body\">
  317.                                         <div class=\"text-right\">
  318.                                             <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
  319.                                                 <span aria-hidden=\"true\">&times;</span>
  320.                                             </button>
  321.                                         </div>
  322.                                         <div>
  323.                                             ";
  324.                 // line 79
  325.                 if ((=== twig_compare($context["label"], "success"))) {
  326.                     // line 80
  327.                     echo "                                                <i class=\"fa fa-check text-success\"></i>
  328.                                             ";
  329.                 } else {
  330.                     // line 82
  331.                     echo "                                                <i class=\"fa fa-warning text-danger\"></i>
  332.                                             ";
  333.                 }
  334.                 // line 84
  335.                 echo "                                            ";
  336.                 echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($context["message"]);
  337.                 echo "
  338.                                         </div>
  339.                                     </div>
  340.                                 </div>
  341.                             </div>
  342.                         </div>
  343.                     ";
  344.             }
  345.             $_parent $context['_parent'];
  346.             unset($context['_seq'], $context['_iterated'], $context['key'], $context['message'], $context['_parent'], $context['loop']);
  347.             $context array_intersect_key($context$_parent) + $_parent;
  348.             // line 91
  349.             echo "                ";
  350.         }
  351.         $_parent $context['_parent'];
  352.         unset($context['_seq'], $context['_iterated'], $context['label'], $context['messages'], $context['_parent'], $context['loop']);
  353.         $context array_intersect_key($context$_parent) + $_parent;
  354.         // line 92
  355.         echo "            ";
  356.         
  357.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  358.         
  359.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  360.     }
  361.     // line 93
  362.     public function block_navbar($context, array $blocks = [])
  363.     {
  364.         $macros $this->macros;
  365.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  366.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""navbar"));
  367.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  368.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""navbar"));
  369.         // line 94
  370.         echo "                ";
  371.         // line 103
  372.         echo "                <div class=\"d-none d-lg-block\">
  373.                     ";
  374.         // line 104
  375.         $this->loadTemplate("commons/navbar.html.twig""base.html.twig"104)->display($context);
  376.         // line 105
  377.         echo "                </div>
  378.                 <div class=\"d-block d-lg-none\">
  379.                     ";
  380.         // line 107
  381.         $this->loadTemplate("commons/navbarMobile.html.twig""base.html.twig"107)->display($context);
  382.         // line 108
  383.         echo "                </div>
  384.                 ";
  385.         // line 142
  386.         echo "            ";
  387.         
  388.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  389.         
  390.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  391.     }
  392.     // line 143
  393.     public function block_body($context, array $blocks = [])
  394.     {
  395.         $macros $this->macros;
  396.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  397.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  398.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  399.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  400.         
  401.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  402.         
  403.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  404.     }
  405.     // line 144
  406.     public function block_footer($context, array $blocks = [])
  407.     {
  408.         $macros $this->macros;
  409.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  410.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  411.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  412.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  413.         // line 145
  414.         echo "            ";
  415.         $this->loadTemplate("front/footer.html.twig""base.html.twig"145)->display($context);
  416.         // line 146
  417.         echo "        ";
  418.         
  419.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  420.         
  421.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  422.     }
  423.     // line 175
  424.     public function block_javascripts($context, array $blocks = [])
  425.     {
  426.         $macros $this->macros;
  427.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  428.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  429.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  430.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  431.         // line 176
  432.         echo "    ";
  433.         
  434.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  435.         
  436.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  437.     }
  438.     /**
  439.      * @codeCoverageIgnore
  440.      */
  441.     public function getTemplateName()
  442.     {
  443.         return "base.html.twig";
  444.     }
  445.     /**
  446.      * @codeCoverageIgnore
  447.      */
  448.     public function isTraitable()
  449.     {
  450.         return false;
  451.     }
  452.     /**
  453.      * @codeCoverageIgnore
  454.      */
  455.     public function getDebugInfo()
  456.     {
  457.         return array (  488 => 176,  478 => 175,  468 => 146,  465 => 145,  455 => 144,  437 => 143,  427 => 142,  423 => 108,  421 => 107,  417 => 105,  415 => 104,  412 => 103,  410 => 94,  400 => 93,  390 => 92,  384 => 91,  370 => 84,  366 => 82,  362 => 80,  360 => 79,  347 => 68,  342 => 67,  337 => 66,  327 => 65,  309 => 63,  299 => 33,  289 => 32,  277 => 25,  273 => 24,  269 => 23,  265 => 22,  261 => 21,  256 => 20,  254 => 19,  252 => 18,  242 => 17,  230 => 177,  228 => 175,  216 => 166,  199 => 152,  195 => 151,  189 => 147,  186 => 144,  183 => 143,  180 => 93,  178 => 65,  171 => 63,  166 => 61,  162 => 60,  157 => 59,  151 => 57,  148 => 56,  146 => 55,  142 => 53,  136 => 50,  122 => 39,  119 => 38,  117 => 37,  114 => 36,  112 => 35,  109 => 34,  107 => 32,  102 => 31,  96 => 29,  93 => 28,  90 => 27,  88 => 17,  83 => 15,  79 => 14,  75 => 13,  71 => 12,  67 => 11,  63 => 9,  56 => 3,  53 => 2,  51 => 1,);
  458.     }
  459.     public function getSourceContext()
  460.     {
  461.         return new Source("{% set page = getPage(app.request.attributes.get(\"_controller\")) %}
  462. <!DOCTYPE html>
  463. <html lang=\"{{ app.request.locale }}\">
  464.     <head>
  465.         <meta charset=\"UTF-8\">
  466.         <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">
  467.         {# <link rel=\"icon\"
  468.                href=\"{{ asset('assets/img/appletouch.png') }}\">#}
  469.         <meta property=\"og:type\" content=\"website\">
  470.         <meta property=\"og:site_name\" content=\"DMD INOX\">
  471.         <link rel=\"apple-touch-icon\" sizes=\"180x180\" href=\"{{ asset('assets/img/appletouch.png') }}\">
  472.         <link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"{{ asset('assets/img/favicon-32x32.png') }}\">
  473.         <link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"{{ asset('assets/img/favicon-16x16.png') }}\">
  474.         <link rel=\"manifest\" href=\"{{ asset('assets/img/site.webmanifest') }}\">
  475.         <link rel=\"mask-icon\" href=\"{{ asset('assets/img/safari-pinned-tab.svg') }}\" color=\"#3991AF\">
  476.         <meta name=\"msapplication-TileColor\" content=\"#3991AF\">
  477.         {% block metaTags %}
  478.             {#            <meta property=\"og:title\" content=\"DMD INOX - Raccords, vannes & accessoires de tuyauterie inox\">#}
  479.             {#            <meta property=\"og:description\" content=\"\">#}
  480.             <meta property=\"og:url\" content=\"{{ app.request.uri }}\">
  481.             <meta name=\"description\" content=\"{{ page ? page.metaDescription : siteTitle }}\">
  482.             <title>{{ page ? page.metaTitle : siteTitle }}</title>
  483.             <meta property=\"og:image\" content=\"{{ asset('assets/img/logo.svg') }}\">
  484.             <meta property=\"og:title\" content=\"{{ page ? page.metaTitle : \"DMD INOX - Raccords, vannes & accessoires de tuyauterie inox\" }}\">
  485.             <meta property=\"og:description\" content=\"{{ page ? page.metaDescription : \"Nous sommes à la fois concepteurs, fabricants, négociants et vendeurs d’accessoires de tuyauterie inox des plus basiques aux plus complexes.\" }}\">
  486.         {% endblock %}
  487.         {% set metaColor = getMetaColor() %}
  488.         {% if metaColor %}
  489.             <meta name=\"theme-color\" content=\"{{ getMetaColor() }}\">
  490.         {% endif %}
  491.         {{ encore_entry_link_tags('app') }}
  492.         {% block stylesheets %}
  493.         {% endblock %}
  494.         {% set gtag_id = '' %}
  495.         {% if gtag_id != '' %}
  496.         <!-- Google tag (gtag.js) -->
  497.         <script async src=\"https://www.googletagmanager.com/gtag/js?id={{ gtag_id }}\" data-cookie-consent=\"tracking\" type=\"text/plain\"></script>
  498.         <script data-cookie-consent=\"tracking\" type=\"text/plain\">
  499.             window.dataLayer = window.dataLayer || [];
  500.             function gtag() {
  501.                 dataLayer.push(arguments);
  502.             }
  503.             gtag('js',
  504.                 new Date()
  505.             );
  506.             gtag('config', '{{ gtag_id }}');
  507.         </script>
  508.         {% endif %}
  509.         {% set googleSearchConsole = getGoogleSearchConsole() %}
  510.         {% if googleSearchConsole %}
  511.             <meta name=\"google-site-verification\" content=\"{{ googleSearchConsole }}\"/>
  512.         {% endif %}
  513.         <link rel=\"stylesheet\" href=\"{{ asset('assets/libs/openlayers/ol.css') }}\">
  514.         <script type=\"text/javascript\" src=\"{{ asset('assets/libs/openlayers/ol.js') }}\"></script>
  515.         <link rel=\"stylesheet\" href=\"{{ asset('assets/libs/aos/aos.css') }}\">
  516.     </head>
  517.     <body data-navbar-search-url=\"{{ path('front_navbar_search') }}\" {% block body_tag %}{% endblock %}>
  518.         <div class=\"wrapper\">
  519.             {% block flash %}
  520.                 {% for label, messages in app.flashes %}
  521.                     {% for key, message in messages %}
  522.                         <div class=\"modal fade mat-200\" id=\"flashMessageModal\" tabindex=\"-1\" role=\"dialog\"
  523.                              aria-labelledby=\"flashMessageModalLabel\" aria-hidden=\"true\">
  524.                             <div class=\"modal-dialog\" role=\"document\">
  525.                                 <div class=\"modal-content\">
  526.                                     <div class=\"modal-body\">
  527.                                         <div class=\"text-right\">
  528.                                             <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
  529.                                                 <span aria-hidden=\"true\">&times;</span>
  530.                                             </button>
  531.                                         </div>
  532.                                         <div>
  533.                                             {% if label == \"success\" %}
  534.                                                 <i class=\"fa fa-check text-success\"></i>
  535.                                             {% else %}
  536.                                                 <i class=\"fa fa-warning text-danger\"></i>
  537.                                             {% endif %}
  538.                                             {{ message|trans|raw }}
  539.                                         </div>
  540.                                     </div>
  541.                                 </div>
  542.                             </div>
  543.                         </div>
  544.                     {% endfor %}
  545.                 {% endfor %}
  546.             {% endblock %}
  547.             {% block navbar %}
  548.                 {#     <div class=\"fixed-top zi-999 bgc-white c-black pay-10\">
  549.                          <div class=\"container\">
  550.                              <div class=\"row align-items-center fs-14 fw-300\">
  551.                                  <div class=\"font-italic col\">
  552.                                      {{ page ? page.title : siteTitle }}
  553.                                  </div>
  554.                              </div>
  555.                          </div>
  556.                      </div>#}
  557.                 <div class=\"d-none d-lg-block\">
  558.                     {% include \"commons/navbar.html.twig\" %}
  559.                 </div>
  560.                 <div class=\"d-block d-lg-none\">
  561.                     {% include \"commons/navbarMobile.html.twig\" %}
  562.                 </div>
  563.                 {# {% for key, category in getCategories() %}
  564.                      <div>
  565.                          <a href=\"{{ getProductUrl(null, true, category) }}\">
  566.                              {{ category.title }}
  567.                          </a>
  568.                      </div>
  569.                      <div>
  570.                          <img src=\"{{ getCategoryImage(category)|imagine_filter('medium') }}\" alt=\"{{ category.title }}\"
  571.                               class=\"wi-200\"/>
  572.                      </div>
  573.                      {% for key, subCategory in getSubCategories(category) %}
  574.                          <div>
  575.                              <a href=\"{{ getProductUrl(null, true, null, subCategory) }}\">
  576.                                  {{ subCategory.title }}
  577.                              </a>
  578.                          </div>
  579.                          {% for key, subSubCategory in getSubSubCategories(subCategory) %}
  580.                              <div>
  581.                                  <a href=\"{{ getProductUrl(null, true, null, null, subSubCategory) }}\">
  582.                                      {{ subSubCategory.title }}
  583.                                  </a>
  584.                              </div>
  585.                              {% for key, subSubSubCategory in getSubSubSubCategories(subSubCategory) %}
  586.                                  <div>
  587.                                      <a href=\"{{ getProductUrl(null, true, null, null, null, subSubSubCategory) }}\">
  588.                                          {{ subSubSubCategory.title }}
  589.                                      </a>
  590.                                  </div>
  591.                              {% endfor %}
  592.                          {% endfor %}
  593.                      {% endfor %}
  594.                  {% endfor %}#}
  595.             {% endblock %}
  596.         {% block body %}{% endblock %}
  597.         {% block footer %}
  598.             {% include \"front/footer.html.twig\" %}
  599.         {% endblock %}
  600.         <div class=\"position-fixed b-20 r-20 scrollToTopDiv\">
  601.             <i class=\"fa fa-arrow-circle-up pointer scrollToTop fw-600 fs-40 c-65B3CD\"></i>
  602.         </div>
  603.     </div>
  604.     {{ encore_entry_script_tags('app') }}
  605.     <script type=\"text/javascript\" src=\"{{ asset('assets/libs/aos/aos.js') }}\"></script>
  606.     <script>
  607.         AOS.init({
  608.             once: true,
  609.         });
  610.     </script>
  611.     <script type=\"text/javascript\" src=\"https://www.freeprivacypolicy.com/public/cookie-consent/4.1.0/cookie-consent.js\"></script>
  612.     <script type=\"text/javascript\">
  613.         document.addEventListener('DOMContentLoaded', function () {
  614.             cookieconsent.run({
  615.                 \"notice_banner_type\": \"simple\",
  616.                 \"consent_type\": \"explicit\",
  617.                 \"palette\": \"light\",
  618.                 \"language\": \"fr\",
  619.                 \"website_name\": \"{{ siteTitle }}\",
  620.                 \"change_preferences_selector\": \"#changePreferences\",
  621.             });
  622.         });
  623.     </script>
  624.     <script src=\"https://www.google.com/recaptcha/api.js\" async defer></script>
  625.     {% block javascripts %}
  626.     {% endblock %}
  627. </body>
  628. </html>
  629. ""base.html.twig""/home/hlcdisb/www/dmdinox_dev/templates/base.html.twig");
  630.     }
  631. }