var/cache/dev/twig/82/820f9170cc352911a8ea3174c408faae.php line 46

  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* default/listado_oficinas.html.twig */
  14. class __TwigTemplate_5a5a96243604e1823c4fe7d3e13b7254 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'title' => [$this'block_title'],
  24.             'metadescription' => [$this'block_metadescription'],
  25.             'metakeywords' => [$this'block_metakeywords'],
  26.             'bodyId' => [$this'block_bodyId'],
  27.             'body' => [$this'block_body'],
  28.             'contenidoOfi' => [$this'block_contenidoOfi'],
  29.             'empresas' => [$this'block_empresas'],
  30.             'funciones_eventos' => [$this'block_funciones_eventos'],
  31.             'javascripts_footer' => [$this'block_javascripts_footer'],
  32.         ];
  33.     }
  34.     protected function doGetParent(array $context)
  35.     {
  36.         // line 2
  37.         return "base.html.twig";
  38.     }
  39.     protected function doDisplay(array $context, array $blocks = [])
  40.     {
  41.         $macros $this->macros;
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""default/listado_oficinas.html.twig"));
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""default/listado_oficinas.html.twig"));
  46.         $this->parent $this->loadTemplate("base.html.twig""default/listado_oficinas.html.twig"2);
  47.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  48.         
  49.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  50.         
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  52.     }
  53.     // line 4
  54.     public function block_title($context, array $blocks = [])
  55.     {
  56.         $macros $this->macros;
  57.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  61.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse4), ["| Eurochange.es" => ""]), "html"nulltrue);
  62.         
  63.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  64.         
  65.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  66.     }
  67.     // line 5
  68.     public function block_metadescription($context, array $blocks = [])
  69.     {
  70.         $macros $this->macros;
  71.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  72.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metadescription"));
  73.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  74.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metadescription"));
  75.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse5), "html"nulltrue);
  76.         
  77.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  78.         
  79.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  80.     }
  81.     // line 6
  82.     public function block_metakeywords($context, array $blocks = [])
  83.     {
  84.         $macros $this->macros;
  85.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  86.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metakeywords"));
  87.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  88.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metakeywords"));
  89.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse6), "html"nulltrue);
  90.         
  91.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  92.         
  93.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  94.     }
  95.     // line 10
  96.     public function block_bodyId($context, array $blocks = [])
  97.     {
  98.         $macros $this->macros;
  99.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  100.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""bodyId"));
  101.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  102.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""bodyId"));
  103.         echo "oficinas";
  104.         
  105.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  106.         
  107.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  108.     }
  109.     // line 12
  110.     public function block_body($context, array $blocks = [])
  111.     {
  112.         $macros $this->macros;
  113.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  114.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  115.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  116.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  117.         // line 13
  118.         echo "    <div class=\"title container\">
  119.         <h1>";
  120.         // line 14
  121.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Oficinas de cambio de divisas"), "html"nulltrue);
  122.         echo "</h1>
  123.     </div>
  124.     
  125.     <div id=\"mapa\" class=\"container\">
  126.         <div id=\"map\"></div>
  127.         <div id=\"texto-mapa\">
  128.             <div>
  129.                 <p>";
  130.         // line 21
  131.         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"nulltrue);
  132.         echo "</p>
  133.                 <p>";
  134.         // line 22
  135.         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"nulltrue);
  136.         echo "</p>
  137.             </div>
  138.             ";
  139.         // line 24
  140.         $context["urlParts"] = twig_split_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse24), "uri", [], "any"falsefalsefalse24), "/");
  141.         // line 25
  142.         echo "            ";
  143.         $context["lastPart"] = twig_first($this->envtwig_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));
  144.         // line 26
  145.         echo "            ";
  146.         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")) {
  147.             // line 27
  148.             echo "                <div id=\"listado-localidades\" class=\"text-center d-none d-sm-block\">
  149.                     <select class=\"select2 \">
  150.                         <option></option>
  151.                         ";
  152.             // line 30
  153.             $context['_parent'] = $context;
  154.             $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); })()));
  155.             foreach ($context['_seq'] as $context["_key"] => $context["provincia"]) {
  156.                 // line 31
  157.                 echo "                        ";
  158.                 if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["provincia"], "localidades", [], "any"falsefalsefalse31)) > 0)) {
  159.                     // line 32
  160.                     echo "                        <optgroup label=\"";
  161.                     echo twig_escape_filter($this->env$context["provincia"], "html"nulltrue);
  162.                     echo "\">
  163.                             ";
  164.                     // line 33
  165.                     $context['_parent'] = $context;
  166.                     $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["provincia"], "localidades", [], "any"falsefalsefalse33));
  167.                     foreach ($context['_seq'] as $context["_key"] => $context["localidad"]) {
  168.                         // line 34
  169.                         echo "                            <option value=\"";
  170.                         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"falsefalsefalse34), "slugL" => twig_get_attribute($this->env$this->source$context["localidad"], "slug", [], "any"falsefalsefalse34)]), "html"nulltrue);
  171.                         echo "\">";
  172.                         echo twig_escape_filter($this->env$context["localidad"], "html"nulltrue);
  173.                         echo "</option>
  174.                             ";
  175.                     }
  176.                     $_parent $context['_parent'];
  177.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['localidad'], $context['_parent'], $context['loop']);
  178.                     $context array_intersect_key($context$_parent) + $_parent;
  179.                     // line 36
  180.                     echo "                        </optgroup>
  181.                         ";
  182.                 }
  183.                 // line 38
  184.                 echo "                        ";
  185.             }
  186.             $_parent $context['_parent'];
  187.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['provincia'], $context['_parent'], $context['loop']);
  188.             $context array_intersect_key($context$_parent) + $_parent;
  189.             // line 39
  190.             echo "                    </select>
  191.                 </div>
  192.             ";
  193.         }
  194.         // line 42
  195.         echo "        </div>
  196.     </div>
  197.     
  198.     ";
  199.         // line 45
  200.         $this->displayBlock('contenidoOfi'$context$blocks);
  201.         // line 128
  202.         echo "    
  203.     ";
  204.         // line 129
  205.         $this->displayBlock('empresas'$context$blocks);
  206.         
  207.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  208.         
  209.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  210.     }
  211.     // line 45
  212.     public function block_contenidoOfi($context, array $blocks = [])
  213.     {
  214.         $macros $this->macros;
  215.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  216.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""contenidoOfi"));
  217.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  218.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""contenidoOfi"));
  219.         // line 46
  220.         echo "        <div id=\"listado-oficinas\" class=\"container \">
  221.             <p class=\"tit\">";
  222.         // line 47
  223.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Nuestras casas de cambio"), "html"nulltrue);
  224.         echo "</p>
  225.             <p class=\"text\"><b>";
  226.         // line 48
  227.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Contamos con 39 casas de cambio"), "html"nulltrue);
  228.         echo "</b> ";
  229.         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"nulltrue);
  230.         echo "</p>
  231.             
  232.             <div id=\"listado-localidades\" class=\"text-center d-block d-sm-none\">
  233.                 <select class=\"select2 \">
  234.                     <option></option>
  235.                     ";
  236.         // line 53
  237.         $context['_parent'] = $context;
  238.         $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); })()));
  239.         foreach ($context['_seq'] as $context["_key"] => $context["provincia"]) {
  240.             // line 54
  241.             echo "                    ";
  242.             if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["provincia"], "localidades", [], "any"falsefalsefalse54)) > 0)) {
  243.                 // line 55
  244.                 echo "                    <optgroup label=\"";
  245.                 echo twig_escape_filter($this->env$context["provincia"], "html"nulltrue);
  246.                 echo "\">
  247.                         ";
  248.                 // line 56
  249.                 $context['_parent'] = $context;
  250.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["provincia"], "localidades", [], "any"falsefalsefalse56));
  251.                 foreach ($context['_seq'] as $context["_key"] => $context["localidad"]) {
  252.                     // line 57
  253.                     echo "                        <option value=\"";
  254.                     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"falsefalsefalse57), "slugL" => twig_get_attribute($this->env$this->source$context["localidad"], "slug", [], "any"falsefalsefalse57)]), "html"nulltrue);
  255.                     echo "\">";
  256.                     echo twig_escape_filter($this->env$context["localidad"], "html"nulltrue);
  257.                     echo "</option>
  258.                         ";
  259.                 }
  260.                 $_parent $context['_parent'];
  261.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['localidad'], $context['_parent'], $context['loop']);
  262.                 $context array_intersect_key($context$_parent) + $_parent;
  263.                 // line 59
  264.                 echo "                    </optgroup>
  265.                     ";
  266.             }
  267.             // line 61
  268.             echo "                    ";
  269.         }
  270.         $_parent $context['_parent'];
  271.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['provincia'], $context['_parent'], $context['loop']);
  272.         $context array_intersect_key($context$_parent) + $_parent;
  273.         // line 62
  274.         echo "                </select>
  275.             </div>
  276.             <div class=\"d-none d-md-block\">
  277.             <div class=\"row listado \">
  278.                 ";
  279.         // line 66
  280.         $context['_parent'] = $context;
  281.         $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));
  282.         foreach ($context['_seq'] as $context["_key"] => $context["grupo"]) {
  283.             // line 67
  284.             echo "                    ";
  285.             $context['_parent'] = $context;
  286.             $context['_seq'] = twig_ensure_traversable($context["grupo"]);
  287.             foreach ($context['_seq'] as $context["_key"] => $context["provincia"]) {
  288.                 // line 68
  289.                 echo "                        ";
  290.                 if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["provincia"], "localidades", [], "any"falsefalsefalse68), "isEmpty", [], "method"falsefalsefalse68)) {
  291.                     // line 69
  292.                     echo "                                
  293.                         ";
  294.                 } else {
  295.                     // line 71
  296.                     echo "                            <div class=\"col\">
  297.                                 <div class=\"item\">
  298.                                     <div class=\"image\">
  299.                                          ";
  300.                     // line 74
  301.                     if (twig_get_attribute($this->env$this->source$context["provincia"], "imagenCabecera", [], "any"falsefalsefalse74)) {
  302.                         // line 75
  303.                         echo "                                            ";
  304.                         echo $this->env->getRuntime('Sonata\MediaBundle\Twig\MediaRuntime')->thumbnail(twig_get_attribute($this->env$this->source$context["provincia"], "imagenCabecera", [], "any"falsefalsefalse75), "provincia");
  305.                         echo "
  306.                                          ";
  307.                     }
  308.                     // line 77
  309.                     echo "                                        <a href=\"";
  310.                     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"falsefalsefalse77)]), "html"nulltrue);
  311.                     echo "\">";
  312.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["provincia"], "nombre", [], "any"falsefalsefalse77), "html"nulltrue);
  313.                     echo "</a>
  314.                                     </div>
  315.                                     <div class=\"texto\">
  316.                                         <ul class=\"ciudades\">
  317.                                             ";
  318.                     // line 81
  319.                     $context['_parent'] = $context;
  320.                     $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); })()));
  321.                     foreach ($context['_seq'] as $context["_key"] => $context["loc"]) {
  322.                         // line 82
  323.                         echo "                                                ";
  324.                         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["loc"], "provincia", [], "any"falsefalsefalse82), "id", [], "any"falsefalsefalse82) == twig_get_attribute($this->env$this->source$context["provincia"], "id", [], "any"falsefalsefalse82))) {
  325.                             // line 83
  326.                             echo "                                                    <li><a href=\"";
  327.                             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"falsefalsefalse83), "slugL" => twig_get_attribute($this->env$this->source$context["loc"], "slug", [], "any"falsefalsefalse83)]), "html"nulltrue);
  328.                             echo "\">";
  329.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loc"], "nombre", [], "any"falsefalsefalse83), "html"nulltrue);
  330.                             echo "</a></li>
  331.                                                 ";
  332.                         }
  333.                         // line 85
  334.                         echo "                                            ";
  335.                     }
  336.                     $_parent $context['_parent'];
  337.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['loc'], $context['_parent'], $context['loop']);
  338.                     $context array_intersect_key($context$_parent) + $_parent;
  339.                     // line 86
  340.                     echo "                                        </ul>
  341.                                     </div>
  342.                                 </div>
  343.                             </div>
  344.                         ";
  345.                 }
  346.                 // line 91
  347.                 echo "                    ";
  348.             }
  349.             $_parent $context['_parent'];
  350.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['provincia'], $context['_parent'], $context['loop']);
  351.             $context array_intersect_key($context$_parent) + $_parent;
  352.             // line 92
  353.             echo "                ";
  354.         }
  355.         $_parent $context['_parent'];
  356.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['grupo'], $context['_parent'], $context['loop']);
  357.         $context array_intersect_key($context$_parent) + $_parent;
  358.         // line 93
  359.         echo "            </div>
  360.             </div>
  361.         </div>
  362.         
  363.         
  364.         <div id=\"listado-oficinas\" class=\"container d-block d-md-none\">
  365. ";
  366.         // line 101
  367.         echo "            
  368.             <div id=\"listado\" class=\"owl-carousel owl-theme listado\">
  369.                 ";
  370.         // line 103
  371.         $context['_parent'] = $context;
  372.         $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); })()));
  373.         foreach ($context['_seq'] as $context["_key"] => $context["provincia"]) {
  374.             // line 104
  375.             echo "                    ";
  376.             if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["provincia"], "localidades", [], "any"falsefalsefalse104), "isEmpty", [], "method"falsefalsefalse104)) {
  377.                 // line 105
  378.                 echo "                                
  379.                     ";
  380.             } else {
  381.                 // line 107
  382.                 echo "                        <div class=\"item\">
  383.                                 <div class=\"image\">
  384.                                     <img src=\"/img/ciudad-1.png\"/>
  385.                                 </div>
  386.                                 <div class=\"texto\">
  387.                                     <span>";
  388.                 // line 112
  389.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Casas de cambio en"), "html"nulltrue);
  390.                 echo "</br><b><a href=\"";
  391.                 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"falsefalsefalse112)]), "html"nulltrue);
  392.                 echo "\">";
  393.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["provincia"], "nombre", [], "any"falsefalsefalse112), "html"nulltrue);
  394.                 echo "</a></b></span>
  395.                                     <a href=\"#\" class=\"toggle-link\"><img src=\"/img/desplegar.svg\"/></a>
  396.                                     <ul class=\"target-element ciudades\" style=\"display: block;\">
  397.                                         ";
  398.                 // line 115
  399.                 $context['_parent'] = $context;
  400.                 $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); })()));
  401.                 foreach ($context['_seq'] as $context["_key"] => $context["loc"]) {
  402.                     // line 116
  403.                     echo "                                            ";
  404.                     if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["loc"], "provincia", [], "any"falsefalsefalse116), "id", [], "any"falsefalsefalse116) == twig_get_attribute($this->env$this->source$context["provincia"], "id", [], "any"falsefalsefalse116))) {
  405.                         // line 117
  406.                         echo "                                                <li><a href=\"";
  407.                         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"falsefalsefalse117), "slugL" => twig_get_attribute($this->env$this->source$context["loc"], "slug", [], "any"falsefalsefalse117)]), "html"nulltrue);
  408.                         echo "\">";
  409.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loc"], "nombre", [], "any"falsefalsefalse117), "html"nulltrue);
  410.                         echo "</a></li>
  411.                                             ";
  412.                     }
  413.                     // line 119
  414.                     echo "                                        ";
  415.                 }
  416.                 $_parent $context['_parent'];
  417.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['loc'], $context['_parent'], $context['loop']);
  418.                 $context array_intersect_key($context$_parent) + $_parent;
  419.                 // line 120
  420.                 echo "                                    </ul>
  421.                                 </div>
  422.                         </div>
  423.                     ";
  424.             }
  425.             // line 124
  426.             echo "                ";
  427.         }
  428.         $_parent $context['_parent'];
  429.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['provincia'], $context['_parent'], $context['loop']);
  430.         $context array_intersect_key($context$_parent) + $_parent;
  431.         // line 125
  432.         echo "            </div>
  433.         </div>
  434.     ";
  435.         
  436.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  437.         
  438.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  439.     }
  440.     // line 129
  441.     public function block_empresas($context, array $blocks = [])
  442.     {
  443.         $macros $this->macros;
  444.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  445.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""empresas"));
  446.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  447.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""empresas"));
  448.         // line 130
  449.         echo "        ";
  450.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\DefaultController::empresas"));
  451.         echo "
  452.     ";
  453.         
  454.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  455.         
  456.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  457.     }
  458.     // line 135
  459.     public function block_funciones_eventos($context, array $blocks = [])
  460.     {
  461.         $macros $this->macros;
  462.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  463.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""funciones_eventos"));
  464.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  465.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""funciones_eventos"));
  466.         // line 136
  467.         echo "    ";
  468.         $this->displayParentBlock("funciones_eventos"$context$blocks);
  469.         echo "
  470.     
  471.     <script>
  472.             
  473.             const toggleLinks = document.querySelectorAll('.toggle-link');
  474.             toggleLinks.forEach(function(toggleLink) {
  475.                 toggleLink.addEventListener('click', function() {
  476.                     event.preventDefault();
  477.                     const targetElement = this.nextElementSibling;
  478.                     if (targetElement.style.display === 'none') {
  479.                         targetElement.style.display = 'block';
  480.                         toggleLink.classList.add('voltear');
  481.                     } else {
  482.                         targetElement.style.display = 'none';
  483.                         toggleLink.classList.remove('voltear');
  484.                     }
  485.                 });
  486.             });
  487.     </script>
  488. ";
  489.         
  490.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  491.         
  492.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  493.     }
  494.     // line 159
  495.     public function block_javascripts_footer($context, array $blocks = [])
  496.     {
  497.         $macros $this->macros;
  498.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  499.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts_footer"));
  500.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  501.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts_footer"));
  502.         // line 160
  503.         echo "
  504. ";
  505.         // line 161
  506.         $this->displayParentBlock("javascripts_footer"$context$blocks);
  507.         echo "
  508. ";
  509.         // line 162
  510.         $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); })())]));
  511.         // line 163
  512.         echo "
  513. <script>
  514. \$(document).ready(function() {
  515.     
  516.     \$('#listado-localidades .select2').select2({
  517.         placeholder: '";
  518.         // line 168
  519.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Selecciona la localidad más cercana"), "html"nulltrue);
  520.         echo "',
  521.         allowClear: true
  522.         });
  523.     \$('#listado-localidades .select2').change(function() {
  524.         if (\$(this).val().length > 0)
  525.            window.location.href = \$(this).val();
  526.     });
  527.     
  528.         
  529. //     //Desactivar select2 en resoluciones pequenyas
  530. //     checkSize();
  531. //     \$(window).resize(checkSize);
  532. });
  533. // function checkSize(){
  534. //   if (window.matchMedia(\"(max-width: 992px)\").matches) {
  535. //     \$(\"#listado-localidades .select2\").select2(\"destroy\");
  536. //   }
  537. // }
  538. </script>
  539. ";
  540.         
  541.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  542.         
  543.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  544.     }
  545.     public function getTemplateName()
  546.     {
  547.         return "default/listado_oficinas.html.twig";
  548.     }
  549.     public function isTraitable()
  550.     {
  551.         return false;
  552.     }
  553.     public function getDebugInfo()
  554.     {
  555.         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,);
  556.     }
  557.     public function getSourceContext()
  558.     {
  559.         return new Source("{# {% extends 'default/contenido.html.twig' %} #}
  560. {% extends 'base.html.twig' %}
  561. {% block title %}{{ contenido.metaTitle| replace({'| Eurochange.es':''}) }}{% endblock %}
  562. {% block metadescription %}{{ contenido.metaDescription }}{% endblock %}
  563. {% block metakeywords %}{{ contenido.metaKeywords }}{% endblock %}
  564. {#{% block metarobots %}{{ contenido.metaRobots|default(parent()) }}{% endblock %}
  565. {% block canonical %}{% if contenido.canonical %}<link rel=\"canonical\" href=\"{{contenido.canonical}}\" />{% endif %}{% endblock %}#}
  566. {% block bodyId %}oficinas{% endblock %}
  567. {% block body %}
  568.     <div class=\"title container\">
  569.         <h1>{{ 'Oficinas de cambio de divisas' | trans}}</h1>
  570.     </div>
  571.     
  572.     <div id=\"mapa\" class=\"container\">
  573.         <div id=\"map\"></div>
  574.         <div id=\"texto-mapa\">
  575.             <div>
  576.                 <p>{{ 'Utiliza el mapa para saber dónde encontrarnos en cada localidad y ven a vernos.' | trans}}</p>
  577.                 <p>{{ 'Podrás cambiar más de 40 divisas con la mejor cotización de cambio y sin pagar comisiones.' | trans}}</p>
  578.             </div>
  579.             {% set urlParts = app.request.uri|split('/') %}
  580.             {% set lastPart = urlParts|slice(-1)|first %}
  581.             {% if lastPart == 'oficinas-cambio-moneda' %}
  582.                 <div id=\"listado-localidades\" class=\"text-center d-none d-sm-block\">
  583.                     <select class=\"select2 \">
  584.                         <option></option>
  585.                         {% for provincia in provincias %}
  586.                         {% if provincia.localidades|length > 0 %}
  587.                         <optgroup label=\"{{ provincia }}\">
  588.                             {% for localidad in provincia.localidades %}
  589.                             <option value=\"{{path('listado_localidad', {slugP: provincia.slug, slugL: localidad.slug}) }}\">{{ localidad }}</option>
  590.                             {% endfor %}
  591.                         </optgroup>
  592.                         {% endif %}
  593.                         {% endfor %}
  594.                     </select>
  595.                 </div>
  596.             {% endif %}
  597.         </div>
  598.     </div>
  599.     
  600.     {% block contenidoOfi %}
  601.         <div id=\"listado-oficinas\" class=\"container \">
  602.             <p class=\"tit\">{{ 'Nuestras casas de cambio' | trans}}</p>
  603.             <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>
  604.             
  605.             <div id=\"listado-localidades\" class=\"text-center d-block d-sm-none\">
  606.                 <select class=\"select2 \">
  607.                     <option></option>
  608.                     {% for provincia in provincias %}
  609.                     {% if provincia.localidades|length > 0 %}
  610.                     <optgroup label=\"{{ provincia }}\">
  611.                         {% for localidad in provincia.localidades %}
  612.                         <option value=\"{{path('listado_localidad', {slugP: provincia.slug, slugL: localidad.slug}) }}\">{{ localidad }}</option>
  613.                         {% endfor %}
  614.                     </optgroup>
  615.                     {% endif %}
  616.                     {% endfor %}
  617.                 </select>
  618.             </div>
  619.             <div class=\"d-none d-md-block\">
  620.             <div class=\"row listado \">
  621.                 {% for grupo in provincias|batch(3) %}
  622.                     {% for provincia in grupo %}
  623.                         {% if provincia.localidades.isEmpty() %}
  624.                                 
  625.                         {% else %}
  626.                             <div class=\"col\">
  627.                                 <div class=\"item\">
  628.                                     <div class=\"image\">
  629.                                          {% if provincia.imagenCabecera %}
  630.                                             {{ sonata_thumbnail(provincia.imagenCabecera, 'provincia') }}
  631.                                          {% endif %}
  632.                                         <a href=\"{{ path('listado_provincia', {'slug': provincia.slug}) }}\">{{ provincia.nombre }}</a>
  633.                                     </div>
  634.                                     <div class=\"texto\">
  635.                                         <ul class=\"ciudades\">
  636.                                             {% for loc in localidades %}
  637.                                                 {% if loc.provincia.id == provincia.id %}
  638.                                                     <li><a href=\"{{ path('listado_localidad', {'slugP': provincia.slug, 'slugL': loc.slug}) }}\">{{ loc.nombre }}</a></li>
  639.                                                 {% endif %}
  640.                                             {% endfor %}
  641.                                         </ul>
  642.                                     </div>
  643.                                 </div>
  644.                             </div>
  645.                         {% endif %}
  646.                     {% endfor %}
  647.                 {% endfor %}
  648.             </div>
  649.             </div>
  650.         </div>
  651.         
  652.         
  653.         <div id=\"listado-oficinas\" class=\"container d-block d-md-none\">
  654. {#             <p class=\"tit\">{{ 'Nuestras casas de cambio' | trans}}</p> #}
  655. {#             <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> #}
  656.             
  657.             <div id=\"listado\" class=\"owl-carousel owl-theme listado\">
  658.                 {% for provincia in provincias %}
  659.                     {% if provincia.localidades.isEmpty() %}
  660.                                 
  661.                     {% else %}
  662.                         <div class=\"item\">
  663.                                 <div class=\"image\">
  664.                                     <img src=\"/img/ciudad-1.png\"/>
  665.                                 </div>
  666.                                 <div class=\"texto\">
  667.                                     <span>{{ 'Casas de cambio en' | trans}}</br><b><a href=\"{{ path('listado_provincia', {'slug': provincia.slug}) }}\">{{ provincia.nombre }}</a></b></span>
  668.                                     <a href=\"#\" class=\"toggle-link\"><img src=\"/img/desplegar.svg\"/></a>
  669.                                     <ul class=\"target-element ciudades\" style=\"display: block;\">
  670.                                         {% for loc in localidades %}
  671.                                             {% if loc.provincia.id == provincia.id %}
  672.                                                 <li><a href=\"{{ path('listado_localidad', {'slugP': provincia.slug, 'slugL': loc.slug}) }}\">{{ loc.nombre }}</a></li>
  673.                                             {% endif %}
  674.                                         {% endfor %}
  675.                                     </ul>
  676.                                 </div>
  677.                         </div>
  678.                     {% endif %}
  679.                 {% endfor %}
  680.             </div>
  681.         </div>
  682.     {% endblock %}
  683.     
  684.     {% block empresas %}
  685.         {{ render(controller('App\\\\Controller\\\\DefaultController::empresas' )) }}
  686.     {% endblock %}
  687. {% endblock %}
  688. {% block funciones_eventos %}
  689.     {{ parent() }}
  690.     
  691.     <script>
  692.             
  693.             const toggleLinks = document.querySelectorAll('.toggle-link');
  694.             toggleLinks.forEach(function(toggleLink) {
  695.                 toggleLink.addEventListener('click', function() {
  696.                     event.preventDefault();
  697.                     const targetElement = this.nextElementSibling;
  698.                     if (targetElement.style.display === 'none') {
  699.                         targetElement.style.display = 'block';
  700.                         toggleLink.classList.add('voltear');
  701.                     } else {
  702.                         targetElement.style.display = 'none';
  703.                         toggleLink.classList.remove('voltear');
  704.                     }
  705.                 });
  706.             });
  707.     </script>
  708. {% endblock %}
  709. {% block javascripts_footer %}
  710. {{ parent() }}
  711. {% include \"includes/mapa_javascript.html.twig\" with { oficinasMapa:oficinas } only %}
  712. <script>
  713. \$(document).ready(function() {
  714.     
  715.     \$('#listado-localidades .select2').select2({
  716.         placeholder: '{{ 'Selecciona la localidad más cercana' | trans }}',
  717.         allowClear: true
  718.         });
  719.     \$('#listado-localidades .select2').change(function() {
  720.         if (\$(this).val().length > 0)
  721.            window.location.href = \$(this).val();
  722.     });
  723.     
  724.         
  725. //     //Desactivar select2 en resoluciones pequenyas
  726. //     checkSize();
  727. //     \$(window).resize(checkSize);
  728. });
  729. // function checkSize(){
  730. //   if (window.matchMedia(\"(max-width: 992px)\").matches) {
  731. //     \$(\"#listado-localidades .select2\").select2(\"destroy\");
  732. //   }
  733. // }
  734. </script>
  735. {% endblock %}
  736. ""default/listado_oficinas.html.twig""/home/alien/www/eurochange/templates/default/listado_oficinas.html.twig");
  737.     }
  738. }