var/cache/dev/twig/b7/b71a0baaab07d340c5fee6bdae57fdf8.php line 102

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. /* backend/base.html.twig */
  14. class __TwigTemplate_d53a53ed2feee2cb3df3bc4a9028592f 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.             'javascripts' => [$this'block_javascripts'],
  27.             'content' => [$this'block_content'],
  28.         ];
  29.     }
  30.     protected function doDisplay(array $context, array $blocks = [])
  31.     {
  32.         $macros $this->macros;
  33.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""backend/base.html.twig"));
  35.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""backend/base.html.twig"));
  37.         // line 2
  38.         echo "
  39. ";
  40.         // line 3
  41.         if ( !(null === 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.'3$this->source); })()), "user", [], "any"falsefalsefalse3))) {
  42.             // line 4
  43.             echo "    ";
  44.             $context["flashMessages"] = 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.'4$this->source); })()), "session", [], "any"falsefalsefalse4), "flashBag", [], "any"falsefalsefalse4), "all", [], "method"falsefalsefalse4);
  45.         }
  46.         // line 6
  47.         echo "
  48. <!DOCTYPE html>
  49. <html lang=\"";
  50.         // line 8
  51.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_split_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.'8$this->source); })()), "request", [], "any"falsefalsefalse8), "locale", [], "any"falsefalsefalse8), "_"), 0, [], "array"falsefalsefalse8), "html"nulltrue);
  52.         echo "\">
  53.     <head>
  54.         <meta charset=\"UTF-8\">
  55.         <title>";
  56.         // line 11
  57.         echo twig_escape_filter($this->env, (isset($context["app_name"]) || array_key_exists("app_name"$context) ? $context["app_name"] : (function () { throw new RuntimeError('Variable "app_name" does not exist.'11$this->source); })()), "html"nulltrue);
  58.         echo " - ";
  59.         $this->displayBlock('title'$context$blocks);
  60.         echo "</title>
  61.         <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
  62.         <link rel=\"shortcut icon\" href=\"";
  63.         // line 13
  64.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/backend/images/ffcb.ico""backend"), "html"nulltrue);
  65.         echo "\" />
  66.         ";
  67.         // line 15
  68.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("app"null"backend");
  69.         echo "
  70.         ";
  71.         // line 16
  72.         $this->displayBlock('stylesheets'$context$blocks);
  73.         // line 17
  74.         echo "
  75.         ";
  76.         // line 18
  77.         echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("app"null"backend");
  78.         echo "
  79.         ";
  80.         // line 19
  81.         $this->displayBlock('javascripts'$context$blocks);
  82.         // line 20
  83.         echo "    </head>
  84.     ";
  85.         // line 22
  86.         if ( !(null === 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.'22$this->source); })()), "user", [], "any"falsefalsefalse22))) {
  87.             // line 23
  88.             echo "        <body
  89.                 ";
  90.             // line 24
  91.             echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\StimulusTwigExtension']->renderStimulusController($this->env, ["flash-message" => [], "sidebar" => []]);
  92.             echo "
  93.                 data-flash-message-messages-value=\"";
  94.             // line 25
  95.             (((twig_length_filter($this->env, (isset($context["flashMessages"]) || array_key_exists("flashMessages"$context) ? $context["flashMessages"] : (function () { throw new RuntimeError('Variable "flashMessages" does not exist.'25$this->source); })())) == 0)) ? (print ("{}")) : (print (twig_escape_filter($this->envjson_encode((isset($context["flashMessages"]) || array_key_exists("flashMessages"$context) ? $context["flashMessages"] : (function () { throw new RuntimeError('Variable "flashMessages" does not exist.'25$this->source); })())), "html"nulltrue))));
  96.             echo "\"
  97.                 data-turbo=\"false\"
  98.         >
  99.     ";
  100.         } else {
  101.             // line 29
  102.             echo "        <body data-turbo=\"false\">
  103.     ";
  104.         }
  105.         // line 31
  106.         echo "
  107.         <div class=\"wrapper\">
  108.             ";
  109.         // line 33
  110.         $this->loadTemplate("backend/partials/_aside.html.twig""backend/base.html.twig"33)->display($context);
  111.         // line 34
  112.         echo "
  113.             <div class=\"main\">
  114.                 ";
  115.         // line 36
  116.         $this->loadTemplate("backend/partials/_header.html.twig""backend/base.html.twig"36)->display($context);
  117.         // line 37
  118.         echo "                <main class=\"content\">
  119.                     <div class=\"container-fluid\">
  120.                         <div class=\"d-none\" id=\"alert-content\"></div>
  121.                         ";
  122.         // line 41
  123.         $this->displayBlock('content'$context$blocks);
  124.         // line 42
  125.         echo "                    </div>
  126.                 </main>
  127.                 ";
  128.         // line 44
  129.         $this->loadTemplate("backend/partials/_footer.html.twig""backend/base.html.twig"44)->display($context);
  130.         // line 45
  131.         echo "            </div>
  132.         </div>
  133.     </body>
  134. </html>
  135. ";
  136.         
  137.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  138.         
  139.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  140.     }
  141.     // line 11
  142.     public function block_title($context, array $blocks = [])
  143.     {
  144.         $macros $this->macros;
  145.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  146.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  147.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  148.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  149.         
  150.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  151.         
  152.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  153.     }
  154.     // line 16
  155.     public function block_stylesheets($context, array $blocks = [])
  156.     {
  157.         $macros $this->macros;
  158.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  159.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  160.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  161.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  162.         
  163.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  164.         
  165.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  166.     }
  167.     // line 19
  168.     public function block_javascripts($context, array $blocks = [])
  169.     {
  170.         $macros $this->macros;
  171.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  172.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  173.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  174.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  175.         
  176.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  177.         
  178.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  179.     }
  180.     // line 41
  181.     public function block_content($context, array $blocks = [])
  182.     {
  183.         $macros $this->macros;
  184.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  185.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  186.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  187.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  188.         
  189.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  190.         
  191.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  192.     }
  193.     public function getTemplateName()
  194.     {
  195.         return "backend/base.html.twig";
  196.     }
  197.     public function isTraitable()
  198.     {
  199.         return false;
  200.     }
  201.     public function getDebugInfo()
  202.     {
  203.         return array (  211 => 41,  193 => 19,  175 => 16,  157 => 11,  143 => 45,  141 => 44,  137 => 42,  135 => 41,  129 => 37,  127 => 36,  123 => 34,  121 => 33,  117 => 31,  113 => 29,  106 => 25,  102 => 24,  99 => 23,  97 => 22,  93 => 20,  91 => 19,  87 => 18,  84 => 17,  82 => 16,  78 => 15,  73 => 13,  66 => 11,  60 => 8,  56 => 6,  52 => 4,  50 => 3,  47 => 2,);
  204.     }
  205.     public function getSourceContext()
  206.     {
  207.         return new Source("{% trans_default_domain 'messages' %}
  208. {% if app.user is not null %}
  209.     {% set flashMessages = app.session.flashBag.all() %}
  210. {% endif %}
  211. <!DOCTYPE html>
  212. <html lang=\"{{ app.request.locale|split('_')[0] }}\">
  213.     <head>
  214.         <meta charset=\"UTF-8\">
  215.         <title>{{ app_name }} - {% block title %}{% endblock %}</title>
  216.         <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
  217.         <link rel=\"shortcut icon\" href=\"{{ asset('build/backend/images/ffcb.ico', 'backend') }}\" />
  218.         {{ encore_entry_link_tags('app', null, 'backend') }}
  219.         {% block stylesheets %}{% endblock %}
  220.         {{ encore_entry_script_tags('app', null, 'backend') }}
  221.         {% block javascripts %}{% endblock %}
  222.     </head>
  223.     {% if app.user is not null %}
  224.         <body
  225.                 {{ stimulus_controller({'flash-message': {}, 'sidebar': {}}) }}
  226.                 data-flash-message-messages-value=\"{{ flashMessages|length == 0 ? '{}' : flashMessages|json_encode }}\"
  227.                 data-turbo=\"false\"
  228.         >
  229.     {% else %}
  230.         <body data-turbo=\"false\">
  231.     {% endif %}
  232.         <div class=\"wrapper\">
  233.             {% include 'backend/partials/_aside.html.twig' %}
  234.             <div class=\"main\">
  235.                 {% include 'backend/partials/_header.html.twig' %}
  236.                 <main class=\"content\">
  237.                     <div class=\"container-fluid\">
  238.                         <div class=\"d-none\" id=\"alert-content\"></div>
  239.                         {% block content %}{% endblock %}
  240.                     </div>
  241.                 </main>
  242.                 {% include 'backend/partials/_footer.html.twig' %}
  243.             </div>
  244.         </div>
  245.     </body>
  246. </html>
  247. ""backend/base.html.twig""/var/www/html/symfony/templates/backend/base.html.twig");
  248.     }
  249. }