var/cache/dev/twig/c3/c32707a1af08051c0321e7f884983970.php line 40

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. /* news/overview.html.twig */
  14. class __TwigTemplate_18d4e3de308730bd552a36e407bfc8b3 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->blocks = [
  23.             'content' => [$this'block_content'],
  24.         ];
  25.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return $this->loadTemplate($this->extensions['App\Twig\Extension\WebsiteExtension']->getBaseLayout(), "news/overview.html.twig"1);
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""news/overview.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""news/overview.html.twig"));
  40.         $this->getParent($context)->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  43.         
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  45.     }
  46.     // line 3
  47.     public function block_content($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  54.         // line 4
  55.         echo "    <div class=\"container mb-5\">
  56.         ";
  57.         // line 6
  58.         echo twig_include($this->env$context"includes/title.html.twig");
  59.         echo "
  60.         <div class=\"row\">
  61.             <div class=\"col-12\">
  62.                 ";
  63.         // line 10
  64.         echo twig_include($this->env$context"includes/default-content.html.twig");
  65.         echo "
  66.             </div>
  67.         </div>
  68.     </div>
  69.     <section class=\"\">
  70.         <div class=\"container pb-5\">
  71.             <div class=\"row\">
  72.                 <div class=\"col-12\">
  73.                     ";
  74.         // line 22
  75.         if (array_key_exists("news"$context)) {
  76.             // line 23
  77.             echo "                        <div class=\"row row-cols-lg-3 g-3\">
  78.                             ";
  79.             // line 25
  80.             if (array_key_exists("news"$context)) {
  81.                 // line 26
  82.                 echo "                                ";
  83.                 $context['_parent'] = $context;
  84.                 $context['_seq'] = twig_ensure_traversable((isset($context["news"]) || array_key_exists("news"$context) ? $context["news"] : (function () { throw new RuntimeError('Variable "news" does not exist.'26$this->source); })()));
  85.                 foreach ($context['_seq'] as $context["_key"] => $context["new"]) {
  86.                     // line 27
  87.                     echo "                                    <div class=\"col homenews-item\">
  88.                                         <div class=\"bg-light-grey h-100\">
  89.                                             ";
  90.                     // line 31
  91.                     if ( !twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["new"], "getEditable", [=> "publicationHeader"], "method"falsefalsetrue31), "isEmpty", [], "method"falsefalsetrue31)) {
  92.                         // line 32
  93.                         echo "                                                <a href=\"";
  94.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["new"], "getFullPath", [], "method"falsefalsetrue32), 32$this->source), "html"nulltrue);
  95.                         echo "\">
  96.                                                     <div class=\"image position-relative\">
  97.                                                         <img class=\"w-100 h-auto\"
  98.                                                              src=\"";
  99.                         // line 36
  100.                         if (twig_get_attribute($this->env$this->source$context["new"], "getEditable", [=> "publicationHeader"], "method"falsefalsetrue36)) {
  101.                             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["new"], "getEditable", [=> "publicationHeader"], "method"falsefalsetrue36), "getThumbnail", [=> "homepage-news"], "method"falsefalsetrue36), 36$this->source), "html"nulltrue);
  102.                         } else {
  103.                             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$this->extensions['App\Twig\Extension\PlaceholderImageExtension']->placeholder(), "getThumbnail", [=> "homepage-news"], "method"falsefalsetrue36), 36$this->source), "html"nulltrue);
  104.                         }
  105.                         echo "\">
  106.                                                     </div>
  107.                                                 </a>
  108.                                             ";
  109.                     }
  110.                     // line 40
  111.                     echo "                                            <div class=\"p-3 h-100\">
  112.                                                 <header class=\"mt-2 mb-1 text-primary fs-3\">
  113.                                                     <a href=\"";
  114.                     // line 43
  115.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["new"], "getFullPath", [], "method"falsefalsetrue43), 43$this->source), "html"nulltrue);
  116.                     echo "\">
  117.                                                         ";
  118.                     // line 44
  119.                     echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["new"], "getEditable", [=> "newsTitle"], "method"falsefalsetrue44), 44$this->source), "html"nulltrue);
  120.                     echo "</a>
  121.                                                 </header>
  122.                                                 ";
  123.                     // line 47
  124.                     if ( !twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["new"], "getEditable", [=> "publicationDate"], "method"falsefalsetrue47), "isEmpty", [], "method"falsefalsetrue47)) {
  125.                         // line 48
  126.                         echo "                                                    ";
  127.                         // line 49
  128.                         echo "                                                    <small class=\"text-uppercase fst-italic text-black text-opacity-50\">";
  129.                         echo twig_escape_filter($this->env$this->extensions['Twig\Extra\Intl\IntlExtension']->formatDate($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["new"], "getEditable", [=> "publicationDate"], "method"falsefalsetrue49), "getData", [], "method"falsefalsetrue49), 49$this->source), "none""d MMM Y"null"gregorian"$this->sandbox->ensureToStringAllowed(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.'49$this->source); })()), "request", [], "any"falsefalsetrue49), "locale", [], "any"falsefalsetrue49), 49$this->source)), "html"nulltrue);
  130.                         echo "</small>
  131.                                                 ";
  132.                     }
  133.                     // line 51
  134.                     echo "
  135.                                                 ";
  136.                     // line 52
  137.                     if (twig_get_attribute($this->env$this->source$context["new"], "getEditable", [=> "newsContent"], "method"truetruetrue52)) {
  138.                         // line 53
  139.                         echo "                                                    <div class=\"d-inline-block mt-2\">
  140.                                                         <p><a class=\"text-black\" href=\"";
  141.                         // line 54
  142.                         echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["new"], "getFullPath", [], "method"falsefalsetrue54), 54$this->source), "html"nulltrue);
  143.                         echo "\">
  144.                                                                 ";
  145.                         // line 55
  146.                         echo twig_escape_filter($this->env$this->extensions['App\Twig\Extension\TruncateExtension']->truncateContent($this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["new"], "getEditable", [=> "newsContent"], "method"falsefalsetrue55), 55$this->source), 230"..."), "html"nulltrue);
  147.                         echo "</a>
  148.                                                         </p>
  149.                                                     </div>
  150.                                                 ";
  151.                     }
  152.                     // line 59
  153.                     echo "
  154.                                                 ";
  155.                     // line 69
  156.                     echo "                                            </div>
  157.                                         </div>
  158.                                     </div>
  159.                                 ";
  160.                 }
  161.                 $_parent $context['_parent'];
  162.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['new'], $context['_parent'], $context['loop']);
  163.                 $context array_intersect_key($context$_parent) + $_parent;
  164.                 // line 74
  165.                 echo "                            ";
  166.             }
  167.             // line 75
  168.             echo "
  169.                             ";
  170.             // line 81
  171.             echo "                        </div>
  172.                         <div class=\"load-more-items py-3\">
  173.                             <div class=\"aligner\">
  174.                                 <div class=\"loading-circle loading-bar-primary loading-bg-default mx-auto\"></div>
  175.                             </div>
  176.                             <input type=\"hidden\" class=\"pageCounter\" value=\"1\">
  177.                         </div>
  178.                     ";
  179.         }
  180.         // line 91
  181.         echo "                </div>
  182.             </div>
  183.         </div>
  184.     </section>
  185. ";
  186.         
  187.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  188.         
  189.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  190.     }
  191.     public function getTemplateName()
  192.     {
  193.         return "news/overview.html.twig";
  194.     }
  195.     public function isTraitable()
  196.     {
  197.         return false;
  198.     }
  199.     public function getDebugInfo()
  200.     {
  201.         return array (  211 => 91,  199 => 81,  195 => 75,  192 => 74,  182 => 69,  179 => 59,  172 => 55,  168 => 54,  165 => 53,  163 => 52,  160 => 51,  154 => 49,  152 => 48,  150 => 47,  144 => 44,  140 => 43,  135 => 40,  124 => 36,  116 => 32,  114 => 31,  108 => 27,  103 => 26,  101 => 25,  97 => 23,  95 => 22,  80 => 10,  73 => 6,  69 => 4,  59 => 3,  37 => 1,);
  202.     }
  203.     public function getSourceContext()
  204.     {
  205.         return new Source("{% extends base_layout() %}
  206. {% block content %}
  207.     <div class=\"container mb-5\">
  208.         {{ include('includes/title.html.twig') }}
  209.         <div class=\"row\">
  210.             <div class=\"col-12\">
  211.                 {{ include('includes/default-content.html.twig') }}
  212.             </div>
  213.         </div>
  214.     </div>
  215.     <section class=\"\">
  216.         <div class=\"container pb-5\">
  217.             <div class=\"row\">
  218.                 <div class=\"col-12\">
  219.                     {% if news is defined %}
  220.                         <div class=\"row row-cols-lg-3 g-3\">
  221.                             {% if news is defined %}
  222.                                 {% for new in news %}
  223.                                     <div class=\"col homenews-item\">
  224.                                         <div class=\"bg-light-grey h-100\">
  225.                                             {% if not new.getEditable('publicationHeader').isEmpty() %}
  226.                                                 <a href=\"{{ new.getFullPath() }}\">
  227.                                                     <div class=\"image position-relative\">
  228.                                                         <img class=\"w-100 h-auto\"
  229.                                                              src=\"{% if new.getEditable('publicationHeader') %}{{ new.getEditable('publicationHeader').getThumbnail('homepage-news') }}{% else %}{{ app_placeholderImage().getThumbnail('homepage-news') }}{% endif %}\">
  230.                                                     </div>
  231.                                                 </a>
  232.                                             {% endif %}
  233.                                             <div class=\"p-3 h-100\">
  234.                                                 <header class=\"mt-2 mb-1 text-primary fs-3\">
  235.                                                     <a href=\"{{ new.getFullPath() }}\">
  236.                                                         {{ new.getEditable('newsTitle') }}</a>
  237.                                                 </header>
  238.                                                 {% if not new.getEditable('publicationDate').isEmpty() %}
  239.                                                     {#                        <small class=\"text-uppercase\">{{ app_blog_date(article.getEditable('publicationDate').getData()) }}</small>#}
  240.                                                     <small class=\"text-uppercase fst-italic text-black text-opacity-50\">{{ new.getEditable('publicationDate').getData()|format_date('none', 'd MMM Y', null, 'gregorian', app.request.locale) }}</small>
  241.                                                 {% endif %}
  242.                                                 {% if new.getEditable('newsContent') is defined %}
  243.                                                     <div class=\"d-inline-block mt-2\">
  244.                                                         <p><a class=\"text-black\" href=\"{{ new.getFullPath() }}\">
  245.                                                                 {{ new.getEditable('newsContent')|truncate(230, '...') }}</a>
  246.                                                         </p>
  247.                                                     </div>
  248.                                                 {% endif %}
  249.                                                 {#
  250.                                                 <div class=\"position-absolute pos-b-0 mt-1\">
  251.                                                     <a class=\"btn btn-primary\" href=\"{{ new.getFullPath() }}\">
  252.                                                                 <span class=\"mr-2\">
  253.                                                                     {{ 'lees meer'|trans }}
  254.                                                                 </span>
  255.                                                         <i class=\"fas fa-long-arrow-alt-right\"></i>
  256.                                                     </a>
  257.                                                 </div> #}
  258.                                             </div>
  259.                                         </div>
  260.                                     </div>
  261.                                 {% endfor %}
  262.                             {% endif %}
  263.                             {#
  264.                             {{ include('includes/news/detail.html.twig', {
  265.                                 'news': news
  266.                             }) }} #}
  267.                         </div>
  268.                         <div class=\"load-more-items py-3\">
  269.                             <div class=\"aligner\">
  270.                                 <div class=\"loading-circle loading-bar-primary loading-bg-default mx-auto\"></div>
  271.                             </div>
  272.                             <input type=\"hidden\" class=\"pageCounter\" value=\"1\">
  273.                         </div>
  274.                     {% endif %}
  275.                 </div>
  276.             </div>
  277.         </div>
  278.     </section>
  279. {% endblock %}""news/overview.html.twig""/var/www/clients/client2/web42/web/pc/templates/news/overview.html.twig");
  280.     }
  281.     
  282.     public function checkSecurity()
  283.     {
  284.         static $tags = array("if" => 22"for" => 26);
  285.         static $filters = array("escape" => 32"format_date" => 49"truncate" => 55);
  286.         static $functions = array("include" => 6"app_placeholderImage" => 36"base_layout" => 1);
  287.         try {
  288.             $this->sandbox->checkSecurity(
  289.                 ['if''for'],
  290.                 ['escape''format_date''truncate'],
  291.                 ['include''app_placeholderImage''base_layout']
  292.             );
  293.         } catch (SecurityError $e) {
  294.             $e->setSourceContext($this->source);
  295.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  296.                 $e->setTemplateLine($tags[$e->getTagName()]);
  297.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  298.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  299.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  300.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  301.             }
  302.             throw $e;
  303.         }
  304.     }
  305. }