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

  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.             'contenidoOfi' => [$this'block_contenidoOfi'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 2
  29.         return "default/listado_oficinas.html.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""default/listado_provincia.html.twig"));
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""default/listado_provincia.html.twig"));
  38.         $this->parent $this->loadTemplate("default/listado_oficinas.html.twig""default/listado_provincia.html.twig"2);
  39.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  40.         
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  42.         
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  44.     }
  45.     // line 4
  46.     public function block_contenidoOfi($context, array $blocks = [])
  47.     {
  48.         $macros $this->macros;
  49.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""contenidoOfi"));
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""contenidoOfi"));
  53.         // line 5
  54.         echo "        <div id=\"listado-oficinas\" class=\"container\">
  55.             <p class=\"tit\">";
  56.         // line 6
  57.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Cambio de moneda en"), "html"nulltrue);
  58.         echo " ";
  59.         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.'6$this->source); })()), "nombre", [], "any"falsefalsefalse6), "html"nulltrue);
  60.         echo "</p>
  61.             ";
  62.         // line 7
  63.         if ((twig_get_attribute($this->env$this->source, ($context["provincia"] ?? null), "texto", [], "any"truetruefalse7) && twig_get_attribute($this->env$this->source, (isset($context["provincia"]) || array_key_exists("provincia"$context) ? $context["provincia"] : (function () { throw new RuntimeError('Variable "provincia" does not exist.'7$this->source); })()), "texto", [], "any"falsefalsefalse7))) {
  64.             // line 8
  65.             echo "            <p class=\"text\">";
  66.             echo twig_get_attribute($this->env$this->source, (isset($context["provincia"]) || array_key_exists("provincia"$context) ? $context["provincia"] : (function () { throw new RuntimeError('Variable "provincia" does not exist.'8$this->source); })()), "texto", [], "any"falsefalsefalse8);
  67.             echo "</p>
  68.             ";
  69.         } else {
  70.             // line 10
  71.             echo "            <p class=\"text\">";
  72.             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);
  73.             echo " ";
  74.             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.'10$this->source); })()), "nombre", [], "any"falsefalsefalse10), "html"nulltrue);
  75.             echo ". ";
  76.             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);
  77.             echo "</p>
  78.             ";
  79.         }
  80.         // line 12
  81.         echo "            
  82.             ";
  83.         // line 13
  84.         $context['_parent'] = $context;
  85.         $context['_seq'] = twig_ensure_traversable((isset($context["localidades"]) || array_key_exists("localidades"$context) ? $context["localidades"] : (function () { throw new RuntimeError('Variable "localidades" does not exist.'13$this->source); })()));
  86.         foreach ($context['_seq'] as $context["_key"] => $context["loc"]) {
  87.             // line 14
  88.             echo "                <div class=\"item\">
  89.                     <p><a class=\"loc\" href=\"";
  90.             // line 15
  91.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("listado_localidad", ["slugP" => twig_get_attribute($this->env$this->source, (isset($context["provincia"]) || array_key_exists("provincia"$context) ? $context["provincia"] : (function () { throw new RuntimeError('Variable "provincia" does not exist.'15$this->source); })()), "slug", [], "any"falsefalsefalse15), "slugL" => twig_get_attribute($this->env$this->source$context["loc"], "slug", [], "any"falsefalsefalse15)]), "html"nulltrue);
  92.             echo "\">";
  93.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["loc"], "nombre", [], "any"falsefalsefalse15), "html"nulltrue);
  94.             echo "</a></p>
  95.                     <ul>
  96.                         ";
  97.             // line 17
  98.             $context['_parent'] = $context;
  99.             $context['_seq'] = twig_ensure_traversable((isset($context["oficinas"]) || array_key_exists("oficinas"$context) ? $context["oficinas"] : (function () { throw new RuntimeError('Variable "oficinas" does not exist.'17$this->source); })()));
  100.             foreach ($context['_seq'] as $context["_key"] => $context["ofi"]) {
  101.                 // line 18
  102.                 echo "                            ";
  103.                 if (((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ofi"], "localidad", [], "any"falsefalsefalse18), "id", [], "any"falsefalsefalse18) == twig_get_attribute($this->env$this->source$context["loc"], "id", [], "any"falsefalsefalse18)) && twig_get_attribute($this->env$this->source$context["ofi"], "slug", [], "any"falsefalsefalse18))) {
  104.                     // line 19
  105.                     echo "                                <li class=\"ofi\">
  106.                                     <a href=\"";
  107.                     // line 20
  108.                     echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("ficha_oficina", ["slugP" => twig_get_attribute($this->env$this->source, (isset($context["provincia"]) || array_key_exists("provincia"$context) ? $context["provincia"] : (function () { throw new RuntimeError('Variable "provincia" does not exist.'20$this->source); })()), "slug", [], "any"falsefalsefalse20), "slugL" => twig_get_attribute($this->env$this->source$context["loc"], "slug", [], "any"falsefalsefalse20), "slugO" => twig_get_attribute($this->env$this->source$context["ofi"], "slug", [], "any"falsefalsefalse20)]), "html"nulltrue);
  109.                     echo "\">
  110.                                         <p class=\"nom\">";
  111.                     // line 21
  112.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["ofi"], "nombre", [], "any"falsefalsefalse21), "html"nulltrue);
  113.                     echo "</p>
  114.                                         <p class=\"dat\">";
  115.                     // line 22
  116.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["ofi"], "direccion", [], "any"falsefalsefalse22), "html"nulltrue);
  117.                     echo "</p>
  118.                                         <p class=\"dat\">T. ";
  119.                     // line 23
  120.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["ofi"], "telefono", [], "any"falsefalsefalse23), "html"nulltrue);
  121.                     echo "</p>
  122.                                     </a>
  123.                                     <img src=\"/img/desplegar.svg\"/>
  124.                                 </li>
  125.                             ";
  126.                 }
  127.                 // line 28
  128.                 echo "                        ";
  129.             }
  130.             $_parent $context['_parent'];
  131.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ofi'], $context['_parent'], $context['loop']);
  132.             $context array_intersect_key($context$_parent) + $_parent;
  133.             // line 29
  134.             echo "                    </ul>
  135.                 </div>
  136.             ";
  137.         }
  138.         $_parent $context['_parent'];
  139.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['loc'], $context['_parent'], $context['loop']);
  140.         $context array_intersect_key($context$_parent) + $_parent;
  141.         // line 32
  142.         echo "        </div>
  143. ";
  144.         
  145.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  146.         
  147.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  148.     }
  149.     public function getTemplateName()
  150.     {
  151.         return "default/listado_provincia.html.twig";
  152.     }
  153.     public function isTraitable()
  154.     {
  155.         return false;
  156.     }
  157.     public function getDebugInfo()
  158.     {
  159.         return array (  156 => 32,  148 => 29,  142 => 28,  134 => 23,  130 => 22,  126 => 21,  122 => 20,  119 => 19,  116 => 18,  112 => 17,  105 => 15,  102 => 14,  98 => 13,  95 => 12,  85 => 10,  79 => 8,  77 => 7,  71 => 6,  68 => 5,  58 => 4,  35 => 2,);
  160.     }
  161.     public function getSourceContext()
  162.     {
  163.         return new Source("{# {% extends 'default/contenido.html.twig' %} #}
  164. {% extends 'default/listado_oficinas.html.twig' %} 
  165. {% block contenidoOfi %}
  166.         <div id=\"listado-oficinas\" class=\"container\">
  167.             <p class=\"tit\">{{ 'Cambio de moneda en' | trans}} {{ provincia.nombre }}</p>
  168.             {% if provincia.texto is defined and provincia.texto %}
  169.             <p class=\"text\">{{ provincia.texto | raw }}</p>
  170.             {% else %}
  171.             <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>
  172.             {% endif %}
  173.             
  174.             {% for loc in localidades %}
  175.                 <div class=\"item\">
  176.                     <p><a class=\"loc\" href=\"{{ path('listado_localidad', {'slugP': provincia.slug, 'slugL': loc.slug}) }}\">{{ loc.nombre }}</a></p>
  177.                     <ul>
  178.                         {% for ofi in oficinas %}
  179.                             {% if ofi.localidad.id == loc.id and ofi.slug %}
  180.                                 <li class=\"ofi\">
  181.                                     <a href=\"{{ path('ficha_oficina', {'slugP': provincia.slug, 'slugL': loc.slug, 'slugO': ofi.slug}) }}\">
  182.                                         <p class=\"nom\">{{ ofi.nombre }}</p>
  183.                                         <p class=\"dat\">{{ ofi.direccion }}</p>
  184.                                         <p class=\"dat\">T. {{ ofi.telefono }}</p>
  185.                                     </a>
  186.                                     <img src=\"/img/desplegar.svg\"/>
  187.                                 </li>
  188.                             {% endif %}
  189.                         {% endfor %}
  190.                     </ul>
  191.                 </div>
  192.             {% endfor %}
  193.         </div>
  194. {% endblock %}
  195. ""default/listado_provincia.html.twig""/home/alien/www/eurochange/templates/default/listado_provincia.html.twig");
  196.     }
  197. }