var/cache/dev/twig/dc/dcf949aadb3868fff1cea5f126b5409c.php line 49

  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_provincia.html.twig */
  14. class __TwigTemplate_79e34f5a8b61c0a490542da302231dbe 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.             'idiomas' => [$this'block_idiomas'],
  24.             'contenidoOfi' => [$this'block_contenidoOfi'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 2
  30.         return "default/listado_oficinas.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""default/listado_provincia.html.twig"));
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""default/listado_provincia.html.twig"));
  39.         $this->parent $this->loadTemplate("default/listado_oficinas.html.twig""default/listado_provincia.html.twig"2);
  40.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  43.         
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  45.     }
  46.     // line 4
  47.     public function block_idiomas($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""idiomas"));
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""idiomas"));
  54.         // line 5
  55.         $context['_parent'] = $context;
  56.         $context['_seq'] = twig_ensure_traversable((isset($context["locales"]) || array_key_exists("locales"$context) ? $context["locales"] : (function () { throw new RuntimeError('Variable "locales" does not exist.'5$this->source); })()));
  57.         foreach ($context['_seq'] as $context["k"] => $context["idioma"]) {
  58.             // line 6
  59.             echo "    <option ";
  60.             if (($context["k"] == twig_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.'6$this->source); })()), "request", [], "any"falsefalsefalse6), "locale", [], "any"falsefalsefalse6))) {
  61.                 echo "selected";
  62.             }
  63.             echo " value=\"";
  64.             echo twig_escape_filter($this->envtwig_replace_filter($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(twig_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.'6$this->source); })()), "request", [], "any"falsefalsefalse6), "get", [=> "_route"=> "index"], "method"falsefalsefalse6), twig_array_merge(twig_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.'6$this->source); })()), "request", [], "any"falsefalsefalse6), "get", [=> "_route_params"=> []], "method"falsefalsefalse6), ["_locale" => $context["k"]])), [twig_get_attribute($this->env$this->source, (isset($context["contenido"]) || array_key_exists("contenido"$context) ? $context["contenido"] : (function () { throw new RuntimeError('Variable "contenido" does not exist.'6$this->source); })()), "slug", [], "any"falsefalsefalse6) => twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["contenido"]) || array_key_exists("contenido"$context) ? $context["contenido"] : (function () { throw new RuntimeError('Variable "contenido" does not exist.'6$this->source); })()), "translate", [=> $context["k"]], "method"falsefalsefalse6), "getSlug", [], "method"falsefalsefalse6)]), "html"nulltrue);
  65.             echo "\" title=\"";
  66.             echo twig_escape_filter($this->env$context["idioma"], "html"nulltrue);
  67.             echo "\">";
  68.             echo twig_escape_filter($this->envtwig_upper_filter($this->env$context["k"]), "html"nulltrue);
  69.             echo "</option>
  70. ";
  71.         }
  72.         $_parent $context['_parent'];
  73.         unset($context['_seq'], $context['_iterated'], $context['k'], $context['idioma'], $context['_parent'], $context['loop']);
  74.         $context array_intersect_key($context$_parent) + $_parent;
  75.         
  76.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  77.         
  78.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  79.     }
  80.     // line 10
  81.     public function block_contenidoOfi($context, array $blocks = [])
  82.     {
  83.         $macros $this->macros;
  84.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  85.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""contenidoOfi"));
  86.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  87.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""contenidoOfi"));
  88.         // line 11
  89.         echo "        <div id=\"listado-oficinas\" class=\"container\">
  90.             <p class=\"tit\">";
  91.         // line 12
  92.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Cambio de moneda en"), "html"nulltrue);
  93.         echo " ";
  94.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["provincia"]) || array_key_exists("provincia"$context) ? $context["provincia"] : (function () { throw new RuntimeError('Variable "provincia" does not exist.'12$this->source); })()), "nombre", [], "any"falsefalsefalse12), "html"nulltrue);
  95.         echo "</p>
  96.             ";
  97.         // line 13
  98.         if ((twig_get_attribute($this->env$this->source, ($context["provincia"] ?? null), "texto", [], "any"truetruefalse13) && twig_get_attribute($this->env$this->source, (isset($context["provincia"]) || array_key_exists("provincia"$context) ? $context["provincia"] : (function () { throw new RuntimeError('Variable "provincia" does not exist.'13$this->source); })()), "texto", [], "any"falsefalsefalse13))) {
  99.             // line 14
  100.             echo "            <p class=\"text\">";
  101.             echo twig_get_attribute($this->env$this->source, (isset($context["provincia"]) || array_key_exists("provincia"$context) ? $context["provincia"] : (function () { throw new RuntimeError('Variable "provincia" does not exist.'14$this->source); })()), "texto", [], "any"falsefalsefalse14);
  102.             echo "</p>
  103.             ";
  104.         } else {
  105.             // line 16
  106.             echo "            <p class=\"text\">";
  107.             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"nulltrue);
  108.             echo " ";
  109.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["provincia"]) || array_key_exists("provincia"$context) ? $context["provincia"] : (function () { throw new RuntimeError('Variable "provincia" does not exist.'16$this->source); })()), "nombre", [], "any"falsefalsefalse16), "html"nulltrue);
  110.             echo ". ";
  111.             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"nulltrue);
  112.             echo "</p>
  113.             ";
  114.         }
  115.         // line 18
  116.         echo "            
  117.             ";
  118.         // line 19
  119.         $context['_parent'] = $context;
  120.         $context['_seq'] = twig_ensure_traversable((isset($context["localidades"]) || array_key_exists("localidades"$context) ? $context["localidades"] : (function () { throw new RuntimeError('Variable "localidades" does not exist.'19$this->source); })()));
  121.         foreach ($context['_seq'] as $context["_key"] => $context["loc"]) {
  122.             // line 20
  123.             echo "                <div class=\"item\">
  124.                     <p><a class=\"loc\" href=\"";
  125.             // line 21
  126.             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.'21$this->source); })()), "slug", [], "any"falsefalsefalse21), "slugL" => twig_get_attribute($this->env$this->source$context["loc"], "slug", [], "any"falsefalsefalse21)]), "html"nulltrue);
  127.             echo "\">";
  128.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loc"], "nombre", [], "any"falsefalsefalse21), "html"nulltrue);
  129.             echo "</a></p>
  130.                     <ul>
  131.                         ";
  132.             // line 23
  133.             $context['_parent'] = $context;
  134.             $context['_seq'] = twig_ensure_traversable((isset($context["oficinas"]) || array_key_exists("oficinas"$context) ? $context["oficinas"] : (function () { throw new RuntimeError('Variable "oficinas" does not exist.'23$this->source); })()));
  135.             foreach ($context['_seq'] as $context["_key"] => $context["ofi"]) {
  136.                 // line 24
  137.                 echo "                            ";
  138.                 if (((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ofi"], "localidad", [], "any"falsefalsefalse24), "id", [], "any"falsefalsefalse24) == twig_get_attribute($this->env$this->source$context["loc"], "id", [], "any"falsefalsefalse24)) && twig_get_attribute($this->env$this->source$context["ofi"], "slug", [], "any"falsefalsefalse24))) {
  139.                     // line 25
  140.                     echo "                                <li class=\"ofi\">
  141.                                     <a href=\"";
  142.                     // line 26
  143.                     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.'26$this->source); })()), "slug", [], "any"falsefalsefalse26), "slugL" => twig_get_attribute($this->env$this->source$context["loc"], "slug", [], "any"falsefalsefalse26), "slugO" => twig_get_attribute($this->env$this->source$context["ofi"], "slug", [], "any"falsefalsefalse26)]), "html"nulltrue);
  144.                     echo "\">
  145.                                         <p class=\"nom\">";
  146.                     // line 27
  147.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["ofi"], "nombre", [], "any"falsefalsefalse27), "html"nulltrue);
  148.                     echo "</p>
  149.                                         <p class=\"dat\">";
  150.                     // line 28
  151.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["ofi"], "direccion", [], "any"falsefalsefalse28), "html"nulltrue);
  152.                     echo "</p>
  153.                                         <p class=\"dat\">T. ";
  154.                     // line 29
  155.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["ofi"], "telefono", [], "any"falsefalsefalse29), "html"nulltrue);
  156.                     echo "</p>
  157.                                     </a>
  158.                                     <img src=\"/img/desplegar.svg\"/>
  159.                                 </li>
  160.                             ";
  161.                 }
  162.                 // line 34
  163.                 echo "                        ";
  164.             }
  165.             $_parent $context['_parent'];
  166.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ofi'], $context['_parent'], $context['loop']);
  167.             $context array_intersect_key($context$_parent) + $_parent;
  168.             // line 35
  169.             echo "                    </ul>
  170.                 </div>
  171.             ";
  172.         }
  173.         $_parent $context['_parent'];
  174.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['loc'], $context['_parent'], $context['loop']);
  175.         $context array_intersect_key($context$_parent) + $_parent;
  176.         // line 38
  177.         echo "        </div>
  178. ";
  179.         
  180.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  181.         
  182.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  183.     }
  184.     public function getTemplateName()
  185.     {
  186.         return "default/listado_provincia.html.twig";
  187.     }
  188.     public function isTraitable()
  189.     {
  190.         return false;
  191.     }
  192.     public function getDebugInfo()
  193.     {
  194.         return array (  196 => 38,  188 => 35,  182 => 34,  174 => 29,  170 => 28,  166 => 27,  162 => 26,  159 => 25,  156 => 24,  152 => 23,  145 => 21,  142 => 20,  138 => 19,  135 => 18,  125 => 16,  119 => 14,  117 => 13,  111 => 12,  108 => 11,  98 => 10,  73 => 6,  69 => 5,  59 => 4,  36 => 2,);
  195.     }
  196.     public function getSourceContext()
  197.     {
  198.         return new Source("{# {% extends 'default/contenido.html.twig' %} #}
  199. {% extends 'default/listado_oficinas.html.twig' %} 
  200. {% block idiomas %}
  201. {% for k,idioma in locales %}
  202.     <option {% if k == app.request.locale %}selected{% endif %} value=\"{{ path(app.request.get('_route', 'index'), app.request.get('_route_params', [])|merge({_locale: k}))|replace({ (contenido.slug) : contenido.translate(k).getSlug() }) }}\" title=\"{{ idioma }}\">{{ k | upper}}</option>
  203. {% endfor %}
  204. {% endblock %}
  205. {% block contenidoOfi %}
  206.         <div id=\"listado-oficinas\" class=\"container\">
  207.             <p class=\"tit\">{{ 'Cambio de moneda en' | trans}} {{ provincia.nombre }}</p>
  208.             {% if provincia.texto is defined and provincia.texto %}
  209.             <p class=\"text\">{{ provincia.texto | raw }}</p>
  210.             {% else %}
  211.             <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>
  212.             {% endif %}
  213.             
  214.             {% for loc in localidades %}
  215.                 <div class=\"item\">
  216.                     <p><a class=\"loc\" href=\"{{ path('listado_localidad', {'slugP': provincia.slug, 'slugL': loc.slug}) }}\">{{ loc.nombre }}</a></p>
  217.                     <ul>
  218.                         {% for ofi in oficinas %}
  219.                             {% if ofi.localidad.id == loc.id and ofi.slug %}
  220.                                 <li class=\"ofi\">
  221.                                     <a href=\"{{ path('ficha_oficina', {'slugP': provincia.slug, 'slugL': loc.slug, 'slugO': ofi.slug}) }}\">
  222.                                         <p class=\"nom\">{{ ofi.nombre }}</p>
  223.                                         <p class=\"dat\">{{ ofi.direccion }}</p>
  224.                                         <p class=\"dat\">T. {{ ofi.telefono }}</p>
  225.                                     </a>
  226.                                     <img src=\"/img/desplegar.svg\"/>
  227.                                 </li>
  228.                             {% endif %}
  229.                         {% endfor %}
  230.                     </ul>
  231.                 </div>
  232.             {% endfor %}
  233.         </div>
  234. {% endblock %}
  235. ""default/listado_provincia.html.twig""/home/alien/www/eurochange/templates/default/listado_provincia.html.twig");
  236.     }
  237. }