<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* layout.html.twig */
class __TwigTemplate_35f797d176a02941f23e4e89a76be15e extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'menu_sesion' => [$this, 'block_menu_sesion'],
'menu' => [$this, 'block_menu'],
'breadcrumb' => [$this, 'block_breadcrumb'],
'notice' => [$this, 'block_notice'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "layout.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "layout.html.twig"));
// line 3
if ( !array_key_exists("menu_sel", $context)) {
// line 4
$context["menu_sel"] = (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.', 4, $this->source); })()), "request", [], "any", false, false, false, 4), "baseUrl", [], "any", false, false, false, 4) . 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.', 4, $this->source); })()), "request", [], "any", false, false, false, 4), "pathInfo", [], "any", false, false, false, 4));
}
// line 1
$this->parent = $this->loadTemplate("base.html.twig", "layout.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 7
public function block_menu_sesion($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "menu_sesion"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "menu_sesion"));
// line 8
echo " ";
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\MenuSubController::showMenuSubAction", []));
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 11
public function block_menu($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "menu"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "menu"));
// line 12
echo " ";
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"]));
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 15
public function block_breadcrumb($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "breadcrumb"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "breadcrumb"));
// line 16
echo " ";
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"]));
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 19
public function block_notice($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "notice"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "notice"));
// line 20
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable([0 => "notice", 1 => "success", 2 => "danger", 3 => "info", 4 => "warning"]);
foreach ($context['_seq'] as $context["_key"] => $context["notice_level"]) {
// line 21
echo " ";
$context["session_var"] = $context["notice_level"];
// line 22
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, 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.', 22, $this->source); })()), "session", [], "any", false, false, false, 22), "flashbag", [], "any", false, false, false, 22), "get", [0 => (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", false, false, false, 22));
foreach ($context['_seq'] as $context["_key"] => $context["flashMessage"]) {
// line 23
echo " <div class=\"alert alert-";
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", null, true);
echo "\">
<button type=\"button\" class=\"close\" data-dismiss=\"alert\">
<i class=\"fas fa-times\"></i>
</button>
<strong>
<i class=\"fas fa-info-circle bigger-150\"></i>
";
// line 30
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($context["flashMessage"], [], "message"), "html", null, true);
echo "
</strong>
<br>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['flashMessage'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 36
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['notice_level'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 37
echo " ";
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))) {
// line 38
echo " ";
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
// line 39
echo " <div class=\"flash_error\">
";
// line 40
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($context["error"]), "html", null, true);
echo "
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 43
echo " ";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "layout.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends \"base.html.twig\" %}
{% if menu_sel is not defined %}
{% set menu_sel = app.request.baseUrl ~ app.request.pathInfo %}
{% endif %}
{% block menu_sesion %}
{{ render(controller('App\\\\Controller\\\\MenuSubController::showMenuSubAction', {} )) }}
{% endblock menu_sesion %}
{% block menu %}
{{ render(controller('App\\\\Controller\\\\MenuController::showMenuAction',{ 'menu_sel': menu_sel, 'elem': 'menu' } )) }}
{% endblock %}
{% block breadcrumb %}
{{ render(controller('App\\\\Controller\\\\MenuController::showMenuAction',{ 'menu_sel': menu_sel, 'elem': 'breadcrumb' } )) }}
{% endblock %}
{% block notice %}
{% for notice_level in ['notice','success','danger','info', 'warning'] %}
{% set session_var = notice_level %}
{% for flashMessage in app.session.flashbag.get(session_var) %}
<div class=\"alert alert-{{session_var}}\">
<button type=\"button\" class=\"close\" data-dismiss=\"alert\">
<i class=\"fas fa-times\"></i>
</button>
<strong>
<i class=\"fas fa-info-circle bigger-150\"></i>
{{ flashMessage | trans([],'message') }}
</strong>
<br>
</div>
{% endfor %}
{% endfor %}
{% if errors_presup is defined and errors_presup|length>0 %}
{% for error in errors_presup %}
<div class=\"flash_error\">
{{ error | trans() }}
</div>
{% endfor %}
{% endif %}
{% endblock %}
", "layout.html.twig", "/data/produccion/integral/src/templates/layout.html.twig");
}
}