var/cache/website/dev/twig/77/77180ca1a05484f48bd40dc667f378db.php line 119

Open in your IDE?
  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. /* includes/blocks/partnersList.html.twig */
  14. class __TwigTemplate_eb00e894e581a2dfc613674183984402 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->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""includes/blocks/partnersList.html.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""includes/blocks/partnersList.html.twig"));
  33.         // line 1
  34.         echo "<section class=\"border-grid relative pt-14 pb-7\"
  35.   section-shade=\"light\"
  36.   batch-wrapp>
  37.   <div>
  38.     <div
  39.       class=\"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 border-y sm:border-0 border-gray sm:divide-x divide-y sm:divide-y-reverse divide-gray\">
  40.       ";
  41.         // line 8
  42.         $context['_parent'] = $context;
  43.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, ($context["content"] ?? null), "partners", [], "any"falsefalsefalse8));
  44.         foreach ($context['_seq'] as $context["_key"] => $context["partner"]) {
  45.             // line 9
  46.             echo "      ";
  47.             $context["item"] = $this->env->getFunction('sulu_content_load')->getCallable()(twig_get_attribute($this->env$this->source$context["partner"], "id", [], "any"falsefalsefalse9), ["title" => "title""image" => "image""description" => "description"]);
  48.             // line 10
  49.             echo "
  50.       <div class=\"border-item p-8 lg:p-12 border-gray\">
  51.         <div class=\"flex flex-col items-center text-center\">
  52.           ";
  53.             // line 14
  54.             echo "          <div class=\"flex items-center justify-center w-full\" style=\"height: 200px\">
  55.             ";
  56.             // line 16
  57.             echo "            ";
  58.             if ((twig_length_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["item"] ?? null), "content", [], "any"falsefalsefalse16), "image", [], "any"falsefalsefalse16)) > 0)) {
  59.                 // line 17
  60.                 echo "            ";
  61.                 $context["image"] = (($__internal_compile_0 twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["item"] ?? null), "content", [], "any"falsefalsefalse17), "image", [], "any"falsefalsefalse17), "thumbnails", [], "any"falsefalsefalse17)) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0["570x300-inset"] ?? null) : null);
  62.                 // line 18
  63.                 echo "            <img src=\"";
  64.                 echo twig_escape_filter($this->env, ($context["image"] ?? null), "html"nulltrue);
  65.                 echo "\"
  66.               alt=\"";
  67.                 // line 19
  68.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["item"] ?? null), "content", [], "any"falsefalsefalse19), "title", [], "any"falsefalsefalse19), "html"nulltrue);
  69.                 echo "\"
  70.               loading=\"lazy\"
  71.               style=\"max-height: 200px; object-fit: contain\">
  72.             ";
  73.             }
  74.             // line 23
  75.             echo "          </div>
  76.           ";
  77.             // line 26
  78.             echo "          <p class=\"title text-2xl mt-8\">
  79.             ";
  80.             // line 27
  81.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["item"] ?? null), "content", [], "any"falsefalsefalse27), "title", [], "any"falsefalsefalse27), "html"nulltrue);
  82.             echo "
  83.           </p>
  84.           ";
  85.             // line 30
  86.             echo "          <p class=\"text-sm mt-8\">
  87.             ";
  88.             // line 31
  89.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["item"] ?? null), "content", [], "any"falsefalsefalse31), "description", [], "any"falsefalsefalse31), "html"nulltrue);
  90.             echo "
  91.           </p> 
  92.         </div>
  93.       </div>
  94.       
  95.       ";
  96.         }
  97.         $_parent $context['_parent'];
  98.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['partner'], $context['_parent'], $context['loop']);
  99.         $context array_intersect_key($context$_parent) + $_parent;
  100.         // line 38
  101.         echo "
  102.     </div>
  103.     ";
  104.         // line 42
  105.         $this->loadTemplate("./partials/layout/pagination.html.twig""includes/blocks/partnersList.html.twig"42)->display(twig_array_merge($context, ["class" => "blue mt-8 md:mt-12"]));
  106.         // line 45
  107.         echo 
  108.     
  109.   </div>
  110. </section>";
  111.         
  112.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  113.         
  114.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  115.     }
  116.     public function getTemplateName()
  117.     {
  118.         return "includes/blocks/partnersList.html.twig";
  119.     }
  120.     public function isTraitable()
  121.     {
  122.         return false;
  123.     }
  124.     public function getDebugInfo()
  125.     {
  126.         return array (  121 => 45,  119 => 42,  113 => 38,  100 => 31,  97 => 30,  92 => 27,  89 => 26,  85 => 23,  78 => 19,  73 => 18,  70 => 17,  67 => 16,  64 => 14,  59 => 10,  56 => 9,  52 => 8,  43 => 1,);
  127.     }
  128.     public function getSourceContext()
  129.     {
  130.         return new Source("<section class=\"border-grid relative pt-14 pb-7\"
  131.   section-shade=\"light\"
  132.   batch-wrapp>
  133.   <div>
  134.     <div
  135.       class=\"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 border-y sm:border-0 border-gray sm:divide-x divide-y sm:divide-y-reverse divide-gray\">
  136.       {% for partner in content.partners %}
  137.       {% set item = sulu_content_load(partner.id,{'title': 'title', 'image': 'image', 'description': 'description'}) %}
  138.       <div class=\"border-item p-8 lg:p-12 border-gray\">
  139.         <div class=\"flex flex-col items-center text-center\">
  140.           {# Image #}
  141.           <div class=\"flex items-center justify-center w-full\" style=\"height: 200px\">
  142.             {# Image size 570*300 with white/transparent background only #}
  143.             {% if item.content.image|length > 0 %}
  144.             {% set image = item.content.image.thumbnails['570x300-inset'] %}
  145.             <img src=\"{{image}}\"
  146.               alt=\"{{item.content.title}}\"
  147.               loading=\"lazy\"
  148.               style=\"max-height: 200px; object-fit: contain\">
  149.             {% endif %}
  150.           </div>
  151.           {# Title #}
  152.           <p class=\"title text-2xl mt-8\">
  153.             {{item.content.title}}
  154.           </p>
  155.           {# Text #}
  156.           <p class=\"text-sm mt-8\">
  157.             {{item.content.description}}
  158.           </p> 
  159.         </div>
  160.       </div>
  161.       
  162.       {% endfor %}
  163.     </div>
  164.     {% include \"./partials/layout/pagination.html.twig\" with {
  165.     'class' : 'blue mt-8 md:mt-12'
  166.     } %}
  167.  
  168.     
  169.   </div>
  170. </section>""includes/blocks/partnersList.html.twig""/home/clients/27e4eb6afe64c67f100a17cbd6809e7c/var/www/oakas-lane/templates/includes/blocks/partnersList.html.twig");
  171.     }
  172. }