<?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/homeNewsSection.html.twig */
class __TwigTemplate_2e11110d11c18d11c92c9e71b0e8832a 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/homeNewsSection.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/homeNewsSection.html.twig"));
// line 1
$macros["macrosTypography"] = $this->macros["macrosTypography"] = $this->loadTemplate("./macros_typography.html.twig", "includes/blocks/homeNewsSection.html.twig", 1)->unwrap();
// line 2
$macros["macrosButton"] = $this->macros["macrosButton"] = $this->loadTemplate("./macros_button.html.twig", "includes/blocks/homeNewsSection.html.twig", 2)->unwrap();
// line 3
echo "
<section class=\"news-section relative\"
section-shade=\"light\">
<div class=\"fixed-lines\">
<div class=\"hidden lg:block\"></div>
<div class=\"hidden lg:block\"></div>
<div class=\"hidden lg:block\"></div>
</div>
<div class=\"relative grid grid-cols-1 lg:grid-cols-[1fr_2fr] pt-12 pb-12 lg:pt-16 lg:pb-0\">
<div class=\"overflow-hidden px-8 xl:px-12 text-blue\">
<h2 class=\"h2\"
split-direction=\"top\"
split-trigger=\"scroll\">
";
// line 18
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["content"] ?? null), "AlpineTitle", [], "any", false, false, false, 18), "html", null, true);
echo "
</h2>
</div>
<div class=\"hidden lg:block relative w-full h-[340px] ml-px z-10\"
fade
fade-trigger=\"scroll\">
<div class=\"img-clip h-full\">
";
// line 26
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["content"] ?? null), "AlpineMedia", [], "any", false, false, false, 26)) > 0)) {
// line 27
echo " ";
$context["image"] = (($__internal_compile_0 = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["content"] ?? null), "AlpineMedia", [], "any", false, false, false, 27), "thumbnails", [], "any", false, false, false, 27)) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0["1400x400"] ?? null) : null);
// line 28
echo " ";
// line 29
echo " <img src=\"";
echo twig_escape_filter($this->env, ($context["image"] ?? null), "html", null, true);
echo "\"
alt=\"news main image\"
loading=\"lazy\">
";
// line 33
echo " <img src=\"";
echo twig_escape_filter($this->env, ($context["image"] ?? null), "html", null, true);
echo "\"
alt=\"news main image\"
loading=\"lazy\">
";
}
// line 37
echo " </div>
</div>
</div>
<div class=\"news-grid grid lg:grid-cols-3 divide-y lg:divide-none divide-gray border-t border-gray\">
";
// line 44
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, ($context["content"] ?? null), "similarNews", [], "any", false, false, false, 44));
foreach ($context['_seq'] as $context["_key"] => $context["news"]) {
// line 45
echo "
";
// line 46
$context["item"] = $this->env->getFunction('sulu_content_load')->getCallable()(twig_get_attribute($this->env, $this->source, $context["news"], "singleNews", [], "any", false, false, false, 46), ["title" => "title", "url" => "url", "date" => "date"]);
// line 47
echo "
<div
class=\"news-item relative flex flex-col justify-between px-8 py-6 lg:p-8 xl:p-12 xl:pr-44 text-blue group duration-500 ease-basic-ease hover:text-white hover:bg-blue\">
<a class=\"absolute inset-0 text-[0px] z-10\"
href=\"";
// line 51
echo twig_escape_filter($this->env, $this->extensions['Sulu\Bundle\WebsiteBundle\Twig\Content\ContentPathTwigExtension']->getContentPath(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["item"] ?? null), "content", [], "any", false, false, false, 51), "url", [], "any", false, false, false, 51)), "html", null, true);
echo "\">";
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, 51), "title", [], "any", false, false, false, 51), "html", null, true);
echo "</a>
<time class=\"news-item__time block text-sm mb-4 lg:mb-16\"
split-direction=\"bottom\"
split-trigger=\"none\">
";
// line 56
echo twig_escape_filter($this->env, twig_date_format_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, 56), "date", [], "any", false, false, false, 56), "d M, Y"), "html", null, true);
echo "
</time>
<div class=\"mt-auto\">
<h3 class=\"news-item__title h4 pr-7\"
fade
fade-trigger=\"none\">";
// line 62
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, 62), "title", [], "any", false, false, false, 62), "html", null, true);
echo "</h3>
";
// line 64
echo twig_call_macro($macros["macrosButton"], "macro_miniArrow", [["class" => "news-item__arrow ml-auto lg:ml-0 mt-9", "trigger" => "none"]], 64, $context, $this->getSourceContext());
// line 67
echo "
</div>
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['news'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 73
echo " </div>
</section>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "includes/blocks/homeNewsSection.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 158 => 73, 147 => 67, 145 => 64, 140 => 62, 131 => 56, 121 => 51, 115 => 47, 113 => 46, 110 => 45, 106 => 44, 97 => 37, 89 => 33, 82 => 29, 80 => 28, 77 => 27, 75 => 26, 64 => 18, 47 => 3, 45 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("{% import \"./macros_typography.html.twig\" as macrosTypography %}
{% import \"./macros_button.html.twig\" as macrosButton %}
<section class=\"news-section relative\"
section-shade=\"light\">
<div class=\"fixed-lines\">
<div class=\"hidden lg:block\"></div>
<div class=\"hidden lg:block\"></div>
<div class=\"hidden lg:block\"></div>
</div>
<div class=\"relative grid grid-cols-1 lg:grid-cols-[1fr_2fr] pt-12 pb-12 lg:pt-16 lg:pb-0\">
<div class=\"overflow-hidden px-8 xl:px-12 text-blue\">
<h2 class=\"h2\"
split-direction=\"top\"
split-trigger=\"scroll\">
{{ content.AlpineTitle }}
</h2>
</div>
<div class=\"hidden lg:block relative w-full h-[340px] ml-px z-10\"
fade
fade-trigger=\"scroll\">
<div class=\"img-clip h-full\">
{% if content.AlpineMedia|length > 0 %}
{% set image = content.AlpineMedia.thumbnails['1400x400'] %}
{# Image size 1400*400 #}
<img src=\"{{ image }}\"
alt=\"news main image\"
loading=\"lazy\">
{# Image size 1400*400 #}
<img src=\"{{ image }}\"
alt=\"news main image\"
loading=\"lazy\">
{% endif %}
</div>
</div>
</div>
<div class=\"news-grid grid lg:grid-cols-3 divide-y lg:divide-none divide-gray border-t border-gray\">
{% for news in content.similarNews %}
{% set item = sulu_content_load(news.singleNews, {'title': 'title', 'url': 'url', 'date': 'date'}) %}
<div
class=\"news-item relative flex flex-col justify-between px-8 py-6 lg:p-8 xl:p-12 xl:pr-44 text-blue group duration-500 ease-basic-ease hover:text-white hover:bg-blue\">
<a class=\"absolute inset-0 text-[0px] z-10\"
href=\"{{ sulu_content_path(item.content.url) }}\">{{ item.content.title }}</a>
<time class=\"news-item__time block text-sm mb-4 lg:mb-16\"
split-direction=\"bottom\"
split-trigger=\"none\">
{{ item.content.date|date('d M, Y') }}
</time>
<div class=\"mt-auto\">
<h3 class=\"news-item__title h4 pr-7\"
fade
fade-trigger=\"none\">{{ item.content.title }}</h3>
{{macrosButton.miniArrow({
'class': 'news-item__arrow ml-auto lg:ml-0 mt-9',
'trigger': 'none'
})}}
</div>
</div>
{% endfor %}
</div>
</section>", "includes/blocks/homeNewsSection.html.twig", "/home/clients/27e4eb6afe64c67f100a17cbd6809e7c/var/www/oakas-lane/templates/includes/blocks/homeNewsSection.html.twig");
}
}