var/cache/dev/twig/64/6497ae2c6f1a6310ae1a5a6fac40be50.php line 49
- <?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/cms/club.html.twig */
- class __TwigTemplate_46f100b05d601fee280d55bb5d18aca3 extends Template
- {
- private $source;
- private $macros = [];
- public function __construct(Environment $env)
- {
- parent::__construct($env);
- $this->source = $this->getSourceContext();
- $this->blocks = [
- 'bodyId' => [$this, 'block_bodyId'],
- 'contenido' => [$this, 'block_contenido'],
- ];
- }
- protected function doGetParent(array $context)
- {
- // line 1
- return "default/contenido.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/cms/club.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/cms/club.html.twig"));
- $this->parent = $this->loadTemplate("default/contenido.html.twig", "default/cms/club.html.twig", 1);
- $this->parent->display($context, array_merge($this->blocks, $blocks));
- $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
- }
- // line 3
- 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 "club";
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
- $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
- }
- // line 5
- public function block_contenido($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", "contenido"));
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "contenido"));
- // line 6
- echo " ";
- $this->displayParentBlock("contenido", $context, $blocks);
- echo "
- <div id=\"promociones\" class=\"row ";
- // line 8
- echo " g-4\">
- ";
- // line 9
- $context['_parent'] = $context;
- $context['_seq'] = twig_ensure_traversable((isset($context["promociones"]) || array_key_exists("promociones", $context) ? $context["promociones"] : (function () { throw new RuntimeError('Variable "promociones" does not exist.', 9, $this->source); })()));
- foreach ($context['_seq'] as $context["_key"] => $context["promocion"]) {
- // line 10
- echo " <div class=\"col-12 col-md-6 col-xl-4\">
- <div class=\"card h-100\">
- <div class=\"card-header\"><b>";
- // line 12
- echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["promocion"], "nombre", [], "any", false, false, false, 12), "html", null, true);
- echo "</b></div>
- <div class=\"card-body\">
- ";
- // line 15
- if (twig_get_attribute($this->env, $this->source, $context["promocion"], "imagen", [], "any", false, false, false, 15)) {
- // line 16
- echo " ";
- echo $this->env->getRuntime('Sonata\MediaBundle\Twig\MediaRuntime')->thumbnail(twig_get_attribute($this->env, $this->source, $context["promocion"], "imagen", [], "any", false, false, false, 16), "reference", ["class" => "card-img-top"]);
- echo "
- ";
- }
- // line 18
- echo " <p class=\"card-text\">";
- echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["promocion"], "texto", [], "any", false, false, false, 18), "html", null, true);
- echo "</p>
- </div>
- <div class=\"card-footer\"><span class=\"\">";
- // line 21
- echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["promocion"], "oferta", [], "any", false, false, false, 21), "html", null, true);
- echo "</span></div>
- </div>
- </div>
- ";
- }
- $_parent = $context['_parent'];
- unset($context['_seq'], $context['_iterated'], $context['_key'], $context['promocion'], $context['_parent'], $context['loop']);
- $context = array_intersect_key($context, $_parent) + $_parent;
- // line 26
- echo " </div>
- ";
- $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
- $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
- }
- public function getTemplateName()
- {
- return "default/cms/club.html.twig";
- }
- public function isTraitable()
- {
- return false;
- }
- public function getDebugInfo()
- {
- return array ( 137 => 26, 126 => 21, 119 => 18, 113 => 16, 111 => 15, 105 => 12, 101 => 10, 97 => 9, 94 => 8, 88 => 6, 78 => 5, 59 => 3, 36 => 1,);
- }
- public function getSourceContext()
- {
- return new Source("{% extends 'default/contenido.html.twig' %}
- {% block bodyId %}club{% endblock %}
- {% block contenido %}
- {{ parent() }}
- <div id=\"promociones\" class=\"row {#row-cols-1 row-cols-md-2 row-cols-lg-3 row-cols-xl-4#} g-4\">
- {% for promocion in promociones %}
- <div class=\"col-12 col-md-6 col-xl-4\">
- <div class=\"card h-100\">
- <div class=\"card-header\"><b>{{ promocion.nombre }}</b></div>
- <div class=\"card-body\">
- {% if promocion.imagen %}
- {{ sonata_thumbnail(promocion.imagen, 'reference', {class:'card-img-top'}) }}
- {% endif %}
- <p class=\"card-text\">{{ promocion.texto }}</p>
- </div>
- <div class=\"card-footer\"><span class=\"\">{{ promocion.oferta}}</span></div>
- </div>
- </div>
- {% endfor %}
- </div>
- {% endblock %}
- ", "default/cms/club.html.twig", "/home/alien/www/eurochange/templates/default/cms/club.html.twig");
- }
- }