var/cache/dev/twig/dc/dcf949aadb3868fff1cea5f126b5409c.php line 39
<?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_provincia.html.twig */class __TwigTemplate_79e34f5a8b61c0a490542da302231dbe extends Template{private $source;private $macros = [];public function __construct(Environment $env){parent::__construct($env);$this->source = $this->getSourceContext();$this->blocks = ['idiomas' => [$this, 'block_idiomas'],'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_provincia.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_provincia.html.twig"));$this->parent = $this->loadTemplate("default/listado_oficinas.html.twig", "default/listado_provincia.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_idiomas($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", "idiomas"));$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "idiomas"));// line 5$context['_parent'] = $context;$context['_seq'] = twig_ensure_traversable((isset($context["locales"]) || array_key_exists("locales", $context) ? $context["locales"] : (function () { throw new RuntimeError('Variable "locales" does not exist.', 5, $this->source); })()));foreach ($context['_seq'] as $context["k"] => $context["idioma"]) {// line 6echo " <option ";if (($context["k"] == 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.', 6, $this->source); })()), "request", [], "any", false, false, false, 6), "locale", [], "any", false, false, false, 6))) {echo "selected";}echo " value=\"";echo twig_escape_filter($this->env, twig_replace_filter($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(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.', 6, $this->source); })()), "request", [], "any", false, false, false, 6), "get", [0 => "_route", 1 => "index"], "method", false, false, false, 6), twig_array_merge(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.', 6, $this->source); })()), "request", [], "any", false, false, false, 6), "get", [0 => "_route_params", 1 => []], "method", false, false, false, 6), ["_locale" => $context["k"]])), [twig_get_attribute($this->env, $this->source, (isset($context["contenido"]) || array_key_exists("contenido", $context) ? $context["contenido"] : (function () { throw new RuntimeError('Variable "contenido" does not exist.', 6, $this->source); })()), "slug", [], "any", false, false, false, 6) => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["contenido"]) || array_key_exists("contenido", $context) ? $context["contenido"] : (function () { throw new RuntimeError('Variable "contenido" does not exist.', 6, $this->source); })()), "translate", [0 => $context["k"]], "method", false, false, false, 6), "getSlug", [], "method", false, false, false, 6)]), "html", null, true);echo "\" title=\"";echo twig_escape_filter($this->env, $context["idioma"], "html", null, true);echo "\">";echo twig_escape_filter($this->env, twig_upper_filter($this->env, $context["k"]), "html", null, true);echo "</option>";}$_parent = $context['_parent'];unset($context['_seq'], $context['_iterated'], $context['k'], $context['idioma'], $context['_parent'], $context['loop']);$context = array_intersect_key($context, $_parent) + $_parent;$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}// line 10public 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 11echo " <div id=\"listado-oficinas\" class=\"container\"><p class=\"tit\">";// line 12echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Cambio de moneda en"), "html", null, true);echo " ";echo twig_escape_filter($this->env, 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.', 12, $this->source); })()), "nombre", [], "any", false, false, false, 12), "html", null, true);echo "</p>";// line 13if ((twig_get_attribute($this->env, $this->source, ($context["provincia"] ?? null), "texto", [], "any", true, true, false, 13) && 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.', 13, $this->source); })()), "texto", [], "any", false, false, false, 13))) {// line 14echo " <p class=\"text\">";echo 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); })()), "texto", [], "any", false, false, false, 14);echo "</p>";} else {// line 16echo " <p class=\"text\">";echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Eurochange cuenta con casas de cambio en la provincia de"), "html", null, true);echo " ";echo twig_escape_filter($this->env, 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.', 16, $this->source); })()), "nombre", [], "any", false, false, false, 16), "html", null, true);echo ". ";echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Entra y consulta la ubicación de nuestras oficinas para cambiar divisas al mejor precio."), "html", null, true);echo "</p>";}// line 18echo "";// line 19$context['_parent'] = $context;$context['_seq'] = twig_ensure_traversable((isset($context["localidades"]) || array_key_exists("localidades", $context) ? $context["localidades"] : (function () { throw new RuntimeError('Variable "localidades" does not exist.', 19, $this->source); })()));foreach ($context['_seq'] as $context["_key"] => $context["loc"]) {// line 20echo " <div class=\"item\"><p><a class=\"loc\" href=\"";// line 21echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("listado_localidad", ["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.', 21, $this->source); })()), "slug", [], "any", false, false, false, 21), "slugL" => twig_get_attribute($this->env, $this->source, $context["loc"], "slug", [], "any", false, false, false, 21)]), "html", null, true);echo "\">";echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["loc"], "nombre", [], "any", false, false, false, 21), "html", null, true);echo "</a></p><ul>";// line 23$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.', 23, $this->source); })()));foreach ($context['_seq'] as $context["_key"] => $context["ofi"]) {// line 24echo " ";if (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ofi"], "localidad", [], "any", false, false, false, 24), "id", [], "any", false, false, false, 24) == twig_get_attribute($this->env, $this->source, $context["loc"], "id", [], "any", false, false, false, 24)) && twig_get_attribute($this->env, $this->source, $context["ofi"], "slug", [], "any", false, false, false, 24))) {// line 25echo " <li class=\"ofi\"><a href=\"";// line 26echo 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.', 26, $this->source); })()), "slug", [], "any", false, false, false, 26), "slugL" => twig_get_attribute($this->env, $this->source, $context["loc"], "slug", [], "any", false, false, false, 26), "slugO" => twig_get_attribute($this->env, $this->source, $context["ofi"], "slug", [], "any", false, false, false, 26)]), "html", null, true);echo "\"><p class=\"nom\">";// line 27echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["ofi"], "nombre", [], "any", false, false, false, 27), "html", null, true);echo "</p><p class=\"dat\">";// line 28echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["ofi"], "direccion", [], "any", false, false, false, 28), "html", null, true);echo "</p><p class=\"dat\">T. ";// line 29echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["ofi"], "telefono", [], "any", false, false, false, 29), "html", null, true);echo "</p></a><img src=\"/img/desplegar.svg\"/></li>";}// line 34echo " ";}$_parent = $context['_parent'];unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ofi'], $context['_parent'], $context['loop']);$context = array_intersect_key($context, $_parent) + $_parent;// line 35echo " </ul></div>";}$_parent = $context['_parent'];unset($context['_seq'], $context['_iterated'], $context['_key'], $context['loc'], $context['_parent'], $context['loop']);$context = array_intersect_key($context, $_parent) + $_parent;// line 38echo " </div>";$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);}public function getTemplateName(){return "default/listado_provincia.html.twig";}public function isTraitable(){return false;}public function getDebugInfo(){return array ( 196 => 38, 188 => 35, 182 => 34, 174 => 29, 170 => 28, 166 => 27, 162 => 26, 159 => 25, 156 => 24, 152 => 23, 145 => 21, 142 => 20, 138 => 19, 135 => 18, 125 => 16, 119 => 14, 117 => 13, 111 => 12, 108 => 11, 98 => 10, 73 => 6, 69 => 5, 59 => 4, 36 => 2,);}public function getSourceContext(){return new Source("{# {% extends 'default/contenido.html.twig' %} #}{% extends 'default/listado_oficinas.html.twig' %}{% block idiomas %}{% for k,idioma in locales %}<option {% if k == app.request.locale %}selected{% endif %} value=\"{{ path(app.request.get('_route', 'index'), app.request.get('_route_params', [])|merge({_locale: k}))|replace({ (contenido.slug) : contenido.translate(k).getSlug() }) }}\" title=\"{{ idioma }}\">{{ k | upper}}</option>{% endfor %}{% endblock %}{% block contenidoOfi %}<div id=\"listado-oficinas\" class=\"container\"><p class=\"tit\">{{ 'Cambio de moneda en' | trans}} {{ provincia.nombre }}</p>{% if provincia.texto is defined and provincia.texto %}<p class=\"text\">{{ provincia.texto | raw }}</p>{% else %}<p class=\"text\">{{ 'Eurochange cuenta con casas de cambio en la provincia de' | trans}} {{ provincia.nombre }}. {{ 'Entra y consulta la ubicación de nuestras oficinas para cambiar divisas al mejor precio.' | trans}}</p>{% endif %}{% for loc in localidades %}<div class=\"item\"><p><a class=\"loc\" href=\"{{ path('listado_localidad', {'slugP': provincia.slug, 'slugL': loc.slug}) }}\">{{ loc.nombre }}</a></p><ul>{% for ofi in oficinas %}{% if ofi.localidad.id == loc.id and ofi.slug %}<li class=\"ofi\"><a href=\"{{ path('ficha_oficina', {'slugP': provincia.slug, 'slugL': loc.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>{% endfor %}</div>{% endblock %}", "default/listado_provincia.html.twig", "/home/alien/www/eurochange/templates/default/listado_provincia.html.twig");}}