<?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;
/* @openform_front_templates/AboutUs/_item.html.twig */
class __TwigTemplate_eaff5d3dc56dee2e1768c1698240f843 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", "@openform_front_templates/AboutUs/_item.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@openform_front_templates/AboutUs/_item.html.twig"));
// line 1
echo "
";
// line 2
$context["img"] = twig_get_attribute($this->env, $this->source, (isset($context["openform_front_util"]) || array_key_exists("openform_front_util", $context) ? $context["openform_front_util"] : (function () { throw new RuntimeError('Variable "openform_front_util" does not exist.', 2, $this->source); })()), "getImagePathByType", [(((twig_get_attribute($this->env, $this->source, ($context["item"] ?? null), "Thumb", [], "any", true, true, false, 2) && !(null === twig_get_attribute($this->env, $this->source, ($context["item"] ?? null), "Thumb", [], "any", false, false, false, 2)))) ? (twig_get_attribute($this->env, $this->source, ($context["item"] ?? null), "Thumb", [], "any", false, false, false, 2)) : ("")), "list"], "method", false, false, false, 2);
// line 4
$context["href"] = twig_get_attribute($this->env, $this->source, (isset($context["toolkit_route_localizer"]) || array_key_exists("toolkit_route_localizer", $context) ? $context["toolkit_route_localizer"] : (function () { throw new RuntimeError('Variable "toolkit_route_localizer" does not exist.', 4, $this->source); })()), "generate", ["news_item", ["slug" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 4, $this->source); })()), "Translation", [], "any", false, false, false, 4), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 4, $this->source); })()), "request", [], "any", false, false, false, 4), "locale", [], "any", false, false, false, 4), [], "array", false, false, false, 4), "slug", [], "any", false, false, false, 4)], twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 4, $this->source); })()), "request", [], "any", false, false, false, 4), "locale", [], "any", false, false, false, 4)], "method", false, false, false, 4);
// line 5
echo "
<a class=\"news-item\" href=\"";
// line 6
echo twig_escape_filter($this->env, (isset($context["href"]) || array_key_exists("href", $context) ? $context["href"] : (function () { throw new RuntimeError('Variable "href" does not exist.', 6, $this->source); })()), "html", null, true);
echo "\" aria-label=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("T_READ_MORE", [], "openform_front", twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 6, $this->source); })()), "request", [], "any", false, false, false, 6), "locale", [], "any", false, false, false, 6)), "html", null, true);
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 6, $this->source); })()), "Translation", [], "any", false, false, false, 6), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 6, $this->source); })()), "request", [], "any", false, false, false, 6), "locale", [], "any", false, false, false, 6), [], "array", false, false, false, 6), "title", [], "any", false, false, false, 6), "html", null, true);
echo "\"
>
";
// line 8
if ((isset($context["img"]) || array_key_exists("img", $context) ? $context["img"] : (function () { throw new RuntimeError('Variable "img" does not exist.', 8, $this->source); })())) {
// line 9
echo " <img class=\"news-item__image\" loading=\"lazy\" src=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl((isset($context["img"]) || array_key_exists("img", $context) ? $context["img"] : (function () { throw new RuntimeError('Variable "img" does not exist.', 9, $this->source); })())), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 9, $this->source); })()), "Translation", [], "any", false, false, false, 9), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 9, $this->source); })()), "request", [], "any", false, false, false, 9), "locale", [], "any", false, false, false, 9), [], "array", false, false, false, 9), "alt", [], "any", false, false, false, 9), "html", null, true);
echo "\">
";
}
// line 11
echo " <div class=\"news-item__content\">
<h2 class=\"news-item__title\">";
// line 12
echo twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 12, $this->source); })()), "Translation", [], "any", false, false, false, 12), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 12, $this->source); })()), "request", [], "any", false, false, false, 12), "locale", [], "any", false, false, false, 12), [], "array", false, false, false, 12), "titleHtml", [], "any", false, false, false, 12);
echo "</h2>
<div class=\"news-item__date-wrapper\">
<time class=\"news-item__date\">
";
// line 15
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $this->extensions['App\Package\Openform\Twig\CustomExtensions']->explodedDateFilter(twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 15, $this->source); })()), "publishDate", [], "any", false, false, false, 15), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 15, $this->source); })()), "request", [], "any", false, false, false, 15), "locale", [], "any", false, false, false, 15)), "D", [], "any", false, false, false, 15), "html", null, true);
echo "
";
// line 16
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $this->extensions['App\Package\Openform\Twig\CustomExtensions']->explodedDateFilter(twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 16, $this->source); })()), "publishDate", [], "any", false, false, false, 16), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 16, $this->source); })()), "request", [], "any", false, false, false, 16), "locale", [], "any", false, false, false, 16)), "month", [], "any", false, false, false, 16), "html", null, true);
echo "
";
// line 17
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $this->extensions['App\Package\Openform\Twig\CustomExtensions']->explodedDateFilter(twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 17, $this->source); })()), "publishDate", [], "any", false, false, false, 17), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 17, $this->source); })()), "request", [], "any", false, false, false, 17), "locale", [], "any", false, false, false, 17)), "y", [], "any", false, false, false, 17), "html", null, true);
echo "
</time>
</div>
<p class=\"news-item__text\">";
// line 20
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["item"]) || array_key_exists("item", $context) ? $context["item"] : (function () { throw new RuntimeError('Variable "item" does not exist.', 20, $this->source); })()), "Translation", [], "any", false, false, false, 20), twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 20, $this->source); })()), "request", [], "any", false, false, false, 20), "locale", [], "any", false, false, false, 20), [], "array", false, false, false, 20), "shortLead", [], "any", false, false, false, 20), "html", null, true);
echo "</p>
</div>
</a>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "@openform_front_templates/AboutUs/_item.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 95 => 20, 89 => 17, 85 => 16, 81 => 15, 75 => 12, 72 => 11, 64 => 9, 62 => 8, 53 => 6, 50 => 5, 48 => 4, 46 => 2, 43 => 1,);
}
public function getSourceContext()
{
return new Source("
{% set img = openform_front_util.getImagePathByType(item.Thumb ?? '','list') %}
{#{% set href = toolkit_route_localizer.generate('about_us_item',{ slug : item.Translation[app.request.locale].slug }, app.request.locale) %}#}
{% set href = toolkit_route_localizer.generate('news_item',{ slug : item.Translation[app.request.locale].slug }, app.request.locale) %}
<a class=\"news-item\" href=\"{{ href }}\" aria-label=\"{{ 'T_READ_MORE'|trans({}, 'openform_front', app.request.locale) }} {{ item.Translation[app.request.locale].title }}\"
>
{% if img %}
<img class=\"news-item__image\" loading=\"lazy\" src=\"{{asset(img)}}\" alt=\"{{ item.Translation[app.request.locale].alt }}\">
{% endif %}
<div class=\"news-item__content\">
<h2 class=\"news-item__title\">{{ item.Translation[app.request.locale].titleHtml|raw }}</h2>
<div class=\"news-item__date-wrapper\">
<time class=\"news-item__date\">
{{ item.publishDate|explodedDate(app.request.locale).D }}
{{ item.publishDate|explodedDate(app.request.locale).month }}
{{ item.publishDate|explodedDate(app.request.locale).y }}
</time>
</div>
<p class=\"news-item__text\">{{ item.Translation[app.request.locale].shortLead }}</p>
</div>
</a>
", "@openform_front_templates/AboutUs/_item.html.twig", "/var/www/php81/fpd.in.openform.pl/src/Package/Openform/Front/Templates/AboutUs/_item.html.twig");
}
}