var/cache/dev/twig/40/40136d5d2a263c8bb9eebda88663b89d73c6163797525091ba8d6f629af4edb1.php line 34

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. /* Pages/NewsOverviewPage/pagetemplate.html.twig */
  14. class __TwigTemplate_4b544dc83a3ecc50de74a88fbfa321b2ed48d7213a11b55da1163042e15f450f extends \Twig\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.             'breadcrumbs' => [$this'block_breadcrumbs'],
  25.         ];
  26.     }
  27.     protected function doDisplay(array $context, array $blocks = [])
  28.     {
  29.         $macros $this->macros;
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  31.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Pages/NewsOverviewPage/pagetemplate.html.twig"));
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  33.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""Pages/NewsOverviewPage/pagetemplate.html.twig"));
  34.         // line 1
  35.         $context["currentUrl"] = twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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.'1$this->source); })()), "request", [], "any"falsefalsefalse1), "attributes", [], "any"falsefalsefalse1), "get", [=> "_nodeTranslation"], "method"falsefalsefalse1), "url", [], "any"falsefalsefalse1);
  36.         // line 2
  37.         $context["baseRoute"] = ("_slug" . ((twig_get_attribute($this->env$this->sourcetwig_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.'2$this->source); })()), "request", [], "any"falsefalsefalse2), "attributes", [], "any"falsefalsefalse2), "get", [=> "preview"], "method"falsefalsefalse2)) ? ("_preview") : ("")));
  38.         // line 3
  39.         $context["basePath"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath((isset($context["baseRoute"]) || array_key_exists("baseRoute"$context) ? $context["baseRoute"] : (function () { throw new RuntimeError('Variable "baseRoute" does not exist.'3$this->source); })()), ["url" => (isset($context["currentUrl"]) || array_key_exists("currentUrl"$context) ? $context["currentUrl"] : (function () { throw new RuntimeError('Variable "currentUrl" does not exist.'3$this->source); })()), "_locale" => 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.'3$this->source); })()), "request", [], "any"falsefalsefalse3), "locale", [], "any"falsefalsefalse3)]);
  40.         // line 4
  41.         $context["categoryContext"] = $this->extensions['Kunstmaan\ArticleBundle\Twig\ArticleTwigExtension']->getCategories(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"falsefalsefalse4), "App:NewsCategory");
  42.         $context["tagContext"] = $this->extensions['Kunstmaan\ArticleBundle\Twig\ArticleTwigExtension']->getTags(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"falsefalsefalse4), "App:NewsTag");
  43.         // line 5
  44.         echo "
  45. <div class=\"news-overview news-page\">
  46.     ";
  47.         // line 9
  48.         echo "    ";
  49.         $this->loadTemplate("Layout/_page-header.html.twig""Pages/NewsOverviewPage/pagetemplate.html.twig"9)->display(twig_array_merge($context, ["page" => (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'9$this->source); })())]));
  50.         // line 10
  51.         echo "
  52.     ";
  53.         // line 12
  54.         echo "    ";
  55.         $this->displayBlock('breadcrumbs'$context$blocks);
  56.         // line 15
  57.         echo "
  58.     <div class=\"content\">
  59.         <h1 role=\"heading\" aria-level=\"1\">";
  60.         // line 18
  61.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["page"]) || array_key_exists("page"$context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.'18$this->source); })()), "pageTitle", [], "any"falsefalsefalse18), "html"nulltrue);
  62.         echo "</h1>
  63.         <div class=\"blog-filter js-toggle-container\">
  64.             <div class=\"blog-filter__top\">
  65.                 ";
  66.         // line 23
  67.         echo "                ";
  68.         // line 24
  69.         echo "            </div>
  70.             <div class=\"blog-filter__filters\">
  71.                 ";
  72.         // line 27
  73.         $this->loadTemplate("Pages/NewsOverviewPage/_list-tag.html.twig""Pages/NewsOverviewPage/pagetemplate.html.twig"27)->display(twig_array_merge($context, ["tagContext" => (isset($context["tagContext"]) || array_key_exists("tagContext"$context) ? $context["tagContext"] : (function () { throw new RuntimeError('Variable "tagContext" does not exist.'27$this->source); })())]));
  74.         // line 28
  75.         echo "                ";
  76.         // line 29
  77.         echo "            </div>
  78.         </div>
  79.     </div>
  80.     <div class=\"content\">
  81.         ";
  82.         // line 36
  83.         $context["count"] = 0;
  84.         // line 37
  85.         echo "        ";
  86.         if ((twig_get_attribute($this->env$this->source, (isset($context["pagerfanta"]) || array_key_exists("pagerfanta"$context) ? $context["pagerfanta"] : (function () { throw new RuntimeError('Variable "pagerfanta" does not exist.'37$this->source); })()), "nbResults", [], "any"falsefalsefalse37) > 0)) {
  87.             // line 38
  88.             echo "
  89.             <div class=\"row\">
  90.                 ";
  91.             // line 41
  92.             $context['_parent'] = $context;
  93.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["pagerfanta"]) || array_key_exists("pagerfanta"$context) ? $context["pagerfanta"] : (function () { throw new RuntimeError('Variable "pagerfanta" does not exist.'41$this->source); })()), "currentPageResults", [], "any"falsefalsefalse41));
  94.             foreach ($context['_seq'] as $context["_key"] => $context["article"]) {
  95.                 // line 42
  96.                 echo "
  97.                     ";
  98.                 // line 43
  99.                 $context["articlenode"] = $this->extensions['Kunstmaan\NodeBundle\Twig\NodeTwigExtension']->getNodeTranslationFor($context["article"]);
  100.                 // line 44
  101.                 echo "
  102.                     ";
  103.                 // line 45
  104.                 if ((twig_get_attribute($this->env$this->source$context["article"], "listImage", [], "any"falsefalsefalse45) &&  !twig_test_empty(twig_get_attribute($this->env$this->source$context["article"], "listImage", [], "any"falsefalsefalse45)))) {
  105.                     // line 46
  106.                     echo "                        ";
  107.                     $context["img"] = twig_first($this->envtwig_get_attribute($this->env$this->source$context["article"], "listImage", [], "any"falsefalsefalse46));
  108.                     // line 47
  109.                     echo "                    ";
  110.                 } elseif ((twig_get_attribute($this->env$this->source$context["article"], "headerImage", [], "any"falsefalsefalse47) &&  !twig_test_empty(twig_get_attribute($this->env$this->source$context["article"], "headerImage", [], "any"falsefalsefalse47)))) {
  111.                     // line 48
  112.                     echo "                        ";
  113.                     $context["img"] = twig_first($this->envtwig_get_attribute($this->env$this->source$context["article"], "headerImage", [], "any"falsefalsefalse48));
  114.                     // line 49
  115.                     echo "                    ";
  116.                 } else {
  117.                     // line 50
  118.                     echo "                        ";
  119.                     $context["img"] = ["cropping" => null"media" => ["url" => $this->extensions['App\Twig\GcsExtension']->getDefaultArticleImage()], "mediaAlt" => "GdyƄskie Centrum Sportu"];
  120.                     // line 57
  121.                     echo "                    ";
  122.                 }
  123.                 // line 58
  124.                 echo "
  125.                     <article
  126.                             class=\"news-box col-md-4";
  127.                 // line 61
  128.                 $context['_parent'] = $context;
  129.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["article"], "tags", [], "any"falsefalsefalse61));
  130.                 foreach ($context['_seq'] as $context["_key"] => $context["tag"]) {
  131.                     if ((twig_get_attribute($this->env$this->source$context["tag"], "id", [], "any"falsefalsefalse61) == 3)) {
  132.                         echo " photo";
  133.                     }
  134.                     if ((twig_get_attribute($this->env$this->source$context["tag"], "id", [], "any"falsefalsefalse61) == 2)) {
  135.                         echo " video";
  136.                     }
  137.                 }
  138.                 $_parent $context['_parent'];
  139.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tag'], $context['_parent'], $context['loop']);
  140.                 $context array_intersect_key($context$_parent) + $_parent;
  141.                 echo "\">
  142.                         <a href=\"";
  143.                 // line 63
  144.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("_slug", ["url" => twig_get_attribute($this->env$this->source, (isset($context["articlenode"]) || array_key_exists("articlenode"$context) ? $context["articlenode"] : (function () { throw new RuntimeError('Variable "articlenode" does not exist.'63$this->source); })()), "url", [], "any"falsefalsefalse63)]), "html"nulltrue);
  145.                 echo "\">
  146.                             <div class=\"news-box__img\">
  147.                                 ";
  148.                 // line 66
  149.                 if ((((isset($context["img"]) || array_key_exists("img"$context)) &&  !twig_test_empty((isset($context["img"]) || array_key_exists("img"$context) ? $context["img"] : (function () { throw new RuntimeError('Variable "img" does not exist.'66$this->source); })()))) &&  !(null === (isset($context["img"]) || array_key_exists("img"$context) ? $context["img"] : (function () { throw new RuntimeError('Variable "img" does not exist.'66$this->source); })())))) {
  150.                     // line 67
  151.                     echo "                                    ";
  152.                     $context["fullSrc"] = call_user_func_array($this->env->getFunction('croppedImgSrc')->getCallable(), [twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["img"]) || array_key_exists("img"$context) ? $context["img"] : (function () { throw new RuntimeError('Variable "img" does not exist.'67$this->source); })()), "media", [], "any"falsefalsefalse67), "url", [], "any"falsefalsefalse67), twig_get_attribute($this->env$this->source, (isset($context["img"]) || array_key_exists("img"$context) ? $context["img"] : (function () { throw new RuntimeError('Variable "img" does not exist.'67$this->source); })()), "cropping", [], "any"falsefalsefalse67), ["w" => 450"h" => 300"q" => 80"fit" => "crop"]]);
  153.                     // line 68
  154.                     echo "                                    <img src=\"";
  155.                     echo twig_escape_filter($this->env, (isset($context["fullSrc"]) || array_key_exists("fullSrc"$context) ? $context["fullSrc"] : (function () { throw new RuntimeError('Variable "fullSrc" does not exist.'68$this->source); })()), "html"nulltrue);
  156.                     echo "\" alt=\"";
  157.                     if (twig_get_attribute($this->env$this->source, (isset($context["img"]) || array_key_exists("img"$context) ? $context["img"] : (function () { throw new RuntimeError('Variable "img" does not exist.'68$this->source); })()), "mediaAlt", [], "any"falsefalsefalse68)) {
  158.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["img"]) || array_key_exists("img"$context) ? $context["img"] : (function () { throw new RuntimeError('Variable "img" does not exist.'68$this->source); })()), "mediaAlt", [], "any"falsefalsefalse68), "html"nulltrue);
  159.                     } else {
  160.                         echo twig_escape_filter($this->envstrip_tags(twig_get_attribute($this->env$this->source$context["article"], "title", [], "any"falsefalsefalse68)), "html"nulltrue);
  161.                     }
  162.                     echo "\" />
  163.                                 ";
  164.                 } else {
  165.                     // line 71
  166.                     echo "                                    <img src=\"data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==\"
  167.                                          alt=\"\">
  168.                                 ";
  169.                 }
  170.                 // line 74
  171.                 echo "
  172.                                 <div class=\"news-box__read-more\">
  173.                                     ";
  174.                 // line 76
  175.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("news.read-more"), "html"nulltrue);
  176.                 echo "
  177.                                 </div>
  178.                             </div>
  179.                             <div class=\"news-box__caption\">
  180.                                 <h3  role=\"heading\" aria-level=\"3\">";
  181.                 // line 80
  182.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["article"], "title", [], "any"falsefalsefalse80), "html"nulltrue);
  183.                 echo "</h3>
  184.                             </div>
  185.                             <div class=\"news-box__date\">
  186.                                 <time datetime=\"";
  187.                 // line 83
  188.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["article"], "date", [], "any"falsefalsefalse83), "d.m.Y"), "html"nulltrue);
  189.                 echo "\">";
  190.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["article"], "date", [], "any"falsefalsefalse83), "d.m.Y"), "html"nulltrue);
  191.                 echo "</time>
  192.                             </div>
  193.                         </a>
  194.                     </article>
  195.                     ";
  196.                 // line 88
  197.                 $context["count"] = ((isset($context["count"]) || array_key_exists("count"$context) ? $context["count"] : (function () { throw new RuntimeError('Variable "count" does not exist.'88$this->source); })()) + 1);
  198.                 // line 89
  199.                 echo "                    ";
  200.                 $context["img"] = null;
  201.                 // line 90
  202.                 echo "
  203.                 ";
  204.             }
  205.             $_parent $context['_parent'];
  206.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['article'], $context['_parent'], $context['loop']);
  207.             $context array_intersect_key($context$_parent) + $_parent;
  208.             // line 92
  209.             echo "
  210.             </div>
  211.         ";
  212.         }
  213.         // line 96
  214.         echo "
  215.         ";
  216.         // line 97
  217.         if (twig_get_attribute($this->env$this->source, (isset($context["pagerfanta"]) || array_key_exists("pagerfanta"$context) ? $context["pagerfanta"] : (function () { throw new RuntimeError('Variable "pagerfanta" does not exist.'97$this->source); })()), "haveToPaginate", [], "method"falsefalsefalse97)) {
  218.             // line 98
  219.             echo "            <div class=\"pagination\">
  220.                 ";
  221.             // line 99
  222.             echo $this->extensions['WhiteOctober\PagerfantaBundle\Twig\PagerfantaExtension']->renderPagerfanta((isset($context["pagerfanta"]) || array_key_exists("pagerfanta"$context) ? $context["pagerfanta"] : (function () { throw new RuntimeError('Variable "pagerfanta" does not exist.'99$this->source); })()), null, ["pageParameter" => "[page]""prev_message" => "<i class=\"fas fa-chevron-left\"></i>""next_message" => "<i class=\"fas fa-chevron-right\"></i>"]);
  223.             // line 103
  224.             echo "
  225.             </div>
  226.         ";
  227.         }
  228.         // line 106
  229.         echo "
  230.     </div>
  231. </div>
  232. ";
  233.         
  234.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  235.         
  236.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  237.     }
  238.     // line 12
  239.     public function block_breadcrumbs($context, array $blocks = [])
  240.     {
  241.         $macros $this->macros;
  242.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  243.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""breadcrumbs"));
  244.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  245.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""breadcrumbs"));
  246.         // line 13
  247.         echo "        ";
  248.         $this->loadTemplate("Layout/_breadcrumbs.html.twig""Pages/NewsOverviewPage/pagetemplate.html.twig"13)->display(twig_array_merge($context, ["refererString" => 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.'13$this->source); })()), "request", [], "any"falsefalsefalse13), "get", [=> "path"], "method"falsefalsefalse13)]));
  249.         // line 14
  250.         echo "    ";
  251.         
  252.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  253.         
  254.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  255.     }
  256.     public function getTemplateName()
  257.     {
  258.         return "Pages/NewsOverviewPage/pagetemplate.html.twig";
  259.     }
  260.     public function isTraitable()
  261.     {
  262.         return false;
  263.     }
  264.     public function getDebugInfo()
  265.     {
  266.         return array (  280 => 14,  277 => 13,  267 => 12,  252 => 106,  247 => 103,  245 => 99,  242 => 98,  240 => 97,  237 => 96,  231 => 92,  224 => 90,  221 => 89,  219 => 88,  209 => 83,  203 => 80,  196 => 76,  192 => 74,  187 => 71,  174 => 68,  171 => 67,  169 => 66,  163 => 63,  146 => 61,  141 => 58,  138 => 57,  135 => 50,  132 => 49,  129 => 48,  126 => 47,  123 => 46,  121 => 45,  118 => 44,  116 => 43,  113 => 42,  109 => 41,  104 => 38,  101 => 37,  99 => 36,  90 => 29,  88 => 28,  86 => 27,  81 => 24,  79 => 23,  72 => 18,  67 => 15,  64 => 12,  61 => 10,  58 => 9,  53 => 5,  50 => 4,  48 => 3,  46 => 2,  44 => 1,);
  267.     }
  268.     public function getSourceContext()
  269.     {
  270.         return new Source("{% set currentUrl = app.request.attributes.get('_nodeTranslation').url %}
  271. {% set baseRoute = '_slug' ~ (app.request.attributes.get('preview') ? '_preview' : '') %}
  272. {% set basePath = path(baseRoute, { 'url': currentUrl, '_locale': app.request.locale }) %}
  273. {% set categoryContext = get_article_categories(app.request, 'App:NewsCategory') %}{% set tagContext = get_article_tags(app.request, 'App:NewsTag') %}
  274. <div class=\"news-overview news-page\">
  275.     {# Page Header #}
  276.     {% include 'Layout/_page-header.html.twig' with { 'page' : page } %}
  277.     {# Breadcrumbs #}
  278.     {% block breadcrumbs %}
  279.         {% include 'Layout/_breadcrumbs.html.twig' with { 'refererString' : app.request.get('path') } %}
  280.     {% endblock %}
  281.     <div class=\"content\">
  282.         <h1 role=\"heading\" aria-level=\"1\">{{ page.pageTitle }}</h1>
  283.         <div class=\"blog-filter js-toggle-container\">
  284.             <div class=\"blog-filter__top\">
  285.                 {#                        {% include 'Pages/NewsOverviewPage/_filter-tag.html.twig' with {'tags': tagContext.tags} %}#}
  286.                 {#                        {% include 'Pages/NewsOverviewPage/_filter-category.html.twig' with {'categories': categoryContext.categories} %}#}
  287.             </div>
  288.             <div class=\"blog-filter__filters\">
  289.                 {% include 'Pages/NewsOverviewPage/_list-tag.html.twig' with {'tagContext': tagContext} %}
  290.                 {#                        {% include 'Pages/NewsOverviewPage/_list-category.html.twig' with {'categoryContext': categoryContext} %}#}
  291.             </div>
  292.         </div>
  293.     </div>
  294.     <div class=\"content\">
  295.         {% set count = 0 %}
  296.         {% if pagerfanta.nbResults > 0 %}
  297.             <div class=\"row\">
  298.                 {% for article in pagerfanta.currentPageResults %}
  299.                     {% set articlenode = get_node_translation_for(article) %}
  300.                     {% if article.listImage and article.listImage is not empty %}
  301.                         {% set img = article.listImage | first %}
  302.                     {% elseif article.headerImage and article.headerImage is not empty %}
  303.                         {% set img = article.headerImage | first %}
  304.                     {% else %}
  305.                         {% set img = {
  306.                             'cropping' : null,
  307.                             'media' : {
  308.                                 'url' : get_default_article_image(),
  309.                             },
  310.                             'mediaAlt' : 'GdyƄskie Centrum Sportu'
  311.                         } %}
  312.                     {% endif %}
  313.                     <article
  314.                             class=\"news-box col-md-4{% for tag in article.tags %}{% if tag.id == 3 %} photo{% endif %}{% if tag.id == 2 %} video{% endif %}{% endfor %}\">
  315.                         <a href=\"{{ path('_slug', {'url': articlenode.url}) }}\">
  316.                             <div class=\"news-box__img\">
  317.                                 {% if img is defined and img is not empty and img is not null %}
  318.                                     {% set fullSrc = croppedImgSrc(img.media.url, img.cropping, { w: 450, h: 300, q: 80, fit: 'crop' }) %}
  319.                                     <img src=\"{{ fullSrc }}\" alt=\"{% if img.mediaAlt %}{{ img.mediaAlt }}{% else %}{{ article.title | striptags }}{% endif %}\" />
  320.                                 {% else %}
  321.                                     <img src=\"data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==\"
  322.                                          alt=\"\">
  323.                                 {% endif %}
  324.                                 <div class=\"news-box__read-more\">
  325.                                     {{ 'news.read-more' | trans }}
  326.                                 </div>
  327.                             </div>
  328.                             <div class=\"news-box__caption\">
  329.                                 <h3  role=\"heading\" aria-level=\"3\">{{ article.title }}</h3>
  330.                             </div>
  331.                             <div class=\"news-box__date\">
  332.                                 <time datetime=\"{{ article.date | date(\"d.m.Y\") }}\">{{ article.date | date(\"d.m.Y\") }}</time>
  333.                             </div>
  334.                         </a>
  335.                     </article>
  336.                     {% set count = count + 1 %}
  337.                     {% set img = null %}
  338.                 {% endfor %}
  339.             </div>
  340.         {% endif %}
  341.         {% if  pagerfanta.haveToPaginate() %}
  342.             <div class=\"pagination\">
  343.                 {{ pagerfanta(pagerfanta, null, {
  344.                     'pageParameter': '[page]',
  345.                     'prev_message':'<i class=\"fas fa-chevron-left\"></i>',
  346.                     'next_message':'<i class=\"fas fa-chevron-right\"></i>'
  347.                 }) }}
  348.             </div>
  349.         {% endif %}
  350.     </div>
  351. </div>
  352. ""Pages/NewsOverviewPage/pagetemplate.html.twig""/var/www/gcs/html/dev/templates/Pages/NewsOverviewPage/pagetemplate.html.twig");
  353.     }
  354. }