var/cache/dev/twig/08/08e92ec678fa7aed2a82ef452737417594d4ed5400e0af84f3d9ef343a4a62d7.php line 354

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