var/cache/dev/twig/fc/fc1df76c84803bf9c46eaf85d84e1e7c.php line 43
- <?php
- use Twig\Environment;
- use Twig\Error\LoaderError;
- use Twig\Error\RuntimeError;
- use Twig\Extension\SandboxExtension;
- use Twig\Markup;
- use Twig\Sandbox\SecurityError;
- use Twig\Sandbox\SecurityNotAllowedTagError;
- use Twig\Sandbox\SecurityNotAllowedFilterError;
- use Twig\Sandbox\SecurityNotAllowedFunctionError;
- use Twig\Source;
- use Twig\Template;
- /* default/servicios.html.twig */
- class __TwigTemplate_aff2a0a42ac41c4ee38c45cc909e2554 extends Template
- {
- private $source;
- private $macros = [];
- public function __construct(Environment $env)
- {
- parent::__construct($env);
- $this->source = $this->getSourceContext();
- $this->blocks = [
- 'title' => [$this, 'block_title'],
- 'metadescription' => [$this, 'block_metadescription'],
- 'metakeywords' => [$this, 'block_metakeywords'],
- 'bodyId' => [$this, 'block_bodyId'],
- 'body' => [$this, 'block_body'],
- 'empresas' => [$this, 'block_empresas'],
- ];
- }
- protected function doGetParent(array $context)
- {
- // line 2
- return "base.html.twig";
- }
- protected function doDisplay(array $context, array $blocks = [])
- {
- $macros = $this->macros;
- $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
- $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "default/servicios.html.twig"));
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "default/servicios.html.twig"));
- $this->parent = $this->loadTemplate("base.html.twig", "default/servicios.html.twig", 2);
- $this->parent->display($context, array_merge($this->blocks, $blocks));
- $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
- }
- // line 4
- public function block_title($context, array $blocks = [])
- {
- $macros = $this->macros;
- $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
- $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
- echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(((twig_get_attribute($this->env, $this->source, ($context["ruta"] ?? null), "metaTitle", [], "any", true, true, false, 4)) ? (_twig_default_filter(twig_get_attribute($this->env, $this->source, ($context["ruta"] ?? null), "metaTitle", [], "any", false, false, false, 4), "default_metatitle")) : ("default_metatitle"))), "html", null, true);
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
- $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
- }
- // line 5
- public function block_metadescription($context, array $blocks = [])
- {
- $macros = $this->macros;
- $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
- $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metadescription"));
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metadescription"));
- echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["ruta"]) || array_key_exists("ruta", $context) ? $context["ruta"] : (function () { throw new RuntimeError('Variable "ruta" does not exist.', 5, $this->source); })()), "metaDescription", [], "any", false, false, false, 5), "html", null, true);
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
- $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
- }
- // line 6
- public function block_metakeywords($context, array $blocks = [])
- {
- $macros = $this->macros;
- $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
- $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metakeywords"));
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "metakeywords"));
- echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["ruta"]) || array_key_exists("ruta", $context) ? $context["ruta"] : (function () { throw new RuntimeError('Variable "ruta" does not exist.', 6, $this->source); })()), "metaKeywords", [], "any", false, false, false, 6), "html", null, true);
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
- $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
- }
- // line 10
- public function block_bodyId($context, array $blocks = [])
- {
- $macros = $this->macros;
- $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
- $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "bodyId"));
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "bodyId"));
- echo "servicios";
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
- $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
- }
- // line 12
- public function block_body($context, array $blocks = [])
- {
- $macros = $this->macros;
- $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
- $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
- echo "
- <div class=\"title container\">
- <h1>";
- // line 14
- echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Servicios de cambio de divisas"), "html", null, true);
- echo "</h1>
- </div>
- <div id=\"cont-servicios\" class=\"container\">
- <p>";
- // line 17
- echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Comprueba los servicios disponibles en tu oficina más cercana."), "html", null, true);
- echo "</p>
- <div class=\"row row-cols-1 row-cols-md-3 g-4\">
- ";
- // line 21
- $context['_parent'] = $context;
- $context['_seq'] = twig_ensure_traversable((isset($context["servicios"]) || array_key_exists("servicios", $context) ? $context["servicios"] : (function () { throw new RuntimeError('Variable "servicios" does not exist.', 21, $this->source); })()));
- foreach ($context['_seq'] as $context["_key"] => $context["servicio"]) {
- // line 22
- echo "
- <a class=\"col-12 col-md-6 col-lg-4\" href=\"";
- // line 23
- echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["servicio"], "url", [], "any", false, false, false, 23), "html", null, true);
- echo "\">
- <div class=\"card servicio\">
- <div id=\"card-head\">
- ";
- // line 26
- if (twig_get_attribute($this->env, $this->source, $context["servicio"], "imagen", [], "any", false, false, false, 26)) {
- // line 27
- echo " <div>";
- echo $this->env->getRuntime('Sonata\MediaBundle\Twig\MediaRuntime')->thumbnail(twig_get_attribute($this->env, $this->source, $context["servicio"], "imagen", [], "any", false, false, false, 27), "servicio");
- echo "</div>
- ";
- }
- // line 29
- echo " </div>
- </div>
- <div class=\"card-body\">
- <h2 class=\"card-title\">";
- // line 32
- echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["servicio"], "titulo", [], "any", false, false, false, 32), "html", null, true);
- echo "</h2>
- <p class=\"card-text\">";
- // line 33
- echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["servicio"], "intro", [], "any", false, false, false, 33), "html", null, true);
- echo "</p>
- <p class=\"enl\" href=\"";
- // line 34
- echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["servicio"], "url", [], "any", false, false, false, 34), "html", null, true);
- echo "\">Más info</p>
- </div>
- </a>
- ";
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['_key'], $context['servicio'], $context['_parent'], $context['loop']);
- $context = array_intersect_key($context, $_parent) + $_parent;
- // line 39
- echo " </div>
- </div>
- ";
- // line 45
- $this->displayBlock('empresas', $context, $blocks);
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
- $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
- }
- public function block_empresas($context, array $blocks = [])
- {
- $macros = $this->macros;
- $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
- $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "empresas"));
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "empresas"));
- // line 46
- echo " ";
- echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\DefaultController::empresas"));
- echo "
- ";
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
- $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
- }
- public function getTemplateName()
- {
- return "default/servicios.html.twig";
- }
- public function isTraitable()
- {
- return false;
- }
- public function getDebugInfo()
- {
- return array ( 237 => 46, 218 => 45, 210 => 39, 199 => 34, 195 => 33, 191 => 32, 186 => 29, 180 => 27, 178 => 26, 172 => 23, 169 => 22, 165 => 21, 158 => 17, 152 => 14, 139 => 12, 120 => 10, 101 => 6, 82 => 5, 63 => 4, 40 => 2,);
- }
- public function getSourceContext()
- {
- return new Source("{# {% extends 'default/contenido.html.twig' %} #}
- {% extends 'base.html.twig' %}
- {% block title %}{{ ruta.metaTitle | default('default_metatitle') | trans }}{% endblock %}
- {% block metadescription %}{{ ruta.metaDescription }}{% endblock %}
- {% block metakeywords %}{{ ruta.metaKeywords }}{% endblock %}
- {% block bodyId %}servicios{% endblock %}
- {% block body %}
- <div class=\"title container\">
- <h1>{{ 'Servicios de cambio de divisas' | trans }}</h1>
- </div>
- <div id=\"cont-servicios\" class=\"container\">
- <p>{{ 'Comprueba los servicios disponibles en tu oficina más cercana.' | trans }}</p>
- <div class=\"row row-cols-1 row-cols-md-3 g-4\">
- {% for servicio in servicios %}
- <a class=\"col-12 col-md-6 col-lg-4\" href=\"{{ servicio.url }}\">
- <div class=\"card servicio\">
- <div id=\"card-head\">
- {% if servicio.imagen %}
- <div>{{ sonata_thumbnail(servicio.imagen, 'servicio') }}</div>
- {% endif %}
- </div>
- </div>
- <div class=\"card-body\">
- <h2 class=\"card-title\">{{ servicio.titulo }}</h2>
- <p class=\"card-text\">{{ servicio.intro }}</p>
- <p class=\"enl\" href=\"{{ servicio.url }}\">Más info</p>
- </div>
- </a>
- {% endfor %}
- </div>
- </div>
- {% block empresas %}
- {{ render(controller('App\\\\Controller\\\\DefaultController::empresas' )) }}
- {% endblock %}
- {% endblock %}
- ", "default/servicios.html.twig", "/home/alien/www/eurochange/templates/default/servicios.html.twig");
- }
- }