var/cache/dev/twig/f6/f6604a61701dfc08a551b81203e7bf1480e23dcf462b872b839158a75d2e003b.php line 95

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