var/cache/dev/twig/89/89d8f749ff0d2939ae65a62447617efd.php line 38
<?phpuse 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;/* default/listado_localidad.html.twig */class __TwigTemplate_1dd3f985fd4108ecd073f6401b0aa7d6 extends Template{private $source;private $macros = [];public function __construct(Environment $env){parent::__construct($env);$this->source = $this->getSourceContext();$this->blocks = ['contenidoOfi' => [$this, 'block_contenidoOfi'],];}protected function doGetParent(array $context){// line 2return "default/listado_oficinas.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", "default/listado_localidad.html.twig"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "default/listado_localidad.html.twig"));$this->parent = $this->loadTemplate("default/listado_oficinas.html.twig", "default/listado_localidad.html.twig", 2);$this->parent->display($context, array_merge($this->blocks, $blocks));$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);}// line 4public function block_contenidoOfi($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", "contenidoOfi"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "contenidoOfi"));// line 5echo " <div id=\"listado-oficinas\" class=\"container\"><p class=\"tit\">";// line 6echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["localidad"]) || array_key_exists("localidad", $context) ? $context["localidad"] : (function () { throw new RuntimeError('Variable "localidad" does not exist.', 6, $this->source); })()), "title", [], "any", false, false, false, 6), "html", null, true);echo "</p><p class=\"text\">";// line 7echo twig_get_attribute($this->env, $this->source, (isset($context["localidad"]) || array_key_exists("localidad", $context) ? $context["localidad"] : (function () { throw new RuntimeError('Variable "localidad" does not exist.', 7, $this->source); })()), "texto", [], "any", false, false, false, 7);echo "</p><div class=\"item\"><ul>";// line 11$context['_parent'] = $context;$context['_seq'] = twig_ensure_traversable((isset($context["oficinas"]) || array_key_exists("oficinas", $context) ? $context["oficinas"] : (function () { throw new RuntimeError('Variable "oficinas" does not exist.', 11, $this->source); })()));foreach ($context['_seq'] as $context["_key"] => $context["ofi"]) {// line 12echo " ";if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ofi"], "localidad", [], "any", false, false, false, 12), "id", [], "any", false, false, false, 12) == twig_get_attribute($this->env, $this->source, (isset($context["localidad"]) || array_key_exists("localidad", $context) ? $context["localidad"] : (function () { throw new RuntimeError('Variable "localidad" does not exist.', 12, $this->source); })()), "id", [], "any", false, false, false, 12))) {// line 13echo " <li class=\"ofi\"><a href=\"";// line 14echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ficha_oficina", ["slugP" => twig_get_attribute($this->env, $this->source, (isset($context["provincia"]) || array_key_exists("provincia", $context) ? $context["provincia"] : (function () { throw new RuntimeError('Variable "provincia" does not exist.', 14, $this->source); })()), "slug", [], "any", false, false, false, 14), "slugL" => twig_get_attribute($this->env, $this->source, (isset($context["localidad"]) || array_key_exists("localidad", $context) ? $context["localidad"] : (function () { throw new RuntimeError('Variable "localidad" does not exist.', 14, $this->source); })()), "slug", [], "any", false, false, false, 14), "slugO" => twig_get_attribute($this->env, $this->source, $context["ofi"], "slug", [], "any", false, false, false, 14)]), "html", null, true);echo "\"><p class=\"nom\">";// line 15echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["ofi"], "nombre", [], "any", false, false, false, 15), "html", null, true);echo "</p><p class=\"dat\">";// line 16echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["ofi"], "direccion", [], "any", false, false, false, 16), "html", null, true);echo "</p><p class=\"dat\">T. ";// line 17echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["ofi"], "telefono", [], "any", false, false, false, 17), "html", null, true);echo "</p></a><img src=\"/img/desplegar.svg\"/></li>";}// line 22echo " ";}$_parent = $context['_parent'];unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ofi'], $context['_parent'], $context['loop']);$context = array_intersect_key($context, $_parent) + $_parent;// line 23echo " </ul></div></div>";$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}public function getTemplateName(){return "default/listado_localidad.html.twig";}public function isTraitable(){return false;}public function getDebugInfo(){return array ( 118 => 23, 112 => 22, 104 => 17, 100 => 16, 96 => 15, 92 => 14, 89 => 13, 86 => 12, 82 => 11, 75 => 7, 71 => 6, 68 => 5, 58 => 4, 35 => 2,);}public function getSourceContext(){return new Source("{# {% extends 'default/contenido.html.twig' %} #}{% extends 'default/listado_oficinas.html.twig' %}{% block contenidoOfi %}<div id=\"listado-oficinas\" class=\"container\"><p class=\"tit\">{{ localidad.title }}</p><p class=\"text\">{{ localidad.texto|raw }}</p><div class=\"item\"><ul>{% for ofi in oficinas %}{% if ofi.localidad.id == localidad.id %}<li class=\"ofi\"><a href=\"{{ path('ficha_oficina', {'slugP': provincia.slug, 'slugL': localidad.slug, 'slugO': ofi.slug}) }}\"><p class=\"nom\">{{ ofi.nombre }}</p><p class=\"dat\">{{ ofi.direccion }}</p><p class=\"dat\">T. {{ ofi.telefono }}</p></a><img src=\"/img/desplegar.svg\"/></li>{% endif %}{% endfor %}</ul></div></div>{% endblock %}", "default/listado_localidad.html.twig", "/home/alien/www/eurochange/templates/default/listado_localidad.html.twig");}}