var/cache/dev/twig/b9/b95f5e8d7984feb286dd510642b382ee.php line 54

  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/servicio.html.twig */
  14. class __TwigTemplate_61c3493095f46e9e03d282581d8c554d 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.             'idiomas' => [$this'block_idiomas'],
  27.             'bodyId' => [$this'block_bodyId'],
  28.             'body' => [$this'block_body'],
  29.             'empresas' => [$this'block_empresas'],
  30.         ];
  31.     }
  32.     protected function doGetParent(array $context)
  33.     {
  34.         // line 2
  35.         return "base.html.twig";
  36.     }
  37.     protected function doDisplay(array $context, array $blocks = [])
  38.     {
  39.         $macros $this->macros;
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""default/servicio.html.twig"));
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""default/servicio.html.twig"));
  44.         $this->parent $this->loadTemplate("base.html.twig""default/servicio.html.twig"2);
  45.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48.         
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50.     }
  51.     // line 4
  52.     public function block_title($context, array $blocks = [])
  53.     {
  54.         $macros $this->macros;
  55.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  56.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  57.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  58.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  59.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(((twig_get_attribute($this->env$this->source, ($context["servicio"] ?? null), "metaTitle", [], "any"truetruefalse4)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["servicio"] ?? null), "metaTitle", [], "any"falsefalsefalse4), "default_metatitle")) : ("default_metatitle"))), "html"nulltrue);
  60.         
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  62.         
  63.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  64.     }
  65.     // line 5
  66.     public function block_metadescription($context, array $blocks = [])
  67.     {
  68.         $macros $this->macros;
  69.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  70.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metadescription"));
  71.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  72.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metadescription"));
  73.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["servicio"]) || array_key_exists("servicio"$context) ? $context["servicio"] : (function () { throw new RuntimeError('Variable "servicio" does not exist.'5$this->source); })()), "metaDescription", [], "any"falsefalsefalse5), "html"nulltrue);
  74.         
  75.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  76.         
  77.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  78.     }
  79.     // line 6
  80.     public function block_metakeywords($context, array $blocks = [])
  81.     {
  82.         $macros $this->macros;
  83.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  84.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metakeywords"));
  85.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  86.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metakeywords"));
  87.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["servicio"]) || array_key_exists("servicio"$context) ? $context["servicio"] : (function () { throw new RuntimeError('Variable "servicio" does not exist.'6$this->source); })()), "metaKeywords", [], "any"falsefalsefalse6), "html"nulltrue);
  88.         
  89.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  90.         
  91.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  92.     }
  93.     // line 8
  94.     public function block_idiomas($context, array $blocks = [])
  95.     {
  96.         $macros $this->macros;
  97.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  98.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""idiomas"));
  99.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  100.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""idiomas"));
  101.         // line 9
  102.         $context['_parent'] = $context;
  103.         $context['_seq'] = twig_ensure_traversable((isset($context["locales"]) || array_key_exists("locales"$context) ? $context["locales"] : (function () { throw new RuntimeError('Variable "locales" does not exist.'9$this->source); })()));
  104.         foreach ($context['_seq'] as $context["k"] => $context["idioma"]) {
  105.             // line 10
  106.             echo "    <option ";
  107.             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.'10$this->source); })()), "request", [], "any"falsefalsefalse10), "locale", [], "any"falsefalsefalse10))) {
  108.                 echo "selected";
  109.             }
  110.             echo " value=\"";
  111.             if (($context["k"] != "es")) {
  112.                 echo "/";
  113.                 echo twig_escape_filter($this->env$context["k"], "html"nulltrue);
  114.             }
  115.             echo "/";
  116.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["servicio"]) || array_key_exists("servicio"$context) ? $context["servicio"] : (function () { throw new RuntimeError('Variable "servicio" does not exist.'10$this->source); })()), "getUrl", [=> $context["k"]], "method"falsefalsefalse10), "html"nulltrue);
  117.             echo "\" title=\"";
  118.             echo twig_escape_filter($this->env$context["idioma"], "html"nulltrue);
  119.             echo "\">";
  120.             echo twig_escape_filter($this->envtwig_upper_filter($this->env$context["k"]), "html"nulltrue);
  121.             echo "</option>
  122. ";
  123.         }
  124.         $_parent $context['_parent'];
  125.         unset($context['_seq'], $context['_iterated'], $context['k'], $context['idioma'], $context['_parent'], $context['loop']);
  126.         $context array_intersect_key($context$_parent) + $_parent;
  127.         
  128.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  129.         
  130.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  131.     }
  132.     // line 14
  133.     public function block_bodyId($context, array $blocks = [])
  134.     {
  135.         $macros $this->macros;
  136.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  137.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""bodyId"));
  138.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  139.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""bodyId"));
  140.         echo "servicios";
  141.         
  142.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  143.         
  144.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  145.     }
  146.     // line 16
  147.     public function block_body($context, array $blocks = [])
  148.     {
  149.         $macros $this->macros;
  150.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  151.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  152.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  153.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  154.         echo 
  155.     <div class=\"title container\">
  156.         <h1>";
  157.         // line 18
  158.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["servicio"]) || array_key_exists("servicio"$context) ? $context["servicio"] : (function () { throw new RuntimeError('Variable "servicio" does not exist.'18$this->source); })()), "titulo", [], "any"falsefalsefalse18), "html"nulltrue);
  159.         echo "</h1>
  160.     </div>
  161.     <div id=\"cont-servicios\" class=\"container\">
  162.         ";
  163.         // line 21
  164.         if (twig_get_attribute($this->env$this->source, (isset($context["servicio"]) || array_key_exists("servicio"$context) ? $context["servicio"] : (function () { throw new RuntimeError('Variable "servicio" does not exist.'21$this->source); })()), "imagenCabecera", [], "any"falsefalsefalse21)) {
  165.             // line 22
  166.             echo "            ";
  167.             echo $this->env->getRuntime('Sonata\MediaBundle\Twig\MediaRuntime')->thumbnail(twig_get_attribute($this->env$this->source, (isset($context["servicio"]) || array_key_exists("servicio"$context) ? $context["servicio"] : (function () { throw new RuntimeError('Variable "servicio" does not exist.'22$this->source); })()), "imagenCabecera", [], "any"falsefalsefalse22), "default_cabecera", ["class" => "imagen-cabecera img-fluid"]);
  168.             echo "
  169.         ";
  170.         }
  171.         // line 24
  172.         echo "        <div> ";
  173.         echo twig_get_attribute($this->env$this->source, (isset($context["servicio"]) || array_key_exists("servicio"$context) ? $context["servicio"] : (function () { throw new RuntimeError('Variable "servicio" does not exist.'24$this->source); })()), "texto", [], "any"falsefalsefalse24);
  174.         echo "</div>
  175.     </div>
  176.     
  177.     ";
  178.         // line 28
  179.         $this->displayBlock('empresas'$context$blocks);
  180.         
  181.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  182.         
  183.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  184.     }
  185.     public function block_empresas($context, array $blocks = [])
  186.     {
  187.         $macros $this->macros;
  188.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  189.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""empresas"));
  190.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  191.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""empresas"));
  192.         // line 29
  193.         echo "        ";
  194.         echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\DefaultController::empresas"));
  195.         echo "
  196.     ";
  197.         
  198.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  199.         
  200.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  201.     }
  202.     public function getTemplateName()
  203.     {
  204.         return "default/servicio.html.twig";
  205.     }
  206.     public function isTraitable()
  207.     {
  208.         return false;
  209.     }
  210.     public function getDebugInfo()
  211.     {
  212.         return array (  238 => 29,  219 => 28,  211 => 24,  205 => 22,  203 => 21,  197 => 18,  184 => 16,  165 => 14,  135 => 10,  131 => 9,  121 => 8,  102 => 6,  83 => 5,  64 => 4,  41 => 2,);
  213.     }
  214.     public function getSourceContext()
  215.     {
  216.         return new Source("{# {% extends 'default/contenido.html.twig' %} #}
  217. {% extends 'base.html.twig' %}
  218. {% block title %}{{ servicio.metaTitle | default('default_metatitle') | trans }}{% endblock %}
  219. {% block metadescription %}{{ servicio.metaDescription }}{% endblock %}
  220. {% block metakeywords %}{{ servicio.metaKeywords }}{% endblock %}
  221. {% block idiomas %}
  222. {% for k,idioma in locales %}
  223.     <option {% if k == app.request.locale %}selected{% endif %} value=\"{% if k != 'es' %}/{{k}}{% endif %}/{{servicio.getUrl(k)}}\" title=\"{{ idioma }}\">{{ k | upper}}</option>
  224. {% endfor %}
  225. {% endblock %}
  226. {% block bodyId %}servicios{% endblock %}
  227. {% block body %} 
  228.     <div class=\"title container\">
  229.         <h1>{{servicio.titulo}}</h1>
  230.     </div>
  231.     <div id=\"cont-servicios\" class=\"container\">
  232.         {% if servicio.imagenCabecera %}
  233.             {{ sonata_thumbnail(servicio.imagenCabecera, 'default_cabecera', {'class': 'imagen-cabecera img-fluid'}) }}
  234.         {% endif %}
  235.         <div> {{ servicio.texto | raw }}</div>
  236.     </div>
  237.     
  238.     {% block empresas %}
  239.         {{ render(controller('App\\\\Controller\\\\DefaultController::empresas' )) }}
  240.     {% endblock %}
  241. {% endblock %}
  242. ""default/servicio.html.twig""/home/alien/www/eurochange/templates/default/servicio.html.twig");
  243.     }
  244. }