var/cache/dev/twig/0a/0af1f0427e4d273844ba14f715836211.php line 33

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. /* @openform_front_templates/AboutUs/_item.html.twig */
  14. class __TwigTemplate_eaff5d3dc56dee2e1768c1698240f843 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""@openform_front_templates/AboutUs/_item.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""@openform_front_templates/AboutUs/_item.html.twig"));
  33.         // line 1
  34.         echo "
  35. ";
  36.         // line 2
  37.         $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"truetruefalse2) &&  !(null === twig_get_attribute($this->env$this->source, ($context["item"] ?? null), "Thumb", [], "any"falsefalsefalse2)))) ? (twig_get_attribute($this->env$this->source, ($context["item"] ?? null), "Thumb", [], "any"falsefalsefalse2)) : ("")), "list"], "method"falsefalsefalse2);
  38.         // line 4
  39.         $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->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse4), twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse4), "locale", [], "any"falsefalsefalse4), [], "array"falsefalsefalse4), "slug", [], "any"falsefalsefalse4)], twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse4), "locale", [], "any"falsefalsefalse4)], "method"falsefalsefalse4);
  40.         // line 5
  41.         echo "
  42. <a class=\"news-item\" href=\"";
  43.         // line 6
  44.         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"nulltrue);
  45.         echo "\" aria-label=\"";
  46.         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->sourcetwig_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"falsefalsefalse6), "locale", [], "any"falsefalsefalse6)), "html"nulltrue);
  47.         echo " ";
  48.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse6), twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse6), "locale", [], "any"falsefalsefalse6), [], "array"falsefalsefalse6), "title", [], "any"falsefalsefalse6), "html"nulltrue);
  49.         echo "\"
  50.     >
  51.     ";
  52.         // line 8
  53.         if ((isset($context["img"]) || array_key_exists("img"$context) ? $context["img"] : (function () { throw new RuntimeError('Variable "img" does not exist.'8$this->source); })())) {
  54.             // line 9
  55.             echo "        <img class=\"news-item__image\" loading=\"lazy\" src=\"";
  56.             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"nulltrue);
  57.             echo "\" alt=\"";
  58.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse9), twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse9), "locale", [], "any"falsefalsefalse9), [], "array"falsefalsefalse9), "alt", [], "any"falsefalsefalse9), "html"nulltrue);
  59.             echo "\">
  60.     ";
  61.         }
  62.         // line 11
  63.         echo "    <div class=\"news-item__content\">
  64.         <h2 class=\"news-item__title\">";
  65.         // line 12
  66.         echo twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse12), twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse12), "locale", [], "any"falsefalsefalse12), [], "array"falsefalsefalse12), "titleHtml", [], "any"falsefalsefalse12);
  67.         echo "</h2>  
  68.         <div class=\"news-item__date-wrapper\">
  69.             <time class=\"news-item__date\">
  70.                 ";
  71.         // line 15
  72.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse15), twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse15), "locale", [], "any"falsefalsefalse15)), "D", [], "any"falsefalsefalse15), "html"nulltrue);
  73.         echo "
  74.                 ";
  75.         // line 16
  76.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse16), twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse16), "locale", [], "any"falsefalsefalse16)), "month", [], "any"falsefalsefalse16), "html"nulltrue);
  77.         echo "
  78.                 ";
  79.         // line 17
  80.         echo twig_escape_filter($this->envtwig_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"falsefalsefalse17), twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse17), "locale", [], "any"falsefalsefalse17)), "y", [], "any"falsefalsefalse17), "html"nulltrue);
  81.         echo "
  82.             </time>
  83.         </div>
  84.         <p class=\"news-item__text\">";
  85.         // line 20
  86.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse20), twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse20), "locale", [], "any"falsefalsefalse20), [], "array"falsefalsefalse20), "shortLead", [], "any"falsefalsefalse20), "html"nulltrue);
  87.         echo "</p>
  88.     </div>
  89. </a>
  90. ";
  91.         
  92.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  93.         
  94.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  95.     }
  96.     public function getTemplateName()
  97.     {
  98.         return "@openform_front_templates/AboutUs/_item.html.twig";
  99.     }
  100.     public function isTraitable()
  101.     {
  102.         return false;
  103.     }
  104.     public function getDebugInfo()
  105.     {
  106.         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,);
  107.     }
  108.     public function getSourceContext()
  109.     {
  110.         return new Source("
  111. {% set img = openform_front_util.getImagePathByType(item.Thumb ?? '','list') %}
  112. {#{% set href = toolkit_route_localizer.generate('about_us_item',{ slug : item.Translation[app.request.locale].slug }, app.request.locale) %}#}
  113. {% set href = toolkit_route_localizer.generate('news_item',{ slug : item.Translation[app.request.locale].slug }, app.request.locale) %}
  114. <a class=\"news-item\" href=\"{{ href }}\" aria-label=\"{{ 'T_READ_MORE'|trans({}, 'openform_front', app.request.locale) }} {{ item.Translation[app.request.locale].title }}\"
  115.     >
  116.     {% if img %}
  117.         <img class=\"news-item__image\" loading=\"lazy\" src=\"{{asset(img)}}\" alt=\"{{ item.Translation[app.request.locale].alt }}\">
  118.     {% endif %}
  119.     <div class=\"news-item__content\">
  120.         <h2 class=\"news-item__title\">{{ item.Translation[app.request.locale].titleHtml|raw }}</h2>  
  121.         <div class=\"news-item__date-wrapper\">
  122.             <time class=\"news-item__date\">
  123.                 {{ item.publishDate|explodedDate(app.request.locale).D }}
  124.                 {{ item.publishDate|explodedDate(app.request.locale).month }}
  125.                 {{ item.publishDate|explodedDate(app.request.locale).y }}
  126.             </time>
  127.         </div>
  128.         <p class=\"news-item__text\">{{ item.Translation[app.request.locale].shortLead }}</p>
  129.     </div>
  130. </a>
  131. ""@openform_front_templates/AboutUs/_item.html.twig""/var/www/php81/fpd.in.openform.pl/src/Package/Openform/Front/Templates/AboutUs/_item.html.twig");
  132.     }
  133. }