var/cache/dev/twig/64/6497ae2c6f1a6310ae1a5a6fac40be50.php line 39

  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/cms/club.html.twig */
  14. class __TwigTemplate_46f100b05d601fee280d55bb5d18aca3 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.             'bodyId' => [$this'block_bodyId'],
  24.             'contenido' => [$this'block_contenido'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "default/contenido.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""default/cms/club.html.twig"));
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""default/cms/club.html.twig"));
  39.         $this->parent $this->loadTemplate("default/contenido.html.twig""default/cms/club.html.twig"1);
  40.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  43.         
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  45.     }
  46.     // line 3
  47.     public function block_bodyId($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""bodyId"));
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""bodyId"));
  54.         echo "club";
  55.         
  56.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  57.         
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  59.     }
  60.     // line 5
  61.     public function block_contenido($context, array $blocks = [])
  62.     {
  63.         $macros $this->macros;
  64.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  65.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""contenido"));
  66.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  67.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""contenido"));
  68.         // line 6
  69.         echo "    ";
  70.         $this->displayParentBlock("contenido"$context$blocks);
  71.         echo "
  72.     
  73.     <div id=\"promociones\" class=\"row ";
  74.         // line 8
  75.         echo " g-4\">
  76.     ";
  77.         // line 9
  78.         $context['_parent'] = $context;
  79.         $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); })()));
  80.         foreach ($context['_seq'] as $context["_key"] => $context["promocion"]) {
  81.             // line 10
  82.             echo "        <div class=\"col-12 col-md-6 col-xl-4\">
  83.             <div class=\"card h-100\">
  84.                 <div class=\"card-header\"><b>";
  85.             // line 12
  86.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["promocion"], "nombre", [], "any"falsefalsefalse12), "html"nulltrue);
  87.             echo "</b></div>
  88.                 <div class=\"card-body\">
  89.                     ";
  90.             // line 15
  91.             if (twig_get_attribute($this->env$this->source$context["promocion"], "imagen", [], "any"falsefalsefalse15)) {
  92.                 // line 16
  93.                 echo "                        ";
  94.                 echo $this->env->getRuntime('Sonata\MediaBundle\Twig\MediaRuntime')->thumbnail(twig_get_attribute($this->env$this->source$context["promocion"], "imagen", [], "any"falsefalsefalse16), "reference", ["class" => "card-img-top"]);
  95.                 echo "
  96.                     ";
  97.             }
  98.             // line 18
  99.             echo "                    <p class=\"card-text\">";
  100.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["promocion"], "texto", [], "any"falsefalsefalse18), "html"nulltrue);
  101.             echo "</p>
  102.                 </div>
  103.                 
  104.                 <div class=\"card-footer\"><span class=\"\">";
  105.             // line 21
  106.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["promocion"], "oferta", [], "any"falsefalsefalse21), "html"nulltrue);
  107.             echo "</span></div>
  108.             </div>
  109.         </div>
  110.         
  111.     ";
  112.         }
  113.         $_parent $context['_parent'];
  114.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['promocion'], $context['_parent'], $context['loop']);
  115.         $context array_intersect_key($context$_parent) + $_parent;
  116.         // line 26
  117.         echo "    </div>
  118.     
  119. ";
  120.         
  121.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  122.         
  123.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  124.     }
  125.     public function getTemplateName()
  126.     {
  127.         return "default/cms/club.html.twig";
  128.     }
  129.     public function isTraitable()
  130.     {
  131.         return false;
  132.     }
  133.     public function getDebugInfo()
  134.     {
  135.         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,);
  136.     }
  137.     public function getSourceContext()
  138.     {
  139.         return new Source("{% extends 'default/contenido.html.twig' %}
  140. {% block bodyId %}club{% endblock %}
  141. {% block contenido %}
  142.     {{ parent() }}
  143.     
  144.     <div id=\"promociones\" class=\"row {#row-cols-1 row-cols-md-2 row-cols-lg-3 row-cols-xl-4#} g-4\">
  145.     {% for promocion in promociones %}
  146.         <div class=\"col-12 col-md-6 col-xl-4\">
  147.             <div class=\"card h-100\">
  148.                 <div class=\"card-header\"><b>{{ promocion.nombre }}</b></div>
  149.                 <div class=\"card-body\">
  150.                     {% if promocion.imagen %}
  151.                         {{ sonata_thumbnail(promocion.imagen, 'reference', {class:'card-img-top'}) }}
  152.                     {% endif %}
  153.                     <p class=\"card-text\">{{ promocion.texto }}</p>
  154.                 </div>
  155.                 
  156.                 <div class=\"card-footer\"><span class=\"\">{{ promocion.oferta}}</span></div>
  157.             </div>
  158.         </div>
  159.         
  160.     {% endfor %}
  161.     </div>
  162.     
  163. {% endblock %}
  164. ""default/cms/club.html.twig""/home/alien/www/eurochange/templates/default/cms/club.html.twig");
  165.     }
  166. }