<?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/newsSingleRelated.html.twig */
class __TwigTemplate_cf9281be3cc3d7b636a498624b579a84 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/newsSingleRelated.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/newsSingleRelated.html.twig"));
// line 1
echo "<br><br>
";
// line 3
$context["previous"] = $this->env->getFunction('sulu_content_load')->getCallable()(twig_get_attribute($this->env, $this->source, ($context["content"] ?? null), "previousArticle", [], "any", false, false, false, 3), ["title" => "title", "url" => "url", "image" => "image", "date" => "date"]);
// line 4
$context["next"] = $this->env->getFunction('sulu_content_load')->getCallable()(twig_get_attribute($this->env, $this->source, ($context["content"] ?? null), "nextArticle", [], "any", false, false, false, 4), ["title" => "title", "url" => "url", "image" => "image", "date" => "date"]);
// line 5
echo "
<div
class=\"grid sm:grid-cols-2 border divide-y sm:divide-y-0 divide-y-reverse sm:divide-x border-gray divide-gray text-blue mx-auto max-w-[928px]\">
";
// line 10
echo " <div
class=\"prev-news relative py-6 px-8 hover:bg-blue focus-within:bg-blue hover:text-white focus-within:text-white duration-300 order-1 sm:order-none\">
<a class=\"absolute inset-0 z-10 text-[0px] outline-none\"
href=\"";
// line 13
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["previous"] ?? null), "content", [], "any", false, false, false, 13), "url", [], "any", false, false, false, 13)), "html", null, true);
echo "\">
";
// line 14
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["content"] ?? null), "previousText", [], "any", false, false, false, 14), "html", null, true);
echo "
</a>
<div class=\"flex items-center gap-[10px]\">
<svg class=\"w-6 h-2\">
<use xlink:href=\"#arrow-prev\"></use>
</svg>
<span>";
// line 20
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["content"] ?? null), "previousText", [], "any", false, false, false, 20), "html", null, true);
echo "</span>
</div>
<div class=\"flex gap-3 mt-3\">
<div class=\"w-20 h-20 flex-shrink-0\">
";
// line 26
echo " ";
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["previous"] ?? null), "content", [], "any", false, false, false, 26), "image", [], "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, twig_get_attribute($this->env, $this->source, ($context["previous"] ?? null), "content", [], "any", false, false, false, 27), "image", [], "any", false, false, false, 27), "thumbnails", [], "any", false, false, false, 27)) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0["100x100"] ?? null) : null);
// line 28
echo " <img class=\"w-full h-full object-cover\"
src=\"";
// line 29
echo twig_escape_filter($this->env, ($context["image"] ?? null), "html", null, true);
echo "\"
alt=\"";
// line 30
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["previous"] ?? null), "content", [], "any", false, false, false, 30), "title", [], "any", false, false, false, 30), "html", null, true);
echo "\"
loading=\"lazy\">
";
}
// line 33
echo " </div>
<div>
<p class=\"title text-xl\">";
// line 35
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["previous"] ?? null), "content", [], "any", false, false, false, 35), "title", [], "any", false, false, false, 35), "html", null, true);
echo "</p>
<time class=\"block text-sm mt-3 whitespace-nowrap\">";
// line 36
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["previous"] ?? null), "content", [], "any", false, false, false, 36), "date", [], "any", false, false, false, 36), "d M, Y"), "html", null, true);
echo "</time>
</div>
</div>
</div>
";
// line 42
echo " <div
class=\"next-news relative py-6 px-8 hover:bg-blue focus-within:bg-blue hover:text-white focus-within:text-white duration-300\">
<a class=\"absolute inset-0 z-10 text-[0px] outline-none\"
href=\"";
// line 45
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["next"] ?? null), "content", [], "any", false, false, false, 45), "url", [], "any", false, false, false, 45)), "html", null, true);
echo "\">
";
// line 46
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["content"] ?? null), "nextText", [], "any", false, false, false, 46), "html", null, true);
echo "
</a>
<div class=\"flex justify-end items-center gap-[10px]\">
<span>";
// line 49
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["content"] ?? null), "nextText", [], "any", false, false, false, 49), "html", null, true);
echo "</span>
<svg class=\"w-6 h-2\">
<use xlink:href=\"#arrow-next\"></use>
</svg>
</div>
<div class=\"flex gap-3 mt-3\">
<div>
<p class=\"title text-xl\">";
// line 57
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["next"] ?? null), "content", [], "any", false, false, false, 57), "title", [], "any", false, false, false, 57), "html", null, true);
echo "</p>
<time class=\"block text-sm mt-3 whitespace-nowrap\">";
// line 58
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["next"] ?? null), "content", [], "any", false, false, false, 58), "date", [], "any", false, false, false, 58), "d M, Y"), "html", null, true);
echo "</time>
</div>
<div class=\"w-20 h-20 flex-shrink-0\">
";
// line 62
echo " ";
if ((twig_length_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["next"] ?? null), "content", [], "any", false, false, false, 62), "image", [], "any", false, false, false, 62)) > 0)) {
// line 63
echo " ";
$context["image"] = (($__internal_compile_1 = twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["next"] ?? null), "content", [], "any", false, false, false, 63), "image", [], "any", false, false, false, 63), "thumbnails", [], "any", false, false, false, 63)) && is_array($__internal_compile_1) || $__internal_compile_1 instanceof ArrayAccess ? ($__internal_compile_1["100x100"] ?? null) : null);
// line 64
echo " <img class=\"w-full h-full object-cover\"
src=\"";
// line 65
echo twig_escape_filter($this->env, ($context["image"] ?? null), "html", null, true);
echo "\"
alt=\"";
// line 66
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, ($context["next"] ?? null), "content", [], "any", false, false, false, 66), "title", [], "any", false, false, false, 66), "html", null, true);
echo "\"
loading=\"lazy\">
";
}
// line 69
echo " </div>
</div>
</div>";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "includes/blocks/newsSingleRelated.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 173 => 69, 167 => 66, 163 => 65, 160 => 64, 157 => 63, 154 => 62, 148 => 58, 144 => 57, 133 => 49, 127 => 46, 123 => 45, 118 => 42, 110 => 36, 106 => 35, 102 => 33, 96 => 30, 92 => 29, 89 => 28, 86 => 27, 83 => 26, 75 => 20, 66 => 14, 62 => 13, 57 => 10, 51 => 5, 49 => 4, 47 => 3, 43 => 1,);
}
public function getSourceContext()
{
return new Source("<br><br>
{% set previous = sulu_content_load(content.previousArticle, {'title': 'title', 'url': 'url', 'image': 'image', 'date': 'date'}) %}
{% set next = sulu_content_load(content.nextArticle, {'title': 'title', 'url': 'url', 'image': 'image', 'date': 'date'}) %}
<div
class=\"grid sm:grid-cols-2 border divide-y sm:divide-y-0 divide-y-reverse sm:divide-x border-gray divide-gray text-blue mx-auto max-w-[928px]\">
{# Prev #}
<div
class=\"prev-news relative py-6 px-8 hover:bg-blue focus-within:bg-blue hover:text-white focus-within:text-white duration-300 order-1 sm:order-none\">
<a class=\"absolute inset-0 z-10 text-[0px] outline-none\"
href=\"{{ sulu_content_path(previous.content.url) }}\">
{{ content.previousText }}
</a>
<div class=\"flex items-center gap-[10px]\">
<svg class=\"w-6 h-2\">
<use xlink:href=\"#arrow-prev\"></use>
</svg>
<span>{{ content.previousText }}</span>
</div>
<div class=\"flex gap-3 mt-3\">
<div class=\"w-20 h-20 flex-shrink-0\">
{# Image size 100*100 #}
{% if previous.content.image|length > 0 %}
{% set image = previous.content.image.thumbnails['100x100'] %}
<img class=\"w-full h-full object-cover\"
src=\"{{ image }}\"
alt=\"{{ previous.content.title }}\"
loading=\"lazy\">
{% endif %}
</div>
<div>
<p class=\"title text-xl\">{{ previous.content.title }}</p>
<time class=\"block text-sm mt-3 whitespace-nowrap\">{{ previous.content.date|date('d M, Y') }}</time>
</div>
</div>
</div>
{# Next #}
<div
class=\"next-news relative py-6 px-8 hover:bg-blue focus-within:bg-blue hover:text-white focus-within:text-white duration-300\">
<a class=\"absolute inset-0 z-10 text-[0px] outline-none\"
href=\"{{ sulu_content_path(next.content.url) }}\">
{{ content.nextText }}
</a>
<div class=\"flex justify-end items-center gap-[10px]\">
<span>{{ content.nextText }}</span>
<svg class=\"w-6 h-2\">
<use xlink:href=\"#arrow-next\"></use>
</svg>
</div>
<div class=\"flex gap-3 mt-3\">
<div>
<p class=\"title text-xl\">{{ next.content.title }}</p>
<time class=\"block text-sm mt-3 whitespace-nowrap\">{{ next.content.date|date('d M, Y') }}</time>
</div>
<div class=\"w-20 h-20 flex-shrink-0\">
{# Image size 100*100 #}
{% if next.content.image|length > 0 %}
{% set image = next.content.image.thumbnails['100x100'] %}
<img class=\"w-full h-full object-cover\"
src=\"{{ image }}\"
alt=\"{{ next.content.title }}\"
loading=\"lazy\">
{% endif %}
</div>
</div>
</div>", "includes/blocks/newsSingleRelated.html.twig", "/home/clients/27e4eb6afe64c67f100a17cbd6809e7c/var/www/oakas-lane/templates/includes/blocks/newsSingleRelated.html.twig");
}
}