Deprecated: Symfony\Component\Translation\t(): Implicitly marking parameter $domain as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/k/kasscaffolding/vendor/symfony/translation/Resources/functions.php on line 18

Deprecated: Symfony\Component\Dotenv\Dotenv::loadEnv(): Implicitly marking parameter $envKey as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/k/kasscaffolding/vendor/symfony/dotenv/Dotenv.php on line 110

Deprecated: Symfony\Component\Runtime\GenericRuntime::getResolver(): Implicitly marking parameter $reflector as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/k/kasscaffolding/vendor/symfony/runtime/GenericRuntime.php on line 89

Deprecated: Symfony\Component\Runtime\RuntimeInterface::getResolver(): Implicitly marking parameter $reflector as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/k/kasscaffolding/vendor/symfony/runtime/RuntimeInterface.php on line 26

Deprecated: Symfony\Component\Console\Input\ArgvInput::__construct(): Implicitly marking parameter $argv as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/k/kasscaffolding/vendor/symfony/console/Input/ArgvInput.php on line 46

Deprecated: Symfony\Component\Console\Input\ArgvInput::__construct(): Implicitly marking parameter $definition as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/k/kasscaffolding/vendor/symfony/console/Input/ArgvInput.php on line 46

Deprecated: Symfony\Component\Console\Input\Input::__construct(): Implicitly marking parameter $definition as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/k/kasscaffolding/vendor/symfony/console/Input/Input.php on line 36

Deprecated: Constant E_STRICT is deprecated in /var/www/html/k/kasscaffolding/vendor/symfony/error-handler/ErrorHandler.php on line 58

Deprecated: Constant E_STRICT is deprecated in /var/www/html/k/kasscaffolding/vendor/symfony/error-handler/ErrorHandler.php on line 76
Symfony Profiler

var/cache/dev/twig/40/408f0db3ab2c553c0cb0e4bbcd656172.php line 56

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. /* @theme/news/embedNewsOverview.html.twig */
  14. class __TwigTemplate_2c312dfe78058b23b1e3743e3af0bc5d 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""@theme/news/embedNewsOverview.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""@theme/news/embedNewsOverview.html.twig"));
  33.         // line 1
  34.         echo "
  35. <div class=\"container\">
  36.     <div class=\"row\">
  37.         ";
  38.         // line 4
  39.         $context['_parent'] = $context;
  40.         $context['_seq'] = twig_ensure_traversable((isset($context["articles"]) || array_key_exists("articles"$context) ? $context["articles"] : (function () { throw new RuntimeError('Variable "articles" does not exist.'4$this->source); })()));
  41.         $context['_iterated'] = false;
  42.         foreach ($context['_seq'] as $context["_key"] => $context["article"]) {
  43.             // line 5
  44.             echo "            <div class=\"md:col-6 col-12\">
  45.                 <a class=\"block mb-12 img-hover\" href=\"";
  46.             // line 6
  47.             echo twig_escape_filter($this->env$this->extensions['App\Twig\TwigExtension']->{closure:App\Twig\TwigExtension::getFunctions():44}(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"falsefalsefalse6), twig_get_attribute($this->env$this->source$context["article"], "linkedPageId", [], "any"falsefalsefalse6), ["news_slug" => twig_get_attribute($this->env$this->source$context["article"], "slug", [], "any"falsefalsefalse6)]), "html"nulltrue);
  48.             echo "\">
  49.                     <div class=\"article-img\">
  50.                         <img class=\"max-w-full h-auto mb-8\" src=\"";
  51.             // line 8
  52.             echo twig_escape_filter($this->env$this->extensions['App\Twig\TwigExtension']->{closure:App\Twig\TwigExtension::getFunctions():45}(("/" twig_get_attribute($this->env$this->source$context["article"], "getFullImagePath", [], "any"falsefalsefalse8)), "zoomCrop"1040720), "html"nulltrue);
  53.             echo "\" width=\"670\" height=\"464\" alt=\"";
  54.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["article"], "title", [], "any"falsefalsefalse8), "html"nulltrue);
  55.             echo "\" loading=\"lazy\" />
  56.                     </div>
  57.                     <p class=\"text-sm mb-0 text-secondary\"><strong>";
  58.             // line 10
  59.             echo $this->extensions['App\Twig\TwigExtension']->{closure:App\Twig\TwigExtension::getFunctions():51}($context["article"], "subtitle");
  60.             echo "</strong></p>
  61.                     <h3 class=\"capitalize text-dark mt-0 mb-0\">";
  62.             // line 11
  63.             echo $this->extensions['App\Twig\TwigExtension']->{closure:App\Twig\TwigExtension::getFunctions():51}($context["article"], "title");
  64.             echo "</h3>
  65.                     ";
  66.             // line 12
  67.             if (twig_get_attribute($this->env$this->source$context["article"], "publishDate", [], "any"falsefalsefalse12)) {
  68.                 // line 13
  69.                 echo "                        <p class=\"text-sm text-dark mb-0\">";
  70.                 echo twig_escape_filter($this->envtwig_date_format_filter($this->envtwig_get_attribute($this->env$this->source$context["article"], "publishDate", [], "any"falsefalsefalse13), "d F Y"), "html"nulltrue);
  71.                 echo "</p>
  72.                     ";
  73.             }
  74.             // line 15
  75.             echo "                </a>
  76.             </div>
  77.         ";
  78.             $context['_iterated'] = true;
  79.         }
  80.         if (!$context['_iterated']) {
  81.             // line 18
  82.             echo "            <div class=\"col-12\">
  83.                 <p>No news found</p>
  84.             </div>
  85.         ";
  86.         }
  87.         $_parent $context['_parent'];
  88.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['article'], $context['_parent'], $context['loop']);
  89.         $context array_intersect_key($context$_parent) + $_parent;
  90.         // line 22
  91.         echo "    </div>
  92. </div>
  93. ";
  94.         // line 25
  95.         echo $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->render($this->env, (isset($context["articles"]) || array_key_exists("articles"$context) ? $context["articles"] : (function () { throw new RuntimeError('Variable "articles" does not exist.'25$this->source); })()));
  96.         echo "
  97. ";
  98.         
  99.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  100.         
  101.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  102.     }
  103.     /**
  104.      * @codeCoverageIgnore
  105.      */
  106.     public function getTemplateName()
  107.     {
  108.         return "@theme/news/embedNewsOverview.html.twig";
  109.     }
  110.     /**
  111.      * @codeCoverageIgnore
  112.      */
  113.     public function isTraitable()
  114.     {
  115.         return false;
  116.     }
  117.     /**
  118.      * @codeCoverageIgnore
  119.      */
  120.     public function getDebugInfo()
  121.     {
  122.         return array (  105 => 25,  100 => 22,  91 => 18,  84 => 15,  78 => 13,  76 => 12,  72 => 11,  68 => 10,  61 => 8,  56 => 6,  53 => 5,  48 => 4,  43 => 1,);
  123.     }
  124.     public function getSourceContext()
  125.     {
  126.         return new Source("
  127. <div class=\"container\">
  128.     <div class=\"row\">
  129.         {% for article in articles %}
  130.             <div class=\"md:col-6 col-12\">
  131.                 <a class=\"block mb-12 img-hover\" href=\"{{ generatePath( app.request, article.linkedPageId, {'news_slug' : article.slug } ) }}\">
  132.                     <div class=\"article-img\">
  133.                         <img class=\"max-w-full h-auto mb-8\" src=\"{{ imageCache('/' ~ article.getFullImagePath, 'zoomCrop', 1040, 720) }}\" width=\"670\" height=\"464\" alt=\"{{ article.title }}\" loading=\"lazy\" />
  134.                     </div>
  135.                     <p class=\"text-sm mb-0 text-secondary\"><strong>{{ allowInlineEditor(article, 'subtitle')|raw }}</strong></p>
  136.                     <h3 class=\"capitalize text-dark mt-0 mb-0\">{{ allowInlineEditor(article, 'title')|raw }}</h3>
  137.                     {% if article.publishDate %}
  138.                         <p class=\"text-sm text-dark mb-0\">{{ article.publishDate|date('d F Y') }}</p>
  139.                     {% endif %}
  140.                 </a>
  141.             </div>
  142.         {% else %}
  143.             <div class=\"col-12\">
  144.                 <p>No news found</p>
  145.             </div>
  146.         {% endfor %}
  147.     </div>
  148. </div>
  149. {{ knp_pagination_render(articles) }}
  150. ""@theme/news/embedNewsOverview.html.twig""/var/www/html/k/kasscaffolding/templates/themes/theme/news/embedNewsOverview.html.twig");
  151.     }
  152. }