<?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;
/* includes/blocks/partnersList.html.twig */
class __TwigTemplate_eb00e894e581a2dfc613674183984402 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
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", "includes/blocks/partnersList.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "includes/blocks/partnersList.html.twig"));
// line 1
echo "<section class=\"border-grid relative pt-14 pb-7\"
section-shade=\"light\"
batch-wrapp>
<div>
<div
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\">
";
// line 8
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, ($context["content"] ?? null), "partners", [], "any", false, false, false, 8));
foreach ($context['_seq'] as $context["_key"] => $context["partner"]) {
// line 9
echo " ";
$context["item"] = $this->env->getFunction('sulu_content_load')->getCallable()(twig_get_attribute($this->env, $this->source, $context["partner"], "id", [], "any", false, false, false, 9), ["title" => "title", "image" => "image", "description" => "description"]);
// line 10
echo "
<div class=\"border-item p-8 lg:p-12 border-gray\">
<div class=\"flex flex-col items-center text-center\">
";
// line 14
echo " <div class=\"flex items-center justify-center w-full\" style=\"height: 200px\">
";
// line 16
echo " ";
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["item"] ?? null), "content", [], "any", false, false, false, 16), "image", [], "any", false, false, false, 16)) > 0)) {
// line 17
echo " ";
$context["image"] = (($__internal_compile_0 = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["item"] ?? null), "content", [], "any", false, false, false, 17), "image", [], "any", false, false, false, 17), "thumbnails", [], "any", false, false, false, 17)) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0["570x300-inset"] ?? null) : null);
// line 18
echo " <img src=\"";
echo twig_escape_filter($this->env, ($context["image"] ?? null), "html", null, true);
echo "\"
alt=\"";
// line 19
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["item"] ?? null), "content", [], "any", false, false, false, 19), "title", [], "any", false, false, false, 19), "html", null, true);
echo "\"
loading=\"lazy\"
style=\"max-height: 200px; object-fit: contain\">
";
}
// line 23
echo " </div>
";
// line 26
echo " <p class=\"title text-2xl mt-8\">
";
// line 27
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["item"] ?? null), "content", [], "any", false, false, false, 27), "title", [], "any", false, false, false, 27), "html", null, true);
echo "
</p>
";
// line 30
echo " <p class=\"text-sm mt-8\">
";
// line 31
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["item"] ?? null), "content", [], "any", false, false, false, 31), "description", [], "any", false, false, false, 31), "html", null, true);
echo "
</p>
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['partner'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 38
echo "
</div>
";
// line 42
$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"]));
// line 45
echo "
</div>
</section>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "includes/blocks/partnersList.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("<section class=\"border-grid relative pt-14 pb-7\"
section-shade=\"light\"
batch-wrapp>
<div>
<div
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\">
{% for partner in content.partners %}
{% set item = sulu_content_load(partner.id,{'title': 'title', 'image': 'image', 'description': 'description'}) %}
<div class=\"border-item p-8 lg:p-12 border-gray\">
<div class=\"flex flex-col items-center text-center\">
{# Image #}
<div class=\"flex items-center justify-center w-full\" style=\"height: 200px\">
{# Image size 570*300 with white/transparent background only #}
{% if item.content.image|length > 0 %}
{% set image = item.content.image.thumbnails['570x300-inset'] %}
<img src=\"{{image}}\"
alt=\"{{item.content.title}}\"
loading=\"lazy\"
style=\"max-height: 200px; object-fit: contain\">
{% endif %}
</div>
{# Title #}
<p class=\"title text-2xl mt-8\">
{{item.content.title}}
</p>
{# Text #}
<p class=\"text-sm mt-8\">
{{item.content.description}}
</p>
</div>
</div>
{% endfor %}
</div>
{% include \"./partials/layout/pagination.html.twig\" with {
'class' : 'blue mt-8 md:mt-12'
} %}
</div>
</section>", "includes/blocks/partnersList.html.twig", "/home/clients/27e4eb6afe64c67f100a17cbd6809e7c/var/www/oakas-lane/templates/includes/blocks/partnersList.html.twig");
}
}