var/cache/dev/twig/dc/dcf949aadb3868fff1cea5f126b5409c.php line 48
- <?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;
- /* 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 = [
- 'contenidoOfi' => [$this, 'block_contenidoOfi'],
- ];
- }
- protected function doGetParent(array $context)
- {
- // line 2
- return "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 4
- public 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 5
- echo " <div id=\"listado-oficinas\" class=\"container\">
- <p class=\"tit\">";
- // line 6
- echo 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.', 6, $this->source); })()), "nombre", [], "any", false, false, false, 6), "html", null, true);
- echo "</p>
- ";
- // line 7
- if ((twig_get_attribute($this->env, $this->source, ($context["provincia"] ?? null), "texto", [], "any", true, true, false, 7) && 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.', 7, $this->source); })()), "texto", [], "any", false, false, false, 7))) {
- // line 8
- echo " <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.', 8, $this->source); })()), "texto", [], "any", false, false, false, 8);
- echo "</p>
- ";
- } else {
- // line 10
- echo " <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.', 10, $this->source); })()), "nombre", [], "any", false, false, false, 10), "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 12
- echo "
- ";
- // line 13
- $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.', 13, $this->source); })()));
- foreach ($context['_seq'] as $context["_key"] => $context["loc"]) {
- // line 14
- echo " <div class=\"item\">
- <p><a class=\"loc\" href=\"";
- // line 15
- echo 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.', 15, $this->source); })()), "slug", [], "any", false, false, false, 15), "slugL" => twig_get_attribute($this->env, $this->source, $context["loc"], "slug", [], "any", false, false, false, 15)]), "html", null, true);
- echo "\">";
- echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["loc"], "nombre", [], "any", false, false, false, 15), "html", null, true);
- echo "</a></p>
- <ul>
- ";
- // line 17
- $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.', 17, $this->source); })()));
- foreach ($context['_seq'] as $context["_key"] => $context["ofi"]) {
- // line 18
- echo " ";
- if (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["ofi"], "localidad", [], "any", false, false, false, 18), "id", [], "any", false, false, false, 18) == twig_get_attribute($this->env, $this->source, $context["loc"], "id", [], "any", false, false, false, 18)) && twig_get_attribute($this->env, $this->source, $context["ofi"], "slug", [], "any", false, false, false, 18))) {
- // line 19
- echo " <li class=\"ofi\">
- <a href=\"";
- // line 20
- echo 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.', 20, $this->source); })()), "slug", [], "any", false, false, false, 20), "slugL" => twig_get_attribute($this->env, $this->source, $context["loc"], "slug", [], "any", false, false, false, 20), "slugO" => twig_get_attribute($this->env, $this->source, $context["ofi"], "slug", [], "any", false, false, false, 20)]), "html", null, true);
- echo "\">
- <p class=\"nom\">";
- // line 21
- echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["ofi"], "nombre", [], "any", false, false, false, 21), "html", null, true);
- echo "</p>
- <p class=\"dat\">";
- // line 22
- echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["ofi"], "direccion", [], "any", false, false, false, 22), "html", null, true);
- echo "</p>
- <p class=\"dat\">T. ";
- // line 23
- echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["ofi"], "telefono", [], "any", false, false, false, 23), "html", null, true);
- echo "</p>
- </a>
- <img src=\"/img/desplegar.svg\"/>
- </li>
- ";
- }
- // line 28
- echo " ";
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ofi'], $context['_parent'], $context['loop']);
- $context = array_intersect_key($context, $_parent) + $_parent;
- // line 29
- echo " </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 32
- echo " </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 ( 156 => 32, 148 => 29, 142 => 28, 134 => 23, 130 => 22, 126 => 21, 122 => 20, 119 => 19, 116 => 18, 112 => 17, 105 => 15, 102 => 14, 98 => 13, 95 => 12, 85 => 10, 79 => 8, 77 => 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\">{{ '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");
- }
- }