var/cache/dev/twig/89/89d8f749ff0d2939ae65a62447617efd.php line 38

  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_localidad.html.twig */
  14. class __TwigTemplate_1dd3f985fd4108ecd073f6401b0aa7d6 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_localidad.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_localidad.html.twig"));
  38.         $this->parent $this->loadTemplate("default/listado_oficinas.html.twig""default/listado_localidad.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->envtwig_get_attribute($this->env$this->source, (isset($context["localidad"]) || array_key_exists("localidad"$context) ? $context["localidad"] : (function () { throw new RuntimeError('Variable "localidad" does not exist.'6$this->source); })()), "title", [], "any"falsefalsefalse6), "html"nulltrue);
  58.         echo "</p>
  59.             <p class=\"text\">";
  60.         // line 7
  61.         echo twig_get_attribute($this->env$this->source, (isset($context["localidad"]) || array_key_exists("localidad"$context) ? $context["localidad"] : (function () { throw new RuntimeError('Variable "localidad" does not exist.'7$this->source); })()), "texto", [], "any"falsefalsefalse7);
  62.         echo "</p>
  63.             
  64.                 <div class=\"item\">
  65.                     <ul>
  66.                         ";
  67.         // line 11
  68.         $context['_parent'] = $context;
  69.         $context['_seq'] = twig_ensure_traversable((isset($context["oficinas"]) || array_key_exists("oficinas"$context) ? $context["oficinas"] : (function () { throw new RuntimeError('Variable "oficinas" does not exist.'11$this->source); })()));
  70.         foreach ($context['_seq'] as $context["_key"] => $context["ofi"]) {
  71.             // line 12
  72.             echo "                            ";
  73.             if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["ofi"], "localidad", [], "any"falsefalsefalse12), "id", [], "any"falsefalsefalse12) == twig_get_attribute($this->env$this->source, (isset($context["localidad"]) || array_key_exists("localidad"$context) ? $context["localidad"] : (function () { throw new RuntimeError('Variable "localidad" does not exist.'12$this->source); })()), "id", [], "any"falsefalsefalse12))) {
  74.                 // line 13
  75.                 echo "                                <li class=\"ofi\">
  76.                                     <a href=\"";
  77.                 // line 14
  78.                 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.'14$this->source); })()), "slug", [], "any"falsefalsefalse14), "slugL" => twig_get_attribute($this->env$this->source, (isset($context["localidad"]) || array_key_exists("localidad"$context) ? $context["localidad"] : (function () { throw new RuntimeError('Variable "localidad" does not exist.'14$this->source); })()), "slug", [], "any"falsefalsefalse14), "slugO" => twig_get_attribute($this->env$this->source$context["ofi"], "slug", [], "any"falsefalsefalse14)]), "html"nulltrue);
  79.                 echo "\">
  80.                                         <p class=\"nom\">";
  81.                 // line 15
  82.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["ofi"], "nombre", [], "any"falsefalsefalse15), "html"nulltrue);
  83.                 echo "</p>
  84.                                         <p class=\"dat\">";
  85.                 // line 16
  86.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["ofi"], "direccion", [], "any"falsefalsefalse16), "html"nulltrue);
  87.                 echo "</p>
  88.                                         <p class=\"dat\">T. ";
  89.                 // line 17
  90.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["ofi"], "telefono", [], "any"falsefalsefalse17), "html"nulltrue);
  91.                 echo "</p>
  92.                                     </a>
  93.                                     <img src=\"/img/desplegar.svg\"/>
  94.                                 </li>
  95.                             ";
  96.             }
  97.             // line 22
  98.             echo "                        ";
  99.         }
  100.         $_parent $context['_parent'];
  101.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['ofi'], $context['_parent'], $context['loop']);
  102.         $context array_intersect_key($context$_parent) + $_parent;
  103.         // line 23
  104.         echo "                    </ul>
  105.                 </div>
  106.         </div>
  107. ";
  108.         
  109.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  110.         
  111.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  112.     }
  113.     public function getTemplateName()
  114.     {
  115.         return "default/listado_localidad.html.twig";
  116.     }
  117.     public function isTraitable()
  118.     {
  119.         return false;
  120.     }
  121.     public function getDebugInfo()
  122.     {
  123.         return array (  118 => 23,  112 => 22,  104 => 17,  100 => 16,  96 => 15,  92 => 14,  89 => 13,  86 => 12,  82 => 11,  75 => 7,  71 => 6,  68 => 5,  58 => 4,  35 => 2,);
  124.     }
  125.     public function getSourceContext()
  126.     {
  127.         return new Source("{# {% extends 'default/contenido.html.twig' %} #}
  128. {% extends 'default/listado_oficinas.html.twig' %} 
  129. {% block contenidoOfi %}
  130.     <div id=\"listado-oficinas\" class=\"container\">
  131.             <p class=\"tit\">{{ localidad.title }}</p>
  132.             <p class=\"text\">{{ localidad.texto|raw }}</p>
  133.             
  134.                 <div class=\"item\">
  135.                     <ul>
  136.                         {% for ofi in oficinas %}
  137.                             {% if ofi.localidad.id == localidad.id %}
  138.                                 <li class=\"ofi\">
  139.                                     <a href=\"{{ path('ficha_oficina', {'slugP': provincia.slug, 'slugL': localidad.slug, 'slugO': ofi.slug}) }}\">
  140.                                         <p class=\"nom\">{{ ofi.nombre }}</p>
  141.                                         <p class=\"dat\">{{ ofi.direccion }}</p>
  142.                                         <p class=\"dat\">T. {{ ofi.telefono }}</p>
  143.                                     </a>
  144.                                     <img src=\"/img/desplegar.svg\"/>
  145.                                 </li>
  146.                             {% endif %}
  147.                         {% endfor %}
  148.                     </ul>
  149.                 </div>
  150.         </div>
  151. {% endblock %}
  152. ""default/listado_localidad.html.twig""/home/alien/www/eurochange/templates/default/listado_localidad.html.twig");
  153.     }
  154. }