var/cache/dev/twig/e0/e080a1aa053297cb91fb5eb581d8c617.php line 42

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_209df3bc9913f7e8b422bf9117362bbc 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.             'addHead' => [$this'block_addHead'],
  25.             'bodyAttrs' => [$this'block_bodyAttrs'],
  26.             'body' => [$this'block_body'],
  27.             'content' => [$this'block_content'],
  28.         ];
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 2
  33.         return "base.html.twig";
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros $this->macros;
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""admin/base.html.twig"));
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""admin/base.html.twig"));
  42.         $this->parent $this->loadTemplate("base.html.twig""admin/base.html.twig"2);
  43.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  44.         
  45.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  46.         
  47.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  48.     }
  49.     // line 4
  50.     public function block_addHead($context, array $blocks = [])
  51.     {
  52.         $macros $this->macros;
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  54.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""addHead"));
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""addHead"));
  57.         // line 5
  58.         yield "    ";
  59.         if ( !$this->extensions['App\Twig\AppExtension']->isProd()) {
  60.             // line 6
  61.             yield "        <style>
  62.             .bg-gradient-primary {
  63.                 background-color: #45c172 !important;
  64.                 background-image: linear-gradient(180deg, #45c172 10%, #23984d 100%) !important;
  65.             }
  66.         </style>
  67.     ";
  68.         }
  69.         
  70.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  71.         
  72.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  73.         return; yield '';
  74.     }
  75.     // line 16
  76.     public function block_bodyAttrs($context, array $blocks = [])
  77.     {
  78.         $macros $this->macros;
  79.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  80.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""bodyAttrs"));
  81.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  82.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""bodyAttrs"));
  83.         yield "id=\"page-top\"";
  84.         
  85.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  86.         
  87.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  88.         return; yield '';
  89.     }
  90.     // line 17
  91.     public function block_body($context, array $blocks = [])
  92.     {
  93.         $macros $this->macros;
  94.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  95.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  96.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  97.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  98.         // line 18
  99.         yield "    <!-- Page Wrapper -->
  100.     <div id=\"wrapper\">
  101.         ";
  102.         // line 20
  103.         yield from         $this->loadTemplate("components/sidebar.html.twig""admin/base.html.twig"20)->unwrap()->yield($context);
  104.         // line 21
  105.         yield "
  106.         <!-- Content Wrapper -->
  107.         <div id=\"content-wrapper\" class=\"d-flex flex-column\">
  108.             ";
  109.         // line 24
  110.         yield from         $this->loadTemplate("components/toolbar.html.twig""admin/base.html.twig"24)->unwrap()->yield($context);
  111.         // line 25
  112.         yield "
  113.             <!-- Main Content -->
  114.             <div id=\"content\">
  115.                 <!-- Begin Page Content -->
  116.                 <div class=\"container-fluid\">
  117.                     <div class=\"dashboard-container\">
  118.                         ";
  119.         // line 31
  120.         $context['_parent'] = $context;
  121.         $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.'31$this->source); })()), "session", [], "any"falsefalsefalse31), "flashbag", [], "any"falsefalsefalse31), "get", ["success"], "method"falsefalsefalse31));
  122.         foreach ($context['_seq'] as $context["_key"] => $context["flash"]) {
  123.             // line 32
  124.             yield "                            <div class=\"alert alert-success\">";
  125.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["flash"], "html"nulltrue);
  126.             yield "</div>
  127.                         ";
  128.         }
  129.         $_parent $context['_parent'];
  130.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['flash'], $context['_parent'], $context['loop']);
  131.         $context array_intersect_key($context$_parent) + $_parent;
  132.         // line 34
  133.         yield "
  134.                         ";
  135.         // line 35
  136.         $context['_parent'] = $context;
  137.         $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.'35$this->source); })()), "session", [], "any"falsefalsefalse35), "flashbag", [], "any"falsefalsefalse35), "get", ["errors"], "method"falsefalsefalse35));
  138.         foreach ($context['_seq'] as $context["_key"] => $context["flash"]) {
  139.             // line 36
  140.             yield "                            <div class=\"alert alert-danger\">";
  141.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["flash"], "html"nulltrue);
  142.             yield "</div>
  143.                         ";
  144.         }
  145.         $_parent $context['_parent'];
  146.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['flash'], $context['_parent'], $context['loop']);
  147.         $context array_intersect_key($context$_parent) + $_parent;
  148.         // line 38
  149.         yield "                    </div>
  150.                     ";
  151.         // line 40
  152.         yield from $this->unwrap()->yieldBlock('content'$context$blocks);
  153.         // line 41
  154.         yield "                </div>
  155.                 <!-- End Page Content -->
  156.             </div>
  157.             <!-- End of Main Content -->
  158.         <!-- End of Content Wrapper -->
  159.         </div>
  160.     </div>
  161. ";
  162.         
  163.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  164.         
  165.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  166.         return; yield '';
  167.     }
  168.     // line 40
  169.     public function block_content($context, array $blocks = [])
  170.     {
  171.         $macros $this->macros;
  172.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  173.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  174.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  175.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  176.         
  177.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  178.         
  179.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  180.         return; yield '';
  181.     }
  182.     /**
  183.      * @codeCoverageIgnore
  184.      */
  185.     public function getTemplateName()
  186.     {
  187.         return "admin/base.html.twig";
  188.     }
  189.     /**
  190.      * @codeCoverageIgnore
  191.      */
  192.     public function isTraitable()
  193.     {
  194.         return false;
  195.     }
  196.     /**
  197.      * @codeCoverageIgnore
  198.      */
  199.     public function getDebugInfo()
  200.     {
  201.         return array (  197 => 40,  179 => 41,  177 => 40,  173 => 38,  164 => 36,  160 => 35,  157 => 34,  148 => 32,  144 => 31,  136 => 25,  134 => 24,  129 => 21,  127 => 20,  123 => 18,  113 => 17,  93 => 16,  75 => 6,  72 => 5,  62 => 4,  39 => 2,);
  202.     }
  203.     public function getSourceContext()
  204.     {
  205.         return new Source("
  206. {% extends 'base.html.twig' %}
  207. {% block addHead %}
  208.     {% if not isProd() %}
  209.         <style>
  210.             .bg-gradient-primary {
  211.                 background-color: #45c172 !important;
  212.                 background-image: linear-gradient(180deg, #45c172 10%, #23984d 100%) !important;
  213.             }
  214.         </style>
  215.     {% endif %}
  216. {% endblock %}
  217. {# {% block bodyClass %}bg-gradient-primary{% endblock %} #}
  218. {% block bodyAttrs %}id=\"page-top\"{% endblock %}
  219. {% block body %}
  220.     <!-- Page Wrapper -->
  221.     <div id=\"wrapper\">
  222.         {% include 'components/sidebar.html.twig' %}
  223.         <!-- Content Wrapper -->
  224.         <div id=\"content-wrapper\" class=\"d-flex flex-column\">
  225.             {% include 'components/toolbar.html.twig' %}
  226.             <!-- Main Content -->
  227.             <div id=\"content\">
  228.                 <!-- Begin Page Content -->
  229.                 <div class=\"container-fluid\">
  230.                     <div class=\"dashboard-container\">
  231.                         {% for flash in app.session.flashbag.get('success') %}
  232.                             <div class=\"alert alert-success\">{{ flash }}</div>
  233.                         {% endfor %}
  234.                         {% for flash in app.session.flashbag.get('errors') %}
  235.                             <div class=\"alert alert-danger\">{{ flash }}</div>
  236.                         {% endfor %}
  237.                     </div>
  238.                     {% block content %}{% endblock %}
  239.                 </div>
  240.                 <!-- End Page Content -->
  241.             </div>
  242.             <!-- End of Main Content -->
  243.         <!-- End of Content Wrapper -->
  244.         </div>
  245.     </div>
  246. {% endblock %}
  247. ""admin/base.html.twig""/home/sariato/www/dev.centr.sariato.ru/templates/admin/base.html.twig");
  248.     }
  249. }