var/cache/dev/twig/d6/d61f3f4ec6c4f7fd46a59ed40d8cbe74a5ebad57d6a8aad3534da6dfa1d79c09.php line 503

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* base.html.twig */
  16. class __TwigTemplate_b165f66e104aebf3940f682f791bd84fd599b5b6da98cda35f3a7723edd8b91e extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->parent false;
  28.         $this->blocks = [
  29.             'title' => [$this'block_title'],
  30.             'stylesheets' => [$this'block_stylesheets'],
  31.             'javascripts' => [$this'block_javascripts'],
  32.             'body_id' => [$this'block_body_id'],
  33.             'header' => [$this'block_header'],
  34.             'header_navigation_links' => [$this'block_header_navigation_links'],
  35.             'body' => [$this'block_body'],
  36.             'main' => [$this'block_main'],
  37.             'sidebar' => [$this'block_sidebar'],
  38.             'footer' => [$this'block_footer'],
  39.         ];
  40.     }
  41.     protected function doDisplay(array $context, array $blocks = []): iterable
  42.     {
  43.         $macros $this->macros;
  44.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  45.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""base.html.twig"));
  46.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  47.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""base.html.twig"));
  48.         // line 6
  49.         yield "<!DOCTYPE html>
  50. <html lang=\"";
  51.         // line 7
  52.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'7$this->source); })()), "request", [], "any"falsefalsefalse7), "locale", [], "any"falsefalsefalse7), "html"nulltrue);
  53.         yield "\">
  54.     <head>
  55.         <meta charset=\"UTF-8\" />
  56.         <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"/>
  57.         <title>";
  58.         // line 11
  59.         yield from $this->unwrap()->yieldBlock('title'$context$blocks);
  60.         yield "</title>
  61.         <link rel=\"alternate\" type=\"application/rss+xml\" title=\"";
  62.         // line 12
  63.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("rss.title"), "html"nulltrue);
  64.         yield "\" href=\"";
  65.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("blog_rss");
  66.         yield "\">
  67.         ";
  68.         // line 18
  69.         yield "        ";
  70.         yield from $this->unwrap()->yieldBlock('stylesheets'$context$blocks);
  71.         // line 21
  72.         yield "        ";
  73.         yield from $this->unwrap()->yieldBlock('javascripts'$context$blocks);
  74.         // line 24
  75.         yield "
  76.         <link rel=\"icon\" type=\"image/x-icon\" href=\"";
  77.         // line 25
  78.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("favicon.ico"), "html"nulltrue);
  79.         yield "\" />
  80.     </head>
  81.     <body id=\"";
  82.         // line 28
  83.         yield from $this->unwrap()->yieldBlock('body_id'$context$blocks);
  84.         yield "\">
  85.         ";
  86.         // line 30
  87.         yield from $this->unwrap()->yieldBlock('header'$context$blocks);
  88.         // line 112
  89.         yield "
  90.         <div class=\"container body-container\">
  91.             ";
  92.         // line 114
  93.         yield from $this->unwrap()->yieldBlock('body'$context$blocks);
  94.         // line 133
  95.         yield "        </div>
  96.         ";
  97.         // line 135
  98.         yield from $this->unwrap()->yieldBlock('footer'$context$blocks);
  99.         // line 160
  100.         yield "
  101.         ";
  102.         // line 164
  103.         yield "        <!-- Page rendered on ";
  104.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extra\Intl\IntlExtension']->formatDateTime($this->env"now""long""long""""UTC"), "html"nulltrue);
  105.         yield " -->
  106.     </body>
  107. </html>
  108. ";
  109.         
  110.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  111.         
  112.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  113.         yield from [];
  114.     }
  115.     // line 11
  116.     /**
  117.      * @return iterable<null|scalar|\Stringable>
  118.      */
  119.     public function block_title(array $context, array $blocks = []): iterable
  120.     {
  121.         $macros $this->macros;
  122.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  123.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  124.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  125.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  126.         yield "Symfony Demo application";
  127.         
  128.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  129.         
  130.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  131.         yield from [];
  132.     }
  133.     // line 18
  134.     /**
  135.      * @return iterable<null|scalar|\Stringable>
  136.      */
  137.     public function block_stylesheets(array $context, array $blocks = []): iterable
  138.     {
  139.         $macros $this->macros;
  140.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  141.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  142.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  143.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  144.         // line 19
  145.         yield "            ";
  146.         yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackLinkTags("app");
  147.         yield "
  148.         ";
  149.         
  150.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  151.         
  152.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  153.         yield from [];
  154.     }
  155.     // line 21
  156.     /**
  157.      * @return iterable<null|scalar|\Stringable>
  158.      */
  159.     public function block_javascripts(array $context, array $blocks = []): iterable
  160.     {
  161.         $macros $this->macros;
  162.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  163.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  164.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  165.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  166.         // line 22
  167.         yield "            ";
  168.         yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("app");
  169.         yield "
  170.         ";
  171.         
  172.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  173.         
  174.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  175.         yield from [];
  176.     }
  177.     // line 28
  178.     /**
  179.      * @return iterable<null|scalar|\Stringable>
  180.      */
  181.     public function block_body_id(array $context, array $blocks = []): iterable
  182.     {
  183.         $macros $this->macros;
  184.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  185.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body_id"));
  186.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  187.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body_id"));
  188.         
  189.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  190.         
  191.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  192.         yield from [];
  193.     }
  194.     // line 30
  195.     /**
  196.      * @return iterable<null|scalar|\Stringable>
  197.      */
  198.     public function block_header(array $context, array $blocks = []): iterable
  199.     {
  200.         $macros $this->macros;
  201.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  202.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header"));
  203.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  204.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header"));
  205.         // line 31
  206.         yield "            <header>
  207.                 <div class=\"navbar navbar-default navbar-static-top\" role=\"navigation\">
  208.                     <div class=\"container\">
  209.                         <div class=\"navbar-header col-md-3 col-lg-2\">
  210.                             <a class=\"navbar-brand\" href=\"";
  211.         // line 35
  212.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("homepage");
  213.         yield "\">
  214.                                 Symfony Demo
  215.                             </a>
  216.                             <button type=\"button\" class=\"navbar-toggle\"
  217.                                     data-toggle=\"collapse\"
  218.                                     data-target=\".navbar-collapse\">
  219.                                 <span class=\"sr-only\">";
  220.         // line 42
  221.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.toggle_nav"), "html"nulltrue);
  222.         yield "</span>
  223.                                 <span class=\"icon-bar\"></span>
  224.                                 <span class=\"icon-bar\"></span>
  225.                                 <span class=\"icon-bar\"></span>
  226.                             </button>
  227.                         </div>
  228.                         <div class=\"navbar-collapse collapse\">
  229.                             <ul class=\"nav navbar-nav navbar-right\">
  230.                                 ";
  231.         // line 51
  232.         yield from $this->unwrap()->yieldBlock('header_navigation_links'$context$blocks);
  233.         // line 66
  234.         yield "
  235.                                 <li>
  236.                                     <a href=\"";
  237.         // line 68
  238.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("blog_search");
  239.         yield "\"> <i class=\"fa fa-search\"></i> ";
  240.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.search"), "html"nulltrue);
  241.         yield "</a>
  242.                                 </li>
  243.                                 ";
  244.         // line 71
  245.         if (CoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'71$this->source); })()), "user", [], "any"falsefalsefalse71)) {
  246.             // line 72
  247.             yield "                                    <li class=\"dropdown\">
  248.                                         <a href=\"#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\" role=\"button\" aria-expanded=\"false\" id=\"user\">
  249.                                             <i class=\"fa fa-user\" aria-hidden=\"true\"></i>
  250.                                             <span class=\"caret\"></span>
  251.                                             <span class=\"sr-only\">";
  252.             // line 76
  253.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'76$this->source); })()), "user", [], "any"falsefalsefalse76), "fullname", [], "any"falsefalsefalse76), "html"nulltrue);
  254.             yield "</span>
  255.                                         </a>
  256.                                         <ul class=\"dropdown-menu user\" role=\"menu\" aria-labelledby=\"user\">
  257.                                             <li>
  258.                                                 <a href=\"";
  259.             // line 80
  260.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("user_edit");
  261.             yield "\">
  262.                                                     <i class=\"fa fa-edit\" aria-hidden=\"true\"></i> ";
  263.             // line 81
  264.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.user"), "html"nulltrue);
  265.             yield "
  266.                                                 </a>
  267.                                             </li>
  268.                                             <li class=\"divider\"></li>
  269.                                             <li>
  270.                                                 <a href=\"";
  271.             // line 86
  272.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\LogoutUrlExtension']->getLogoutPath(), "html"nulltrue);
  273.             yield "\">
  274.                                                     <i class=\"fa fa-sign-out\" aria-hidden=\"true\"></i> ";
  275.             // line 87
  276.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.logout"), "html"nulltrue);
  277.             yield "
  278.                                                 </a>
  279.                                             </li>
  280.                                         </ul>
  281.                                     </li>
  282.                                 ";
  283.         }
  284.         // line 93
  285.         yield "
  286.                                 <li class=\"dropdown\">
  287.                                     <a href=\"#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\" role=\"button\" aria-expanded=\"false\" id=\"locales\">
  288.                                         <i class=\"fa fa-globe\" aria-hidden=\"true\"></i>
  289.                                         <span class=\"caret\"></span>
  290.                                         <span class=\"sr-only\">";
  291.         // line 98
  292.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.choose_language"), "html"nulltrue);
  293.         yield "</span>
  294.                                     </a>
  295.                                     <ul class=\"dropdown-menu locales\" role=\"menu\" aria-labelledby=\"locales\">
  296.                                         ";
  297.         // line 101
  298.         $context['_parent'] = $context;
  299.         $context['_seq'] = CoreExtension::ensureTraversable($this->extensions['App\Twig\AppExtension']->getLocales());
  300.         foreach ($context['_seq'] as $context["_key"] => $context["locale"]) {
  301.             // line 102
  302.             yield "                                            <li ";
  303.             if ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'102$this->source); })()), "request", [], "any"falsefalsefalse102), "locale", [], "any"falsefalsefalse102) == CoreExtension::getAttribute($this->env$this->source$context["locale"], "code", [], "any"falsefalsefalse102))) {
  304.                 yield "aria-checked=\"true\" class=\"active\"";
  305.             } else {
  306.                 yield "aria-checked=\"false\"";
  307.             }
  308.             yield " role=\"menuitem\"><a href=\"";
  309.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'102$this->source); })()), "request", [], "any"falsefalsefalse102), "get", ["_route""blog_index"], "method"falsefalsefalse102), Twig\Extension\CoreExtension::merge(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'102$this->source); })()), "request", [], "any"falsefalsefalse102), "get", ["_route_params", []], "method"falsefalsefalse102), ["_locale" => CoreExtension::getAttribute($this->env$this->source$context["locale"], "code", [], "any"falsefalsefalse102)])), "html"nulltrue);
  310.             yield "\">";
  311.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::capitalize($this->env->getCharset(), CoreExtension::getAttribute($this->env$this->source$context["locale"], "name", [], "any"falsefalsefalse102)), "html"nulltrue);
  312.             yield " <small>";
  313.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::slice($this->env->getCharset(), CoreExtension::getAttribute($this->env$this->source$context["locale"], "code", [], "any"falsefalsefalse102), 02), "html"nulltrue);
  314.             yield "</small></a></li>
  315.                                         ";
  316.         }
  317.         $_parent $context['_parent'];
  318.         unset($context['_seq'], $context['_key'], $context['locale'], $context['_parent']);
  319.         $context array_intersect_key($context$_parent) + $_parent;
  320.         // line 104
  321.         yield "                                    </ul>
  322.                                 </li>
  323.                             </ul>
  324.                         </div>
  325.                     </div>
  326.                 </div>
  327.             </header>
  328.         ";
  329.         
  330.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  331.         
  332.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  333.         yield from [];
  334.     }
  335.     // line 51
  336.     /**
  337.      * @return iterable<null|scalar|\Stringable>
  338.      */
  339.     public function block_header_navigation_links(array $context, array $blocks = []): iterable
  340.     {
  341.         $macros $this->macros;
  342.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  343.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header_navigation_links"));
  344.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  345.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header_navigation_links"));
  346.         // line 52
  347.         yield "                                    <li>
  348.                                         <a href=\"";
  349.         // line 53
  350.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("blog_index");
  351.         yield "\">
  352.                                             <i class=\"fa fa-home\" aria-hidden=\"true\"></i> ";
  353.         // line 54
  354.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.homepage"), "html"nulltrue);
  355.         yield "
  356.                                         </a>
  357.                                     </li>
  358.                                     ";
  359.         // line 58
  360.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
  361.             // line 59
  362.             yield "                                        <li>
  363.                                             <a href=\"";
  364.             // line 60
  365.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_post_index");
  366.             yield "\">
  367.                                                 <i class=\"fa fa-lock\" aria-hidden=\"true\"></i> ";
  368.             // line 61
  369.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.admin"), "html"nulltrue);
  370.             yield "
  371.                                             </a>
  372.                                         </li>
  373.                                     ";
  374.         }
  375.         // line 65
  376.         yield "                                ";
  377.         
  378.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  379.         
  380.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  381.         yield from [];
  382.     }
  383.     // line 114
  384.     /**
  385.      * @return iterable<null|scalar|\Stringable>
  386.      */
  387.     public function block_body(array $context, array $blocks = []): iterable
  388.     {
  389.         $macros $this->macros;
  390.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  391.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  392.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  393.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  394.         // line 115
  395.         yield "                <div class=\"row\">
  396.                     <div id=\"main\" class=\"col-sm-9\">
  397.                         ";
  398.         // line 117
  399.         yield Twig\Extension\CoreExtension::include($this->env$context"default/_flash_messages.html.twig");
  400.         yield "
  401.                         ";
  402.         // line 119
  403.         yield from $this->unwrap()->yieldBlock('main'$context$blocks);
  404.         // line 120
  405.         yield "                    </div>
  406.                     <div id=\"sidebar\" class=\"col-sm-3\">
  407.                         ";
  408.         // line 123
  409.         yield from $this->unwrap()->yieldBlock('sidebar'$context$blocks);
  410.         // line 130
  411.         yield "                    </div>
  412.                 </div>
  413.             ";
  414.         
  415.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  416.         
  417.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  418.         yield from [];
  419.     }
  420.     // line 119
  421.     /**
  422.      * @return iterable<null|scalar|\Stringable>
  423.      */
  424.     public function block_main(array $context, array $blocks = []): iterable
  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""main"));
  429.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  430.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  431.         
  432.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  433.         
  434.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  435.         yield from [];
  436.     }
  437.     // line 123
  438.     /**
  439.      * @return iterable<null|scalar|\Stringable>
  440.      */
  441.     public function block_sidebar(array $context, array $blocks = []): iterable
  442.     {
  443.         $macros $this->macros;
  444.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  445.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sidebar"));
  446.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  447.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""sidebar"));
  448.         // line 124
  449.         yield "                            ";
  450.         yield $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragmentStrategy("esi"Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("Symfony\\Bundle\\FrameworkBundle\\Controller\\TemplateController::templateAction", ["template" => "blog/about.html.twig""sharedAge" => 600"_locale" => CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source,         // line 127
  451. (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'127$this->source); })()), "request", [], "any"falsefalsefalse127), "locale", [], "any"falsefalsefalse127)]));
  452.         // line 128
  453.         yield "
  454.                         ";
  455.         
  456.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  457.         
  458.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  459.         yield from [];
  460.     }
  461.     // line 135
  462.     /**
  463.      * @return iterable<null|scalar|\Stringable>
  464.      */
  465.     public function block_footer(array $context, array $blocks = []): iterable
  466.     {
  467.         $macros $this->macros;
  468.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  469.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  470.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  471.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  472.         // line 136
  473.         yield "            <footer>
  474.                 <div class=\"container\">
  475.                     <div class=\"row\">
  476.                         <div id=\"footer-copyright\" class=\"col-md-6\">
  477.                             <p>&copy; ";
  478.         // line 140
  479.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate("now""Y"), "html"nulltrue);
  480.         yield " - The Symfony Project</p>
  481.                             <p>";
  482.         // line 141
  483.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("mit_license"), "html"nulltrue);
  484.         yield "</p>
  485.                         </div>
  486.                         <div id=\"footer-resources\" class=\"col-md-6\">
  487.                             <p>
  488.                                 <a href=\"https://twitter.com/symfony\" title=\"Symfony Twitter\">
  489.                                     <i class=\"fa fa-twitter\" aria-hidden=\"true\"></i>
  490.                                 </a>
  491.                                 <a href=\"https://www.facebook.com/SensioLabs\" title=\"SensioLabs Facebook\">
  492.                                     <i class=\"fa fa-facebook\" aria-hidden=\"true\"></i>
  493.                                 </a>
  494.                                 <a href=\"https://symfony.com/blog/\" title=\"Symfony Blog\">
  495.                                     <i class=\"fa fa-rss\" aria-hidden=\"true\"></i>
  496.                                 </a>
  497.                             </p>
  498.                         </div>
  499.                     </div>
  500.                 </div>
  501.             </footer>
  502.         ";
  503.         
  504.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  505.         
  506.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  507.         yield from [];
  508.     }
  509.     /**
  510.      * @codeCoverageIgnore
  511.      */
  512.     public function getTemplateName(): string
  513.     {
  514.         return "base.html.twig";
  515.     }
  516.     /**
  517.      * @codeCoverageIgnore
  518.      */
  519.     public function isTraitable(): bool
  520.     {
  521.         return false;
  522.     }
  523.     /**
  524.      * @codeCoverageIgnore
  525.      */
  526.     public function getDebugInfo(): array
  527.     {
  528.         return array (  552 => 141,  548 => 140,  542 => 136,  529 => 135,  517 => 128,  515 => 127,  513 => 124,  500 => 123,  478 => 119,  465 => 130,  463 => 123,  458 => 120,  456 => 119,  451 => 117,  447 => 115,  434 => 114,  423 => 65,  416 => 61,  412 => 60,  409 => 59,  407 => 58,  400 => 54,  396 => 53,  393 => 52,  380 => 51,  362 => 104,  343 => 102,  339 => 101,  333 => 98,  326 => 93,  317 => 87,  313 => 86,  305 => 81,  301 => 80,  294 => 76,  288 => 72,  286 => 71,  278 => 68,  274 => 66,  272 => 51,  260 => 42,  250 => 35,  244 => 31,  231 => 30,  209 => 28,  195 => 22,  182 => 21,  168 => 19,  155 => 18,  132 => 11,  116 => 164,  113 => 160,  111 => 135,  107 => 133,  105 => 114,  101 => 112,  99 => 30,  94 => 28,  88 => 25,  85 => 24,  82 => 21,  79 => 18,  72 => 12,  68 => 11,  61 => 7,  58 => 6,);
  529.     }
  530.     public function getSourceContext(): Source
  531.     {
  532.         return new Source("{#
  533.    This is the base template used as the application layout which contains the
  534.    common elements and decorates all the other templates.
  535.    See https://symfony.com/doc/current/templates.html#template-inheritance-and-layouts
  536. #}
  537. <!DOCTYPE html>
  538. <html lang=\"{{ app.request.locale }}\">
  539.     <head>
  540.         <meta charset=\"UTF-8\" />
  541.         <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"/>
  542.         <title>{% block title %}Symfony Demo application{% endblock %}</title>
  543.         <link rel=\"alternate\" type=\"application/rss+xml\" title=\"{{ 'rss.title'|trans }}\" href=\"{{ path('blog_rss') }}\">
  544.         {#
  545.             Those two blocks defines frontend entrypoint for CSS and JavaScript assets
  546.             See https://symfony.com/doc/current/frontend.html
  547.         #}
  548.         {% block stylesheets %}
  549.             {{ encore_entry_link_tags('app') }}
  550.         {% endblock %}
  551.         {% block javascripts %}
  552.             {{ encore_entry_script_tags('app') }}
  553.         {% endblock %}
  554.         <link rel=\"icon\" type=\"image/x-icon\" href=\"{{ asset('favicon.ico') }}\" />
  555.     </head>
  556.     <body id=\"{% block body_id %}{% endblock %}\">
  557.         {% block header %}
  558.             <header>
  559.                 <div class=\"navbar navbar-default navbar-static-top\" role=\"navigation\">
  560.                     <div class=\"container\">
  561.                         <div class=\"navbar-header col-md-3 col-lg-2\">
  562.                             <a class=\"navbar-brand\" href=\"{{ path('homepage') }}\">
  563.                                 Symfony Demo
  564.                             </a>
  565.                             <button type=\"button\" class=\"navbar-toggle\"
  566.                                     data-toggle=\"collapse\"
  567.                                     data-target=\".navbar-collapse\">
  568.                                 <span class=\"sr-only\">{{ 'menu.toggle_nav'|trans }}</span>
  569.                                 <span class=\"icon-bar\"></span>
  570.                                 <span class=\"icon-bar\"></span>
  571.                                 <span class=\"icon-bar\"></span>
  572.                             </button>
  573.                         </div>
  574.                         <div class=\"navbar-collapse collapse\">
  575.                             <ul class=\"nav navbar-nav navbar-right\">
  576.                                 {% block header_navigation_links %}
  577.                                     <li>
  578.                                         <a href=\"{{ path('blog_index') }}\">
  579.                                             <i class=\"fa fa-home\" aria-hidden=\"true\"></i> {{ 'menu.homepage'|trans }}
  580.                                         </a>
  581.                                     </li>
  582.                                     {% if is_granted('ROLE_ADMIN') %}
  583.                                         <li>
  584.                                             <a href=\"{{ path('admin_post_index') }}\">
  585.                                                 <i class=\"fa fa-lock\" aria-hidden=\"true\"></i> {{ 'menu.admin'|trans }}
  586.                                             </a>
  587.                                         </li>
  588.                                     {% endif %}
  589.                                 {% endblock %}
  590.                                 <li>
  591.                                     <a href=\"{{ path('blog_search') }}\"> <i class=\"fa fa-search\"></i> {{ 'menu.search'|trans }}</a>
  592.                                 </li>
  593.                                 {% if app.user %}
  594.                                     <li class=\"dropdown\">
  595.                                         <a href=\"#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\" role=\"button\" aria-expanded=\"false\" id=\"user\">
  596.                                             <i class=\"fa fa-user\" aria-hidden=\"true\"></i>
  597.                                             <span class=\"caret\"></span>
  598.                                             <span class=\"sr-only\">{{ app.user.fullname }}</span>
  599.                                         </a>
  600.                                         <ul class=\"dropdown-menu user\" role=\"menu\" aria-labelledby=\"user\">
  601.                                             <li>
  602.                                                 <a href=\"{{ path('user_edit') }}\">
  603.                                                     <i class=\"fa fa-edit\" aria-hidden=\"true\"></i> {{ 'menu.user'|trans }}
  604.                                                 </a>
  605.                                             </li>
  606.                                             <li class=\"divider\"></li>
  607.                                             <li>
  608.                                                 <a href=\"{{ logout_path() }}\">
  609.                                                     <i class=\"fa fa-sign-out\" aria-hidden=\"true\"></i> {{ 'menu.logout'|trans }}
  610.                                                 </a>
  611.                                             </li>
  612.                                         </ul>
  613.                                     </li>
  614.                                 {% endif %}
  615.                                 <li class=\"dropdown\">
  616.                                     <a href=\"#\" class=\"dropdown-toggle\" data-toggle=\"dropdown\" role=\"button\" aria-expanded=\"false\" id=\"locales\">
  617.                                         <i class=\"fa fa-globe\" aria-hidden=\"true\"></i>
  618.                                         <span class=\"caret\"></span>
  619.                                         <span class=\"sr-only\">{{ 'menu.choose_language'|trans }}</span>
  620.                                     </a>
  621.                                     <ul class=\"dropdown-menu locales\" role=\"menu\" aria-labelledby=\"locales\">
  622.                                         {% for locale in locales() %}
  623.                                             <li {% if app.request.locale == locale.code %}aria-checked=\"true\" class=\"active\"{% else %}aria-checked=\"false\"{% endif %} role=\"menuitem\"><a href=\"{{ path(app.request.get('_route', 'blog_index'), app.request.get('_route_params', [])|merge({_locale: locale.code})) }}\">{{ locale.name|capitalize }} <small>{{ locale.code[0:2] }}</small></a></li>
  624.                                         {% endfor %}
  625.                                     </ul>
  626.                                 </li>
  627.                             </ul>
  628.                         </div>
  629.                     </div>
  630.                 </div>
  631.             </header>
  632.         {% endblock %}
  633.         <div class=\"container body-container\">
  634.             {% block body %}
  635.                 <div class=\"row\">
  636.                     <div id=\"main\" class=\"col-sm-9\">
  637.                         {{ include('default/_flash_messages.html.twig') }}
  638.                         {% block main %}{% endblock %}
  639.                     </div>
  640.                     <div id=\"sidebar\" class=\"col-sm-3\">
  641.                         {% block sidebar %}
  642.                             {{ render_esi(controller('Symfony\\\\Bundle\\\\FrameworkBundle\\\\Controller\\\\TemplateController::templateAction', {
  643.                                 'template': 'blog/about.html.twig',
  644.                                 'sharedAge': 600,
  645.                                 '_locale': app.request.locale
  646.                             })) }}
  647.                         {% endblock %}
  648.                     </div>
  649.                 </div>
  650.             {% endblock %}
  651.         </div>
  652.         {% block footer %}
  653.             <footer>
  654.                 <div class=\"container\">
  655.                     <div class=\"row\">
  656.                         <div id=\"footer-copyright\" class=\"col-md-6\">
  657.                             <p>&copy; {{ 'now'|date('Y') }} - The Symfony Project</p>
  658.                             <p>{{ 'mit_license'|trans }}</p>
  659.                         </div>
  660.                         <div id=\"footer-resources\" class=\"col-md-6\">
  661.                             <p>
  662.                                 <a href=\"https://twitter.com/symfony\" title=\"Symfony Twitter\">
  663.                                     <i class=\"fa fa-twitter\" aria-hidden=\"true\"></i>
  664.                                 </a>
  665.                                 <a href=\"https://www.facebook.com/SensioLabs\" title=\"SensioLabs Facebook\">
  666.                                     <i class=\"fa fa-facebook\" aria-hidden=\"true\"></i>
  667.                                 </a>
  668.                                 <a href=\"https://symfony.com/blog/\" title=\"Symfony Blog\">
  669.                                     <i class=\"fa fa-rss\" aria-hidden=\"true\"></i>
  670.                                 </a>
  671.                             </p>
  672.                         </div>
  673.                     </div>
  674.                 </div>
  675.             </footer>
  676.         {% endblock %}
  677.         {# it's not mandatory to set the timezone in localizeddate(). This is done to
  678.            avoid errors when the 'intl' PHP extension is not available and the application
  679.            is forced to use the limited \"intl polyfill\", which only supports UTC and GMT #}
  680.         <!-- Page rendered on {{ 'now'|format_datetime('long', 'long', '', 'UTC') }} -->
  681.     </body>
  682. </html>
  683. ""base.html.twig""/home/clients/1e57b84061a8b3119c89d49d271a0c31/sites/site80.web01.cloud01.hgpcc.ch/templates/base.html.twig");
  684.     }
  685. }