var/cache/dev/twig/1c/1c1ef563e5c22385617512888840b933.php line 145

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. /* admin/base.html.twig */
  15. class __TwigTemplate_5b6d4059817b11bff65ad5f928735a8f extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->blocks = [
  24.             'bodyAttrs' => [$this'block_bodyAttrs'],
  25.             'body' => [$this'block_body'],
  26.             'content' => [$this'block_content'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 2
  32.         return "base.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""admin/base.html.twig"));
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""admin/base.html.twig"));
  41.         $this->parent $this->loadTemplate("base.html.twig""admin/base.html.twig"2);
  42.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  43.         
  44.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  45.         
  46.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  47.     }
  48.     // line 5
  49.     public function block_bodyAttrs($context, array $blocks = [])
  50.     {
  51.         $macros $this->macros;
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""bodyAttrs"));
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""bodyAttrs"));
  56.         yield "id=\"page-top\"";
  57.         
  58.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  59.         
  60.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  61.         return; yield '';
  62.     }
  63.     // line 6
  64.     public function block_body($context, array $blocks = [])
  65.     {
  66.         $macros $this->macros;
  67.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  68.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  69.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  70.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  71.         // line 7
  72.         yield "    <!-- Page Wrapper -->
  73.     <div id=\"wrapper\">
  74.         ";
  75.         // line 9
  76.         yield from         $this->loadTemplate("components/sidebar.html.twig""admin/base.html.twig"9)->unwrap()->yield($context);
  77.         // line 10
  78.         yield "
  79.         <!-- Content Wrapper -->
  80.         <div id=\"content-wrapper\" class=\"d-flex flex-column\">            
  81.             ";
  82.         // line 13
  83.         yield from         $this->loadTemplate("components/toolbar.html.twig""admin/base.html.twig"13)->unwrap()->yield($context);
  84.         // line 14
  85.         yield "
  86.             <!-- Main Content -->
  87.             <div id=\"content\">
  88.                 <!-- Begin Page Content -->
  89.                 <div class=\"container-fluid\">
  90.                     <div class=\"dashboard-container\">
  91.                         ";
  92.         // line 20
  93.         $context['_parent'] = $context;
  94.         $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'20$this->source); })()), "session", [], "any"falsefalsefalse20), "flashbag", [], "any"falsefalsefalse20), "get", ["success"], "method"falsefalsefalse20));
  95.         foreach ($context['_seq'] as $context["_key"] => $context["flash"]) {
  96.             // line 21
  97.             yield "                            <div class=\"alert alert-success\">";
  98.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["flash"], "html"nulltrue);
  99.             yield "</div>
  100.                         ";
  101.         }
  102.         $_parent $context['_parent'];
  103.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['flash'], $context['_parent'], $context['loop']);
  104.         $context array_intersect_key($context$_parent) + $_parent;
  105.         // line 23
  106.         yield "
  107.                         ";
  108.         // line 24
  109.         $context['_parent'] = $context;
  110.         $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'24$this->source); })()), "session", [], "any"falsefalsefalse24), "flashbag", [], "any"falsefalsefalse24), "get", ["errors"], "method"falsefalsefalse24));
  111.         foreach ($context['_seq'] as $context["_key"] => $context["flash"]) {
  112.             // line 25
  113.             yield "                            <div class=\"alert alert-danger\">";
  114.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["flash"], "html"nulltrue);
  115.             yield "</div>
  116.                         ";
  117.         }
  118.         $_parent $context['_parent'];
  119.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['flash'], $context['_parent'], $context['loop']);
  120.         $context array_intersect_key($context$_parent) + $_parent;
  121.         // line 27
  122.         yield "                    </div>
  123.                     ";
  124.         // line 29
  125.         yield from $this->unwrap()->yieldBlock('content'$context$blocks);
  126.         // line 30
  127.         yield "                </div>
  128.                 <!-- End Page Content -->
  129.             </div>
  130.             <!-- End of Main Content -->
  131.         <!-- End of Content Wrapper -->
  132.         </div>
  133.     </div>
  134. ";
  135.         
  136.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  137.         
  138.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  139.         return; yield '';
  140.     }
  141.     // line 29
  142.     public function block_content($context, array $blocks = [])
  143.     {
  144.         $macros $this->macros;
  145.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  146.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  147.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  148.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  149.         
  150.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  151.         
  152.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  153.         return; yield '';
  154.     }
  155.     /**
  156.      * @codeCoverageIgnore
  157.      */
  158.     public function getTemplateName()
  159.     {
  160.         return "admin/base.html.twig";
  161.     }
  162.     /**
  163.      * @codeCoverageIgnore
  164.      */
  165.     public function isTraitable()
  166.     {
  167.         return false;
  168.     }
  169.     /**
  170.      * @codeCoverageIgnore
  171.      */
  172.     public function getDebugInfo()
  173.     {
  174.         return array (  165 => 29,  147 => 30,  145 => 29,  141 => 27,  132 => 25,  128 => 24,  125 => 23,  116 => 21,  112 => 20,  104 => 14,  102 => 13,  97 => 10,  95 => 9,  91 => 7,  81 => 6,  61 => 5,  38 => 2,);
  175.     }
  176.     public function getSourceContext()
  177.     {
  178.         return new Source("
  179. {% extends 'base.html.twig' %}
  180. {# {% block bodyClass %}bg-gradient-primary{% endblock %} #}
  181. {% block bodyAttrs %}id=\"page-top\"{% endblock %}
  182. {% block body %}
  183.     <!-- Page Wrapper -->
  184.     <div id=\"wrapper\">
  185.         {% include 'components/sidebar.html.twig' %}
  186.         <!-- Content Wrapper -->
  187.         <div id=\"content-wrapper\" class=\"d-flex flex-column\">            
  188.             {% include 'components/toolbar.html.twig' %}
  189.             <!-- Main Content -->
  190.             <div id=\"content\">
  191.                 <!-- Begin Page Content -->
  192.                 <div class=\"container-fluid\">
  193.                     <div class=\"dashboard-container\">
  194.                         {% for flash in app.session.flashbag.get('success') %}
  195.                             <div class=\"alert alert-success\">{{ flash }}</div>
  196.                         {% endfor %}
  197.                         {% for flash in app.session.flashbag.get('errors') %}
  198.                             <div class=\"alert alert-danger\">{{ flash }}</div>
  199.                         {% endfor %}
  200.                     </div>
  201.                     {% block content %}{% endblock %}
  202.                 </div>
  203.                 <!-- End Page Content -->
  204.             </div>
  205.             <!-- End of Main Content -->
  206.         <!-- End of Content Wrapper -->
  207.         </div>
  208.     </div>
  209. {% endblock %}
  210. ""admin/base.html.twig""/home/sariato/www/dev.centr.sariato.ru/templates/admin/base.html.twig");
  211.     }
  212. }