var/cache/dev/twig/0f/0f7f82bac61a6829b20796dbb7660f7a2b2f37c89474b0975aa2bcef8ceebc92.php line 388

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