var/cache/dev/twig/45/457e357de8893ca275a42d37a077c221.php line 41

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. /* layout.html.twig */
  14. class __TwigTemplate_35f797d176a02941f23e4e89a76be15e 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->blocks = [
  23.             'menu_sesion' => [$this'block_menu_sesion'],
  24.             'menu' => [$this'block_menu'],
  25.             'breadcrumb' => [$this'block_breadcrumb'],
  26.             'notice' => [$this'block_notice'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 1
  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""layout.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""layout.html.twig"));
  41.         // line 3
  42.         if ( !array_key_exists("menu_sel"$context)) {
  43.             // line 4
  44.             $context["menu_sel"] = (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.'4$this->source); })()), "request", [], "any"falsefalsefalse4), "baseUrl", [], "any"falsefalsefalse4) . 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.'4$this->source); })()), "request", [], "any"falsefalsefalse4), "pathInfo", [], "any"falsefalsefalse4));
  45.         }
  46.         // line 1
  47.         $this->parent $this->loadTemplate("base.html.twig""layout.html.twig"1);
  48.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  49.         
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  51.         
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  53.     }
  54.     // line 7
  55.     public function block_menu_sesion($context, array $blocks = [])
  56.     {
  57.         $macros $this->macros;
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""menu_sesion"));
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""menu_sesion"));
  62.         // line 8
  63.         echo "    ";
  64.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\MenuSubController::showMenuSubAction", []));
  65.         echo "
  66. ";
  67.         
  68.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  69.         
  70.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  71.     }
  72.     // line 11
  73.     public function block_menu($context, array $blocks = [])
  74.     {
  75.         $macros $this->macros;
  76.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  77.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""menu"));
  78.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  79.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""menu"));
  80.         // line 12
  81.         echo "    ";
  82.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\MenuController::showMenuAction", ["menu_sel" => (isset($context["menu_sel"]) || array_key_exists("menu_sel"$context) ? $context["menu_sel"] : (function () { throw new RuntimeError('Variable "menu_sel" does not exist.'12$this->source); })()), "elem" => "menu"]));
  83.         echo "
  84. ";
  85.         
  86.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  87.         
  88.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  89.     }
  90.     // line 15
  91.     public function block_breadcrumb($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""breadcrumb"));
  96.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  97.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""breadcrumb"));
  98.         // line 16
  99.         echo "    ";
  100.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\MenuController::showMenuAction", ["menu_sel" => (isset($context["menu_sel"]) || array_key_exists("menu_sel"$context) ? $context["menu_sel"] : (function () { throw new RuntimeError('Variable "menu_sel" does not exist.'16$this->source); })()), "elem" => "breadcrumb"]));
  101.         echo "
  102. ";
  103.         
  104.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  105.         
  106.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  107.     }
  108.     // line 19
  109.     public function block_notice($context, array $blocks = [])
  110.     {
  111.         $macros $this->macros;
  112.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  113.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""notice"));
  114.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  115.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""notice"));
  116.         // line 20
  117.         echo "    ";
  118.         $context['_parent'] = $context;
  119.         $context['_seq'] = twig_ensure_traversable([=> "notice"=> "success"=> "danger"=> "info"=> "warning"]);
  120.         foreach ($context['_seq'] as $context["_key"] => $context["notice_level"]) {
  121.             // line 21
  122.             echo "        ";
  123.             $context["session_var"] = $context["notice_level"];
  124.             // line 22
  125.             echo "        ";
  126.             $context['_parent'] = $context;
  127.             $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.'22$this->source); })()), "session", [], "any"falsefalsefalse22), "flashbag", [], "any"falsefalsefalse22), "get", [=> (isset($context["session_var"]) || array_key_exists("session_var"$context) ? $context["session_var"] : (function () { throw new RuntimeError('Variable "session_var" does not exist.'22$this->source); })())], "method"falsefalsefalse22));
  128.             foreach ($context['_seq'] as $context["_key"] => $context["flashMessage"]) {
  129.                 // line 23
  130.                 echo "            <div class=\"alert alert-";
  131.                 echo twig_escape_filter($this->env, (isset($context["session_var"]) || array_key_exists("session_var"$context) ? $context["session_var"] : (function () { throw new RuntimeError('Variable "session_var" does not exist.'23$this->source); })()), "html"nulltrue);
  132.                 echo "\">
  133.                 <button type=\"button\" class=\"close\" data-dismiss=\"alert\">
  134.                     <i class=\"fas fa-times\"></i>
  135.                 </button>
  136.                 <strong>
  137.                     <i class=\"fas fa-info-circle bigger-150\"></i>
  138.                     ";
  139.                 // line 30
  140.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($context["flashMessage"], [], "message"), "html"nulltrue);
  141.                 echo "   
  142.                 </strong>
  143.                 <br>
  144.             </div>
  145.         ";
  146.             }
  147.             $_parent $context['_parent'];
  148.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['flashMessage'], $context['_parent'], $context['loop']);
  149.             $context array_intersect_key($context$_parent) + $_parent;
  150.             // line 36
  151.             echo "    ";
  152.         }
  153.         $_parent $context['_parent'];
  154.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['notice_level'], $context['_parent'], $context['loop']);
  155.         $context array_intersect_key($context$_parent) + $_parent;
  156.         // line 37
  157.         echo "    ";
  158.         if ((array_key_exists("errors_presup"$context) && (twig_length_filter($this->env, (isset($context["errors_presup"]) || array_key_exists("errors_presup"$context) ? $context["errors_presup"] : (function () { throw new RuntimeError('Variable "errors_presup" does not exist.'37$this->source); })())) > 0))) {
  159.             // line 38
  160.             echo "        ";
  161.             $context['_parent'] = $context;
  162.             $context['_seq'] = twig_ensure_traversable((isset($context["errors_presup"]) || array_key_exists("errors_presup"$context) ? $context["errors_presup"] : (function () { throw new RuntimeError('Variable "errors_presup" does not exist.'38$this->source); })()));
  163.             foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
  164.                 // line 39
  165.                 echo "            <div class=\"flash_error\">
  166.                 ";
  167.                 // line 40
  168.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($context["error"]), "html"nulltrue);
  169.                 echo "
  170.             </div>
  171.         ";
  172.             }
  173.             $_parent $context['_parent'];
  174.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
  175.             $context array_intersect_key($context$_parent) + $_parent;
  176.             // line 43
  177.             echo "    ";
  178.         }
  179.         
  180.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  181.         
  182.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  183.     }
  184.     public function getTemplateName()
  185.     {
  186.         return "layout.html.twig";
  187.     }
  188.     public function isTraitable()
  189.     {
  190.         return false;
  191.     }
  192.     public function getDebugInfo()
  193.     {
  194.         return array (  208 => 43,  199 => 40,  196 => 39,  191 => 38,  188 => 37,  182 => 36,  170 => 30,  159 => 23,  154 => 22,  151 => 21,  146 => 20,  136 => 19,  123 => 16,  113 => 15,  100 => 12,  90 => 11,  77 => 8,  67 => 7,  56 => 1,  53 => 4,  51 => 3,  38 => 1,);
  195.     }
  196.     public function getSourceContext()
  197.     {
  198.         return new Source("{% extends \"base.html.twig\" %}
  199. {% if menu_sel is not defined %}
  200.     {% set menu_sel = app.request.baseUrl ~ app.request.pathInfo %}
  201. {% endif %}
  202. {% block menu_sesion %}
  203.     {{ render(controller('App\\\\Controller\\\\MenuSubController::showMenuSubAction', {} )) }}
  204. {% endblock menu_sesion %}
  205. {% block menu %}
  206.     {{ render(controller('App\\\\Controller\\\\MenuController::showMenuAction',{ 'menu_sel': menu_sel, 'elem': 'menu' } )) }}
  207. {% endblock %}
  208.         
  209. {% block breadcrumb %}
  210.     {{ render(controller('App\\\\Controller\\\\MenuController::showMenuAction',{ 'menu_sel': menu_sel, 'elem': 'breadcrumb' } )) }}
  211. {% endblock %}
  212. {% block notice %}
  213.     {% for notice_level in ['notice','success','danger','info', 'warning'] %}
  214.         {% set session_var = notice_level %}
  215.         {% for flashMessage in app.session.flashbag.get(session_var) %}
  216.             <div class=\"alert alert-{{session_var}}\">
  217.                 <button type=\"button\" class=\"close\" data-dismiss=\"alert\">
  218.                     <i class=\"fas fa-times\"></i>
  219.                 </button>
  220.                 <strong>
  221.                     <i class=\"fas fa-info-circle bigger-150\"></i>
  222.                     {{ flashMessage | trans([],'message') }}   
  223.                 </strong>
  224.                 <br>
  225.             </div>
  226.         {% endfor %}
  227.     {% endfor %}
  228.     {% if errors_presup is defined and errors_presup|length>0 %}
  229.         {% for error in errors_presup %}
  230.             <div class=\"flash_error\">
  231.                 {{ error | trans() }}
  232.             </div>
  233.         {% endfor %}
  234.     {% endif %}
  235. {% endblock %}        
  236.             
  237.             
  238.                
  239.             
  240.             
  241.             
  242.             
  243.             
  244.             
  245.             
  246.             
  247.             
  248.             
  249.             
  250.              
  251.               
  252.         
  253. ""layout.html.twig""/data/produccion/integral/src/templates/layout.html.twig");
  254.     }
  255. }