var/cache/dev/twig/cf/cf6ad2e77c931e5d07db17e851b124f0ea94725ae48c030dcf01fc1577f2c743.php line 43

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