var/cache/dev/twig/67/670bdedc5537aed8a2cbdb0a76acab8b9667693348d41cc40def999b5eac983d.php line 38

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. /* site/base.html.twig */
  14. class __TwigTemplate_e1e4abdf5e11177a6c61af483ae5ef0499339256fa1b39a86c53c80c624f8f12 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.             'title' => [$this'block_title'],
  25.             'stylesheets' => [$this'block_stylesheets'],
  26.             'body' => [$this'block_body'],
  27.             'content' => [$this'block_content'],
  28.             'javascripts' => [$this'block_javascripts'],
  29.         ];
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""site/base.html.twig"));
  36.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""site/base.html.twig"));
  38.         // line 1
  39.         echo "<!DOCTYPE html>
  40. <html>
  41.     <head>
  42.         <meta charset=\"UTF-8\">
  43.         <title>";
  44.         // line 5
  45.         $this->displayBlock('title'$context$blocks);
  46.         echo "</title>
  47.         <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
  48.         <link rel=\"icon\" href=\"/img/icones/favicon.ico\" type=\"image/x-icon\">
  49.         <link rel=\"stylesheet\" href=\"https://use.typekit.net/mvl5avz.css\">
  50.         ";
  51.         // line 9
  52.         if ((is_string($__internal_compile_0 twig_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.'9$this->source); })()), "request", [], "any"falsefalsefalse9), "pathinfo", ["_route"], "method"falsefalsefalse9)) && is_string($__internal_compile_1 "/haguenau") && str_starts_with($__internal_compile_0$__internal_compile_1))) {
  53.             // line 10
  54.             echo "            <link rel=\"stylesheet\" href=\"/css/haguenau.css\">
  55.         ";
  56.         } elseif ((is_string($__internal_compile_2 twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 11
  57. (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'11$this->source); })()), "request", [], "any"falsefalsefalse11), "pathinfo", ["_route"], "method"falsefalsefalse11)) && is_string($__internal_compile_3 "/saverne") && str_starts_with($__internal_compile_2$__internal_compile_3))) {
  58.             // line 12
  59.             echo "            <link rel=\"stylesheet\" href=\"/css/saverne.css\">
  60.         ";
  61.         } else {
  62.             // line 14
  63.             echo "            <link rel=\"stylesheet\" href=\"/css/global.css\">
  64.         ";
  65.         }
  66.         // line 16
  67.         echo "        <script async src=\"https://www.googletagmanager.com/gtag/js?id=UA-XXXXXXXX-X\"></script>
  68.         <script>
  69.             window.dataLayer = window.dataLayer || [];
  70.             function gtag(){dataLayer.push(arguments);}
  71.             gtag('js', new Date());
  72.             gtag('config', 'UA-XXXXXXXX-X');
  73.         </script>
  74.         ";
  75.         // line 23
  76.         $this->displayBlock('stylesheets'$context$blocks);
  77.         // line 26
  78.         echo "    </head>
  79.     <body>
  80.     ";
  81.         // line 28
  82.         if (((is_string($__internal_compile_4 twig_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.'28$this->source); })()), "request", [], "any"falsefalsefalse28), "pathinfo", ["_route"], "method"falsefalsefalse28)) && is_string($__internal_compile_5 "/haguenau") && str_starts_with($__internal_compile_4$__internal_compile_5)) || (is_string($__internal_compile_6 twig_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.'28$this->source); })()), "request", [], "any"falsefalsefalse28), "pathinfo", ["_route"], "method"falsefalsefalse28)) && is_string($__internal_compile_7 "/saverne") && str_starts_with($__internal_compile_6$__internal_compile_7)))) {
  83.             // line 29
  84.             echo "        ";
  85.             echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\SiteController::headerEcole", ["path" => twig_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.'29$this->source); })()), "request", [], "any"falsefalsefalse29), "pathinfo", [], "any"falsefalsefalse29)]));
  86.             echo "
  87.     ";
  88.         } else {
  89.             // line 31
  90.             echo "        ";
  91.             echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\SiteController::header", ["currentPage" => ((array_key_exists("currentPage"$context)) ? (_twig_default_filter((isset($context["currentPage"]) || array_key_exists("currentPage"$context) ? $context["currentPage"] : (function () { throw new RuntimeError('Variable "currentPage" does not exist.'31$this->source); })()), "")) : ("")), "page" => ((array_key_exists("page"$context)) ? (_twig_default_filter((isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'31$this->source); })()), "")) : (""))]));
  92.             echo "
  93.     ";
  94.         }
  95.         // line 33
  96.         echo "        <main id=\"main\">
  97.             ";
  98.         // line 34
  99.         $this->loadTemplate("site/layout/messages.twig""site/base.html.twig"34)->display($context);
  100.         // line 35
  101.         echo "            ";
  102.         $this->displayBlock('body'$context$blocks);
  103.         // line 38
  104.         echo "        </main>
  105.     ";
  106.         // line 39
  107.         if (((is_string($__internal_compile_8 twig_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.'39$this->source); })()), "request", [], "any"falsefalsefalse39), "pathinfo", ["_route"], "method"falsefalsefalse39)) && is_string($__internal_compile_9 "/haguenau") && str_starts_with($__internal_compile_8$__internal_compile_9)) || (is_string($__internal_compile_10 twig_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.'39$this->source); })()), "request", [], "any"falsefalsefalse39), "pathinfo", ["_route"], "method"falsefalsefalse39)) && is_string($__internal_compile_11 "/saverne") && str_starts_with($__internal_compile_10$__internal_compile_11)))) {
  108.             // line 40
  109.             echo "        ";
  110.             $this->loadTemplate("site/mini-site/layout/footer.html.twig""site/base.html.twig"40)->display($context);
  111.             // line 41
  112.             echo "    ";
  113.         } else {
  114.             // line 42
  115.             echo "        ";
  116.             echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\SiteController::footer"));
  117.             echo "
  118.     ";
  119.         }
  120.         // line 44
  121.         echo "        ";
  122.         $this->displayBlock('javascripts'$context$blocks);
  123.         // line 49
  124.         echo "    </body>
  125. </html>
  126. ";
  127.         
  128.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  129.         
  130.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  131.     }
  132.     // line 5
  133.     public function block_title($context, array $blocks = [])
  134.     {
  135.         $macros $this->macros;
  136.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  137.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  138.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  139.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  140.         echo "ABCM";
  141.         
  142.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  143.         
  144.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  145.     }
  146.     // line 23
  147.     public function block_stylesheets($context, array $blocks = [])
  148.     {
  149.         $macros $this->macros;
  150.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  151.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  152.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  153.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  154.         // line 24
  155.         echo "            ";
  156.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("app");
  157.         echo "
  158.         ";
  159.         
  160.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  161.         
  162.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  163.     }
  164.     // line 35
  165.     public function block_body($context, array $blocks = [])
  166.     {
  167.         $macros $this->macros;
  168.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  169.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  170.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  171.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  172.         // line 36
  173.         echo "                ";
  174.         $this->displayBlock('content'$context$blocks);
  175.         // line 37
  176.         echo "            ";
  177.         
  178.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  179.         
  180.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  181.     }
  182.     // line 36
  183.     public function block_content($context, array $blocks = [])
  184.     {
  185.         $macros $this->macros;
  186.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  187.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  188.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  189.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  190.         
  191.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  192.         
  193.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  194.     }
  195.     // line 44
  196.     public function block_javascripts($context, array $blocks = [])
  197.     {
  198.         $macros $this->macros;
  199.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  200.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  201.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  202.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  203.         // line 45
  204.         echo "            ";
  205.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("app");
  206.         echo "
  207.             <script src=\"";
  208.         // line 46
  209.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/fosjsrouting/js/router.min.js"), "html"nulltrue);
  210.         echo "\"></script>
  211.             <script src=\"";
  212.         // line 47
  213.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fos_js_routing_js", ["callback" => "fos.Router.setData"]);
  214.         echo "\"></script>
  215.         ";
  216.         
  217.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  218.         
  219.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  220.     }
  221.     /**
  222.      * @codeCoverageIgnore
  223.      */
  224.     public function getTemplateName()
  225.     {
  226.         return "site/base.html.twig";
  227.     }
  228.     /**
  229.      * @codeCoverageIgnore
  230.      */
  231.     public function isTraitable()
  232.     {
  233.         return false;
  234.     }
  235.     /**
  236.      * @codeCoverageIgnore
  237.      */
  238.     public function getDebugInfo()
  239.     {
  240.         return array (  247 => 47,  243 => 46,  238 => 45,  228 => 44,  210 => 36,  200 => 37,  197 => 36,  187 => 35,  174 => 24,  164 => 23,  145 => 5,  133 => 49,  130 => 44,  124 => 42,  121 => 41,  118 => 40,  116 => 39,  113 => 38,  110 => 35,  108 => 34,  105 => 33,  99 => 31,  93 => 29,  91 => 28,  87 => 26,  85 => 23,  76 => 16,  72 => 14,  68 => 12,  66 => 11,  63 => 10,  61 => 9,  54 => 5,  48 => 1,);
  241.     }
  242.     public function getSourceContext()
  243.     {
  244.         return new Source("<!DOCTYPE html>
  245. <html>
  246.     <head>
  247.         <meta charset=\"UTF-8\">
  248.         <title>{% block title %}ABCM{% endblock %}</title>
  249.         <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
  250.         <link rel=\"icon\" href=\"/img/icones/favicon.ico\" type=\"image/x-icon\">
  251.         <link rel=\"stylesheet\" href=\"https://use.typekit.net/mvl5avz.css\">
  252.         {% if app.request.pathinfo(\"_route\") starts with \"/haguenau\" %}
  253.             <link rel=\"stylesheet\" href=\"/css/haguenau.css\">
  254.         {% elseif app.request.pathinfo(\"_route\") starts with \"/saverne\" %}
  255.             <link rel=\"stylesheet\" href=\"/css/saverne.css\">
  256.         {% else %}
  257.             <link rel=\"stylesheet\" href=\"/css/global.css\">
  258.         {% endif %}
  259.         <script async src=\"https://www.googletagmanager.com/gtag/js?id=UA-XXXXXXXX-X\"></script>
  260.         <script>
  261.             window.dataLayer = window.dataLayer || [];
  262.             function gtag(){dataLayer.push(arguments);}
  263.             gtag('js', new Date());
  264.             gtag('config', 'UA-XXXXXXXX-X');
  265.         </script>
  266.         {% block stylesheets %}
  267.             {{ encore_entry_link_tags('app') }}
  268.         {% endblock %}
  269.     </head>
  270.     <body>
  271.     {% if app.request.pathinfo(\"_route\") starts with \"/haguenau\" or app.request.pathinfo(\"_route\") starts with \"/saverne\"%}
  272.         {{ render(controller('App\\\\Controller\\\\SiteController::headerEcole', {'path': app.request.pathinfo })) }}
  273.     {% else %}
  274.         {{ render(controller('App\\\\Controller\\\\SiteController::header', { 'currentPage': currentPage|default(''), 'page': page|default('') })) }}
  275.     {% endif %}
  276.         <main id=\"main\">
  277.             {% include \"site/layout/messages.twig\" %}
  278.             {% block body %}
  279.                 {% block content %}{% endblock %}
  280.             {% endblock %}
  281.         </main>
  282.     {% if app.request.pathinfo(\"_route\") starts with \"/haguenau\" or app.request.pathinfo(\"_route\") starts with \"/saverne\"%}
  283.         {% include \"site/mini-site/layout/footer.html.twig\" %}
  284.     {% else %}
  285.         {{ render(controller('App\\\\Controller\\\\SiteController::footer')) }}
  286.     {% endif %}
  287.         {% block javascripts %}
  288.             {{ encore_entry_script_tags('app') }}
  289.             <script src=\"{{ asset('bundles/fosjsrouting/js/router.min.js') }}\"></script>
  290.             <script src=\"{{ path('fos_js_routing_js', { callback: 'fos.Router.setData' }) }}\"></script>
  291.         {% endblock %}
  292.     </body>
  293. </html>
  294. ""site/base.html.twig""/var/www/abcmzwei.eu/dev/templates/site/base.html.twig");
  295.     }
  296. }