var/cache/dev/twig/fe/fe191d0e973e57b120b1040222ac8b4f254f3e378902f9e1c6bb88766778f2b1.php line 37

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. /* @FOSUser/layout.html.twig */
  14. class __TwigTemplate_4b65a0c800f808fdf413e9cf68209ff40ce4dec9e8b7652732ef1b48d3ce7d7d 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.             'stylesheets' => [$this'block_stylesheets'],
  25.             'title' => [$this'block_title'],
  26.             'fos_user_content' => [$this'block_fos_user_content'],
  27.             'javascripts' => [$this'block_javascripts'],
  28.         ];
  29.     }
  30.     protected function doDisplay(array $context, array $blocks = [])
  31.     {
  32.         $macros $this->macros;
  33.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  34.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@FOSUser/layout.html.twig"));
  35.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  36.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@FOSUser/layout.html.twig"));
  37.         // line 1
  38.         echo "<!DOCTYPE html>
  39. <html lang=\"en\">
  40. <head>
  41.     <meta charset=\"utf-8\">
  42.     <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
  43.     <meta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=0\">
  44.     ";
  45.         // line 7
  46.         $this->displayBlock('stylesheets'$context$blocks);
  47.         // line 8
  48.         echo "
  49.     <title>";
  50.         // line 9
  51.         $this->displayBlock('title'$context$blocks);
  52.         echo "</title>
  53.     <link rel=\"stylesheet\" href=\"/bundles/avenueadmin/avenue-admin-css/bootstrap.min.css\">
  54.     ";
  55.         // line 13
  56.         $this->loadTemplate("@AvenueAdmin/common-head.html.twig""@FOSUser/layout.html.twig"13)->display($context);
  57.         // line 14
  58.         echo "</head>
  59. <body>
  60. <div class=\"wrapper\">
  61.     <div class=\"center-block\">
  62.         <div class=\"text-center mb30\">
  63.             <a href=\"/admin\" class=\"navbar-brand\"><div class=\"navbar-logo\">a</div><div class=\"navbar-sitename\">";
  64.         // line 20
  65.         echo twig_escape_filter($this->env, (isset($context["app_title"]) || array_key_exists("app_title"$context) ? $context["app_title"] : (function () { throw new RuntimeError('Variable "app_title" does not exist.'20$this->source); })()), "html"nulltrue);
  66.         echo "</div></a>
  67.             ";
  68.         // line 22
  69.         if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'22$this->source); })()), "request", [], "any"falsefalsefalse22), "hasPreviousSession", [], "any"falsefalsefalse22)) {
  70.             // line 23
  71.             echo "                <br>
  72.                 ";
  73.             // line 24
  74.             $context['_parent'] = $context;
  75.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'24$this->source); })()), "session", [], "any"falsefalsefalse24), "flashbag", [], "any"falsefalsefalse24), "all", [], "method"falsefalsefalse24));
  76.             foreach ($context['_seq'] as $context["type"] => $context["messages"]) {
  77.                 // line 25
  78.                 echo "                    ";
  79.                 $context['_parent'] = $context;
  80.                 $context['_seq'] = twig_ensure_traversable($context["messages"]);
  81.                 foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
  82.                     // line 26
  83.                     echo "                        <div class=\"badge badge-warning\" style=\"margin-top:10px\">
  84.                             ";
  85.                     // line 27
  86.                     echo twig_escape_filter($this->env$context["message"], "html"nulltrue);
  87.                     echo "
  88.                         </div>
  89.                     ";
  90.                 }
  91.                 $_parent $context['_parent'];
  92.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
  93.                 $context array_intersect_key($context$_parent) + $_parent;
  94.                 // line 30
  95.                 echo "                ";
  96.             }
  97.             $_parent $context['_parent'];
  98.             unset($context['_seq'], $context['_iterated'], $context['type'], $context['messages'], $context['_parent'], $context['loop']);
  99.             $context array_intersect_key($context$_parent) + $_parent;
  100.             // line 31
  101.             echo "            ";
  102.         }
  103.         // line 32
  104.         echo "
  105.         </div>
  106.         <!--div>
  107.             ";
  108.         // line 36
  109.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
  110.             // line 37
  111.             echo "                ";
  112.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout.logged_in_as", ["%username%" => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'37$this->source); })()), "user", [], "any"falsefalsefalse37), "username", [], "any"falsefalsefalse37)], "FOSUserBundle"), "html"nulltrue);
  113.             echo " |
  114.                 <a href=\"";
  115.             // line 38
  116.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fos_user_security_logout");
  117.             echo "\">
  118.                     ";
  119.             // line 39
  120.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("layout.logout", [], "FOSUserBundle"), "html"nulltrue);
  121.             echo "
  122.                 </a>
  123.             ";
  124.         }
  125.         // line 42
  126.         echo "        </div-->
  127.         <div class=\"box\">
  128.             ";
  129.         // line 45
  130.         $this->displayBlock('fos_user_content'$context$blocks);
  131.         // line 47
  132.         echo "        </div>
  133.     </div>
  134.     <div class=\"center-block-footer\">
  135.         Разработано в <a href=\"https://avenuemedia.ru/\">Avenue Media</a>
  136.     </div>
  137. </div>
  138. <script src=\"/bundles/avenueadmin/avenue-admin-js/bootstrap.bundle.min.js\"></script>
  139. ";
  140.         // line 57
  141.         $this->displayBlock('javascripts'$context$blocks);
  142.         // line 58
  143.         echo "
  144. </body>
  145. </html>";
  146.         
  147.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  148.         
  149.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  150.     }
  151.     // line 7
  152.     public function block_stylesheets($context, array $blocks = [])
  153.     {
  154.         $macros $this->macros;
  155.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  156.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  157.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  158.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""stylesheets"));
  159.         
  160.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  161.         
  162.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  163.     }
  164.     // line 9
  165.     public function block_title($context, array $blocks = [])
  166.     {
  167.         $macros $this->macros;
  168.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  169.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  170.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  171.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  172.         echo twig_escape_filter($this->env, (isset($context["app_title"]) || array_key_exists("app_title"$context) ? $context["app_title"] : (function () { throw new RuntimeError('Variable "app_title" does not exist.'9$this->source); })()), "html"nulltrue);
  173.         echo " - Логин";
  174.         
  175.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  176.         
  177.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  178.     }
  179.     // line 45
  180.     public function block_fos_user_content($context, array $blocks = [])
  181.     {
  182.         $macros $this->macros;
  183.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  184.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""fos_user_content"));
  185.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  186.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""fos_user_content"));
  187.         // line 46
  188.         echo "            ";
  189.         
  190.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  191.         
  192.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  193.     }
  194.     // line 57
  195.     public function block_javascripts($context, array $blocks = [])
  196.     {
  197.         $macros $this->macros;
  198.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  199.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  200.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  201.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  202.         
  203.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  204.         
  205.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  206.     }
  207.     public function getTemplateName()
  208.     {
  209.         return "@FOSUser/layout.html.twig";
  210.     }
  211.     public function isTraitable()
  212.     {
  213.         return false;
  214.     }
  215.     public function getDebugInfo()
  216.     {
  217.         return array (  231 => 57,  221 => 46,  211 => 45,  191 => 9,  173 => 7,  161 => 58,  159 => 57,  147 => 47,  145 => 45,  140 => 42,  134 => 39,  130 => 38,  125 => 37,  123 => 36,  117 => 32,  114 => 31,  108 => 30,  99 => 27,  96 => 26,  91 => 25,  87 => 24,  84 => 23,  82 => 22,  77 => 20,  69 => 14,  67 => 13,  60 => 9,  57 => 8,  55 => 7,  47 => 1,);
  218.     }
  219.     public function getSourceContext()
  220.     {
  221.         return new Source("<!DOCTYPE html>
  222. <html lang=\"en\">
  223. <head>
  224.     <meta charset=\"utf-8\">
  225.     <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">
  226.     <meta name=\"viewport\" content=\"width=device-width, initial-scale=1, shrink-to-fit=no, user-scalable=0\">
  227.     {% block stylesheets %}{% endblock %}
  228.     <title>{% block title %}{{ app_title }} - Логин{% endblock %}</title>
  229.     <link rel=\"stylesheet\" href=\"/bundles/avenueadmin/avenue-admin-css/bootstrap.min.css\">
  230.     {% include '@AvenueAdmin/common-head.html.twig' %}
  231. </head>
  232. <body>
  233. <div class=\"wrapper\">
  234.     <div class=\"center-block\">
  235.         <div class=\"text-center mb30\">
  236.             <a href=\"/admin\" class=\"navbar-brand\"><div class=\"navbar-logo\">a</div><div class=\"navbar-sitename\">{{ app_title }}</div></a>
  237.             {% if app.request.hasPreviousSession %}
  238.                 <br>
  239.                 {% for type, messages in app.session.flashbag.all() %}
  240.                     {% for message in messages %}
  241.                         <div class=\"badge badge-warning\" style=\"margin-top:10px\">
  242.                             {{ message }}
  243.                         </div>
  244.                     {% endfor %}
  245.                 {% endfor %}
  246.             {% endif %}
  247.         </div>
  248.         <!--div>
  249.             {% if is_granted(\"IS_AUTHENTICATED_REMEMBERED\") %}
  250.                 {{ 'layout.logged_in_as'|trans({'%username%': app.user.username}, 'FOSUserBundle') }} |
  251.                 <a href=\"{{ path('fos_user_security_logout') }}\">
  252.                     {{ 'layout.logout'|trans({}, 'FOSUserBundle') }}
  253.                 </a>
  254.             {% endif %}
  255.         </div-->
  256.         <div class=\"box\">
  257.             {% block fos_user_content %}
  258.             {% endblock fos_user_content %}
  259.         </div>
  260.     </div>
  261.     <div class=\"center-block-footer\">
  262.         Разработано в <a href=\"https://avenuemedia.ru/\">Avenue Media</a>
  263.     </div>
  264. </div>
  265. <script src=\"/bundles/avenueadmin/avenue-admin-js/bootstrap.bundle.min.js\"></script>
  266. {% block javascripts %}{% endblock %}
  267. </body>
  268. </html>""@FOSUser/layout.html.twig""/var/wwwdev/rdc.dev6.avenuemedia.ru/vendor/avenue/avenue-admin/src/Resources/FOSUserBundle/views/layout.html.twig");
  269.     }
  270. }