var/cache/dev/twig/82/820f9170cc352911a8ea3174c408faae.php line 56
- <?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_oficinas.html.twig */
- class __TwigTemplate_5a5a96243604e1823c4fe7d3e13b7254 extends Template
- {
- private $source;
- private $macros = [];
- public function __construct(Environment $env)
- {
- parent::__construct($env);
- $this->source = $this->getSourceContext();
- $this->blocks = [
- 'title' => [$this, 'block_title'],
- 'metadescription' => [$this, 'block_metadescription'],
- 'metakeywords' => [$this, 'block_metakeywords'],
- 'bodyId' => [$this, 'block_bodyId'],
- 'body' => [$this, 'block_body'],
- 'contenidoOfi' => [$this, 'block_contenidoOfi'],
- 'empresas' => [$this, 'block_empresas'],
- 'funciones_eventos' => [$this, 'block_funciones_eventos'],
- 'javascripts_footer' => [$this, 'block_javascripts_footer'],
- ];
- }
- protected function doGetParent(array $context)
- {
- // line 2
- 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", "default/listado_oficinas.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_oficinas.html.twig"));
- $this->parent = $this->loadTemplate("base.html.twig", "default/listado_oficinas.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_title($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", "title"));
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
- echo twig_escape_filter($this->env, twig_replace_filter(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.', 4, $this->source); })()), "metaTitle", [], "any", false, false, false, 4), ["| Eurochange.es" => ""]), "html", null, true);
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
- $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
- }
- // line 5
- public function block_metadescription($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", "metadescription"));
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metadescription"));
- echo twig_escape_filter($this->env, 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.', 5, $this->source); })()), "metaDescription", [], "any", false, false, false, 5), "html", null, true);
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
- $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
- }
- // line 6
- public function block_metakeywords($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", "metakeywords"));
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metakeywords"));
- echo twig_escape_filter($this->env, 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); })()), "metaKeywords", [], "any", false, false, false, 6), "html", null, true);
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
- $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
- }
- // line 10
- public function block_bodyId($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", "bodyId"));
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "bodyId"));
- echo "oficinas";
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
- $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
- }
- // line 12
- public function block_body($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", "body"));
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
- // line 13
- echo " <div class=\"title container\">
- <h1>";
- // line 14
- echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Oficinas de cambio de divisas"), "html", null, true);
- echo "</h1>
- </div>
- <div id=\"mapa\" class=\"container\">
- <div id=\"map\"></div>
- <div id=\"texto-mapa\">
- <div>
- <p>";
- // line 21
- echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Utiliza el mapa para saber dónde encontrarnos en cada localidad y ven a vernos."), "html", null, true);
- echo "</p>
- <p>";
- // line 22
- echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Podrás cambiar más de 40 divisas con la mejor cotización de cambio y sin pagar comisiones."), "html", null, true);
- echo "</p>
- </div>
- ";
- // line 24
- $context["urlParts"] = twig_split_filter($this->env, 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.', 24, $this->source); })()), "request", [], "any", false, false, false, 24), "uri", [], "any", false, false, false, 24), "/");
- // line 25
- echo " ";
- $context["lastPart"] = twig_first($this->env, twig_slice($this->env, (isset($context["urlParts"]) || array_key_exists("urlParts", $context) ? $context["urlParts"] : (function () { throw new RuntimeError('Variable "urlParts" does not exist.', 25, $this->source); })()), -1));
- // line 26
- echo " ";
- if (((isset($context["lastPart"]) || array_key_exists("lastPart", $context) ? $context["lastPart"] : (function () { throw new RuntimeError('Variable "lastPart" does not exist.', 26, $this->source); })()) == "oficinas-cambio-moneda")) {
- // line 27
- echo " <div id=\"listado-localidades\" class=\"text-center d-none d-sm-block\">
- <select class=\"select2 \">
- <option></option>
- ";
- // line 30
- $context['_parent'] = $context;
- $context['_seq'] = twig_ensure_traversable((isset($context["provincias"]) || array_key_exists("provincias", $context) ? $context["provincias"] : (function () { throw new RuntimeError('Variable "provincias" does not exist.', 30, $this->source); })()));
- foreach ($context['_seq'] as $context["_key"] => $context["provincia"]) {
- // line 31
- echo " ";
- if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["provincia"], "localidades", [], "any", false, false, false, 31)) > 0)) {
- // line 32
- echo " <optgroup label=\"";
- echo twig_escape_filter($this->env, $context["provincia"], "html", null, true);
- echo "\">
- ";
- // line 33
- $context['_parent'] = $context;
- $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["provincia"], "localidades", [], "any", false, false, false, 33));
- foreach ($context['_seq'] as $context["_key"] => $context["localidad"]) {
- // line 34
- echo " <option value=\"";
- echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("listado_localidad", ["slugP" => twig_get_attribute($this->env, $this->source, $context["provincia"], "slug", [], "any", false, false, false, 34), "slugL" => twig_get_attribute($this->env, $this->source, $context["localidad"], "slug", [], "any", false, false, false, 34)]), "html", null, true);
- echo "\">";
- echo twig_escape_filter($this->env, $context["localidad"], "html", null, true);
- echo "</option>
- ";
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['_key'], $context['localidad'], $context['_parent'], $context['loop']);
- $context = array_intersect_key($context, $_parent) + $_parent;
- // line 36
- echo " </optgroup>
- ";
- }
- // line 38
- echo " ";
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['_key'], $context['provincia'], $context['_parent'], $context['loop']);
- $context = array_intersect_key($context, $_parent) + $_parent;
- // line 39
- echo " </select>
- </div>
- ";
- }
- // line 42
- echo " </div>
- </div>
- ";
- // line 45
- $this->displayBlock('contenidoOfi', $context, $blocks);
- // line 128
- echo "
- ";
- // line 129
- $this->displayBlock('empresas', $context, $blocks);
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
- $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
- }
- // line 45
- 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 46
- echo " <div id=\"listado-oficinas\" class=\"container \">
- <p class=\"tit\">";
- // line 47
- echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Nuestras casas de cambio"), "html", null, true);
- echo "</p>
- <p class=\"text\"><b>";
- // line 48
- echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Contamos con 39 casas de cambio"), "html", null, true);
- echo "</b> ";
- echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ubicadas en las principales poblaciones turísticas de las provincias de Alicante, Murcia, Almería, Málaga y en las Islas Baleares (Mallorca)."), "html", null, true);
- echo "</p>
- <div id=\"listado-localidades\" class=\"text-center d-block d-sm-none\">
- <select class=\"select2 \">
- <option></option>
- ";
- // line 53
- $context['_parent'] = $context;
- $context['_seq'] = twig_ensure_traversable((isset($context["provincias"]) || array_key_exists("provincias", $context) ? $context["provincias"] : (function () { throw new RuntimeError('Variable "provincias" does not exist.', 53, $this->source); })()));
- foreach ($context['_seq'] as $context["_key"] => $context["provincia"]) {
- // line 54
- echo " ";
- if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, $context["provincia"], "localidades", [], "any", false, false, false, 54)) > 0)) {
- // line 55
- echo " <optgroup label=\"";
- echo twig_escape_filter($this->env, $context["provincia"], "html", null, true);
- echo "\">
- ";
- // line 56
- $context['_parent'] = $context;
- $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["provincia"], "localidades", [], "any", false, false, false, 56));
- foreach ($context['_seq'] as $context["_key"] => $context["localidad"]) {
- // line 57
- echo " <option value=\"";
- echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("listado_localidad", ["slugP" => twig_get_attribute($this->env, $this->source, $context["provincia"], "slug", [], "any", false, false, false, 57), "slugL" => twig_get_attribute($this->env, $this->source, $context["localidad"], "slug", [], "any", false, false, false, 57)]), "html", null, true);
- echo "\">";
- echo twig_escape_filter($this->env, $context["localidad"], "html", null, true);
- echo "</option>
- ";
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['_key'], $context['localidad'], $context['_parent'], $context['loop']);
- $context = array_intersect_key($context, $_parent) + $_parent;
- // line 59
- echo " </optgroup>
- ";
- }
- // line 61
- echo " ";
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['_key'], $context['provincia'], $context['_parent'], $context['loop']);
- $context = array_intersect_key($context, $_parent) + $_parent;
- // line 62
- echo " </select>
- </div>
- <div class=\"d-none d-md-block\">
- <div class=\"row listado \">
- ";
- // line 66
- $context['_parent'] = $context;
- $context['_seq'] = twig_ensure_traversable(twig_array_batch((isset($context["provincias"]) || array_key_exists("provincias", $context) ? $context["provincias"] : (function () { throw new RuntimeError('Variable "provincias" does not exist.', 66, $this->source); })()), 3));
- foreach ($context['_seq'] as $context["_key"] => $context["grupo"]) {
- // line 67
- echo " ";
- $context['_parent'] = $context;
- $context['_seq'] = twig_ensure_traversable($context["grupo"]);
- foreach ($context['_seq'] as $context["_key"] => $context["provincia"]) {
- // line 68
- echo " ";
- if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["provincia"], "localidades", [], "any", false, false, false, 68), "isEmpty", [], "method", false, false, false, 68)) {
- // line 69
- echo "
- ";
- } else {
- // line 71
- echo " <div class=\"col\">
- <div class=\"item\">
- <div class=\"image\">
- ";
- // line 74
- if (twig_get_attribute($this->env, $this->source, $context["provincia"], "imagenCabecera", [], "any", false, false, false, 74)) {
- // line 75
- echo " ";
- echo $this->env->getRuntime('Sonata\MediaBundle\Twig\MediaRuntime')->thumbnail(twig_get_attribute($this->env, $this->source, $context["provincia"], "imagenCabecera", [], "any", false, false, false, 75), "provincia");
- echo "
- ";
- }
- // line 77
- echo " <a href=\"";
- echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("listado_provincia", ["slug" => twig_get_attribute($this->env, $this->source, $context["provincia"], "slug", [], "any", false, false, false, 77)]), "html", null, true);
- echo "\">";
- echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["provincia"], "nombre", [], "any", false, false, false, 77), "html", null, true);
- echo "</a>
- </div>
- <div class=\"texto\">
- <ul class=\"ciudades\">
- ";
- // line 81
- $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.', 81, $this->source); })()));
- foreach ($context['_seq'] as $context["_key"] => $context["loc"]) {
- // line 82
- echo " ";
- if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["loc"], "provincia", [], "any", false, false, false, 82), "id", [], "any", false, false, false, 82) == twig_get_attribute($this->env, $this->source, $context["provincia"], "id", [], "any", false, false, false, 82))) {
- // line 83
- echo " <li><a href=\"";
- echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("listado_localidad", ["slugP" => twig_get_attribute($this->env, $this->source, $context["provincia"], "slug", [], "any", false, false, false, 83), "slugL" => twig_get_attribute($this->env, $this->source, $context["loc"], "slug", [], "any", false, false, false, 83)]), "html", null, true);
- echo "\">";
- echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["loc"], "nombre", [], "any", false, false, false, 83), "html", null, true);
- echo "</a></li>
- ";
- }
- // line 85
- echo " ";
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['_key'], $context['loc'], $context['_parent'], $context['loop']);
- $context = array_intersect_key($context, $_parent) + $_parent;
- // line 86
- echo " </ul>
- </div>
- </div>
- </div>
- ";
- }
- // line 91
- echo " ";
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['_key'], $context['provincia'], $context['_parent'], $context['loop']);
- $context = array_intersect_key($context, $_parent) + $_parent;
- // line 92
- echo " ";
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['_key'], $context['grupo'], $context['_parent'], $context['loop']);
- $context = array_intersect_key($context, $_parent) + $_parent;
- // line 93
- echo " </div>
- </div>
- </div>
- <div id=\"listado-oficinas\" class=\"container d-block d-md-none\">
- ";
- // line 101
- echo "
- <div id=\"listado\" class=\"owl-carousel owl-theme listado\">
- ";
- // line 103
- $context['_parent'] = $context;
- $context['_seq'] = twig_ensure_traversable((isset($context["provincias"]) || array_key_exists("provincias", $context) ? $context["provincias"] : (function () { throw new RuntimeError('Variable "provincias" does not exist.', 103, $this->source); })()));
- foreach ($context['_seq'] as $context["_key"] => $context["provincia"]) {
- // line 104
- echo " ";
- if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["provincia"], "localidades", [], "any", false, false, false, 104), "isEmpty", [], "method", false, false, false, 104)) {
- // line 105
- echo "
- ";
- } else {
- // line 107
- echo " <div class=\"item\">
- <div class=\"image\">
- <img src=\"/img/ciudad-1.png\"/>
- </div>
- <div class=\"texto\">
- <span>";
- // line 112
- echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Casas de cambio en"), "html", null, true);
- echo "</br><b><a href=\"";
- echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("listado_provincia", ["slug" => twig_get_attribute($this->env, $this->source, $context["provincia"], "slug", [], "any", false, false, false, 112)]), "html", null, true);
- echo "\">";
- echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["provincia"], "nombre", [], "any", false, false, false, 112), "html", null, true);
- echo "</a></b></span>
- <a href=\"#\" class=\"toggle-link\"><img src=\"/img/desplegar.svg\"/></a>
- <ul class=\"target-element ciudades\" style=\"display: block;\">
- ";
- // line 115
- $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.', 115, $this->source); })()));
- foreach ($context['_seq'] as $context["_key"] => $context["loc"]) {
- // line 116
- echo " ";
- if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["loc"], "provincia", [], "any", false, false, false, 116), "id", [], "any", false, false, false, 116) == twig_get_attribute($this->env, $this->source, $context["provincia"], "id", [], "any", false, false, false, 116))) {
- // line 117
- echo " <li><a href=\"";
- echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("listado_localidad", ["slugP" => twig_get_attribute($this->env, $this->source, $context["provincia"], "slug", [], "any", false, false, false, 117), "slugL" => twig_get_attribute($this->env, $this->source, $context["loc"], "slug", [], "any", false, false, false, 117)]), "html", null, true);
- echo "\">";
- echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["loc"], "nombre", [], "any", false, false, false, 117), "html", null, true);
- echo "</a></li>
- ";
- }
- // line 119
- echo " ";
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['_key'], $context['loc'], $context['_parent'], $context['loop']);
- $context = array_intersect_key($context, $_parent) + $_parent;
- // line 120
- echo " </ul>
- </div>
- </div>
- ";
- }
- // line 124
- echo " ";
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['_key'], $context['provincia'], $context['_parent'], $context['loop']);
- $context = array_intersect_key($context, $_parent) + $_parent;
- // line 125
- echo " </div>
- </div>
- ";
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
- $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
- }
- // line 129
- public function block_empresas($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", "empresas"));
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "empresas"));
- // line 130
- echo " ";
- echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\DefaultController::empresas"));
- echo "
- ";
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
- $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
- }
- // line 135
- public function block_funciones_eventos($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", "funciones_eventos"));
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "funciones_eventos"));
- // line 136
- echo " ";
- $this->displayParentBlock("funciones_eventos", $context, $blocks);
- echo "
- <script>
- const toggleLinks = document.querySelectorAll('.toggle-link');
- toggleLinks.forEach(function(toggleLink) {
- toggleLink.addEventListener('click', function() {
- event.preventDefault();
- const targetElement = this.nextElementSibling;
- if (targetElement.style.display === 'none') {
- targetElement.style.display = 'block';
- toggleLink.classList.add('voltear');
- } else {
- targetElement.style.display = 'none';
- toggleLink.classList.remove('voltear');
- }
- });
- });
- </script>
- ";
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
- $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
- }
- // line 159
- public function block_javascripts_footer($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", "javascripts_footer"));
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts_footer"));
- // line 160
- echo "
- ";
- // line 161
- $this->displayParentBlock("javascripts_footer", $context, $blocks);
- echo "
- ";
- // line 162
- $this->loadTemplate("includes/mapa_javascript.html.twig", "default/listado_oficinas.html.twig", 162)->display(twig_to_array(["oficinasMapa" => (isset($context["oficinas"]) || array_key_exists("oficinas", $context) ? $context["oficinas"] : (function () { throw new RuntimeError('Variable "oficinas" does not exist.', 162, $this->source); })())]));
- // line 163
- echo "
- <script>
- \$(document).ready(function() {
- \$('#listado-localidades .select2').select2({
- placeholder: '";
- // line 168
- echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Selecciona la localidad más cercana"), "html", null, true);
- echo "',
- allowClear: true
- });
- \$('#listado-localidades .select2').change(function() {
- if (\$(this).val().length > 0)
- window.location.href = \$(this).val();
- });
- // //Desactivar select2 en resoluciones pequenyas
- // checkSize();
- // \$(window).resize(checkSize);
- });
- // function checkSize(){
- // if (window.matchMedia(\"(max-width: 992px)\").matches) {
- // \$(\"#listado-localidades .select2\").select2(\"destroy\");
- // }
- // }
- </script>
- ";
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
- $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
- }
- public function getTemplateName()
- {
- return "default/listado_oficinas.html.twig";
- }
- public function isTraitable()
- {
- return false;
- }
- public function getDebugInfo()
- {
- return array ( 574 => 168, 567 => 163, 565 => 162, 561 => 161, 558 => 160, 548 => 159, 516 => 136, 506 => 135, 493 => 130, 483 => 129, 471 => 125, 465 => 124, 459 => 120, 453 => 119, 445 => 117, 442 => 116, 438 => 115, 428 => 112, 421 => 107, 417 => 105, 414 => 104, 410 => 103, 406 => 101, 398 => 93, 392 => 92, 386 => 91, 379 => 86, 373 => 85, 365 => 83, 362 => 82, 358 => 81, 348 => 77, 342 => 75, 340 => 74, 335 => 71, 331 => 69, 328 => 68, 323 => 67, 319 => 66, 313 => 62, 307 => 61, 303 => 59, 292 => 57, 288 => 56, 283 => 55, 280 => 54, 276 => 53, 266 => 48, 262 => 47, 259 => 46, 249 => 45, 239 => 129, 236 => 128, 234 => 45, 229 => 42, 224 => 39, 218 => 38, 214 => 36, 203 => 34, 199 => 33, 194 => 32, 191 => 31, 187 => 30, 182 => 27, 179 => 26, 176 => 25, 174 => 24, 169 => 22, 165 => 21, 155 => 14, 152 => 13, 142 => 12, 123 => 10, 104 => 6, 85 => 5, 66 => 4, 43 => 2,);
- }
- public function getSourceContext()
- {
- return new Source("{# {% extends 'default/contenido.html.twig' %} #}
- {% extends 'base.html.twig' %}
- {% block title %}{{ contenido.metaTitle| replace({'| Eurochange.es':''}) }}{% endblock %}
- {% block metadescription %}{{ contenido.metaDescription }}{% endblock %}
- {% block metakeywords %}{{ contenido.metaKeywords }}{% endblock %}
- {#{% block metarobots %}{{ contenido.metaRobots|default(parent()) }}{% endblock %}
- {% block canonical %}{% if contenido.canonical %}<link rel=\"canonical\" href=\"{{contenido.canonical}}\" />{% endif %}{% endblock %}#}
- {% block bodyId %}oficinas{% endblock %}
- {% block body %}
- <div class=\"title container\">
- <h1>{{ 'Oficinas de cambio de divisas' | trans}}</h1>
- </div>
- <div id=\"mapa\" class=\"container\">
- <div id=\"map\"></div>
- <div id=\"texto-mapa\">
- <div>
- <p>{{ 'Utiliza el mapa para saber dónde encontrarnos en cada localidad y ven a vernos.' | trans}}</p>
- <p>{{ 'Podrás cambiar más de 40 divisas con la mejor cotización de cambio y sin pagar comisiones.' | trans}}</p>
- </div>
- {% set urlParts = app.request.uri|split('/') %}
- {% set lastPart = urlParts|slice(-1)|first %}
- {% if lastPart == 'oficinas-cambio-moneda' %}
- <div id=\"listado-localidades\" class=\"text-center d-none d-sm-block\">
- <select class=\"select2 \">
- <option></option>
- {% for provincia in provincias %}
- {% if provincia.localidades|length > 0 %}
- <optgroup label=\"{{ provincia }}\">
- {% for localidad in provincia.localidades %}
- <option value=\"{{path('listado_localidad', {slugP: provincia.slug, slugL: localidad.slug}) }}\">{{ localidad }}</option>
- {% endfor %}
- </optgroup>
- {% endif %}
- {% endfor %}
- </select>
- </div>
- {% endif %}
- </div>
- </div>
- {% block contenidoOfi %}
- <div id=\"listado-oficinas\" class=\"container \">
- <p class=\"tit\">{{ 'Nuestras casas de cambio' | trans}}</p>
- <p class=\"text\"><b>{{ 'Contamos con 39 casas de cambio' | trans}}</b> {{ 'ubicadas en las principales poblaciones turísticas de las provincias de Alicante, Murcia, Almería, Málaga y en las Islas Baleares (Mallorca).' | trans}}</p>
- <div id=\"listado-localidades\" class=\"text-center d-block d-sm-none\">
- <select class=\"select2 \">
- <option></option>
- {% for provincia in provincias %}
- {% if provincia.localidades|length > 0 %}
- <optgroup label=\"{{ provincia }}\">
- {% for localidad in provincia.localidades %}
- <option value=\"{{path('listado_localidad', {slugP: provincia.slug, slugL: localidad.slug}) }}\">{{ localidad }}</option>
- {% endfor %}
- </optgroup>
- {% endif %}
- {% endfor %}
- </select>
- </div>
- <div class=\"d-none d-md-block\">
- <div class=\"row listado \">
- {% for grupo in provincias|batch(3) %}
- {% for provincia in grupo %}
- {% if provincia.localidades.isEmpty() %}
- {% else %}
- <div class=\"col\">
- <div class=\"item\">
- <div class=\"image\">
- {% if provincia.imagenCabecera %}
- {{ sonata_thumbnail(provincia.imagenCabecera, 'provincia') }}
- {% endif %}
- <a href=\"{{ path('listado_provincia', {'slug': provincia.slug}) }}\">{{ provincia.nombre }}</a>
- </div>
- <div class=\"texto\">
- <ul class=\"ciudades\">
- {% for loc in localidades %}
- {% if loc.provincia.id == provincia.id %}
- <li><a href=\"{{ path('listado_localidad', {'slugP': provincia.slug, 'slugL': loc.slug}) }}\">{{ loc.nombre }}</a></li>
- {% endif %}
- {% endfor %}
- </ul>
- </div>
- </div>
- </div>
- {% endif %}
- {% endfor %}
- {% endfor %}
- </div>
- </div>
- </div>
- <div id=\"listado-oficinas\" class=\"container d-block d-md-none\">
- {# <p class=\"tit\">{{ 'Nuestras casas de cambio' | trans}}</p> #}
- {# <p class=\"text d-none d-sm-block\"><b>{{ 'Contamos con 39 casas de cambio' | trans}}</b> {{ 'ubicadas en las principales poblaciones turísticas de las provincias de Alicante, Murcia, Almería, Málaga y en las Islas Baleares (Mallorca).' | trans}}</p> #}
- <div id=\"listado\" class=\"owl-carousel owl-theme listado\">
- {% for provincia in provincias %}
- {% if provincia.localidades.isEmpty() %}
- {% else %}
- <div class=\"item\">
- <div class=\"image\">
- <img src=\"/img/ciudad-1.png\"/>
- </div>
- <div class=\"texto\">
- <span>{{ 'Casas de cambio en' | trans}}</br><b><a href=\"{{ path('listado_provincia', {'slug': provincia.slug}) }}\">{{ provincia.nombre }}</a></b></span>
- <a href=\"#\" class=\"toggle-link\"><img src=\"/img/desplegar.svg\"/></a>
- <ul class=\"target-element ciudades\" style=\"display: block;\">
- {% for loc in localidades %}
- {% if loc.provincia.id == provincia.id %}
- <li><a href=\"{{ path('listado_localidad', {'slugP': provincia.slug, 'slugL': loc.slug}) }}\">{{ loc.nombre }}</a></li>
- {% endif %}
- {% endfor %}
- </ul>
- </div>
- </div>
- {% endif %}
- {% endfor %}
- </div>
- </div>
- {% endblock %}
- {% block empresas %}
- {{ render(controller('App\\\\Controller\\\\DefaultController::empresas' )) }}
- {% endblock %}
- {% endblock %}
- {% block funciones_eventos %}
- {{ parent() }}
- <script>
- const toggleLinks = document.querySelectorAll('.toggle-link');
- toggleLinks.forEach(function(toggleLink) {
- toggleLink.addEventListener('click', function() {
- event.preventDefault();
- const targetElement = this.nextElementSibling;
- if (targetElement.style.display === 'none') {
- targetElement.style.display = 'block';
- toggleLink.classList.add('voltear');
- } else {
- targetElement.style.display = 'none';
- toggleLink.classList.remove('voltear');
- }
- });
- });
- </script>
- {% endblock %}
- {% block javascripts_footer %}
- {{ parent() }}
- {% include \"includes/mapa_javascript.html.twig\" with { oficinasMapa:oficinas } only %}
- <script>
- \$(document).ready(function() {
- \$('#listado-localidades .select2').select2({
- placeholder: '{{ 'Selecciona la localidad más cercana' | trans }}',
- allowClear: true
- });
- \$('#listado-localidades .select2').change(function() {
- if (\$(this).val().length > 0)
- window.location.href = \$(this).val();
- });
- // //Desactivar select2 en resoluciones pequenyas
- // checkSize();
- // \$(window).resize(checkSize);
- });
- // function checkSize(){
- // if (window.matchMedia(\"(max-width: 992px)\").matches) {
- // \$(\"#listado-localidades .select2\").select2(\"destroy\");
- // }
- // }
- </script>
- {% endblock %}
- ", "default/listado_oficinas.html.twig", "/home/alien/www/eurochange/templates/default/listado_oficinas.html.twig");
- }
- }