var/cache/dev/twig/08/0821b395927b6741bc7f939e577215a1.php line 68

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* @theme/news/embedNewsOverview.html.twig */
  16. class __TwigTemplate_16da15d052006fddd2fffbaff1d052cd extends Template
  17. {
  18. private Source $source;
  19. /**
  20. * @var array<string, Template>
  21. */
  22. private array $macros = [];
  23. public function __construct(Environment $env)
  24. {
  25. parent::__construct($env);
  26. $this->source = $this->getSourceContext();
  27. $this->parent = false;
  28. $this->blocks = [
  29. ];
  30. }
  31. protected function doDisplay(array $context, array $blocks = []): iterable
  32. {
  33. $macros = $this->macros;
  34. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@theme/news/embedNewsOverview.html.twig"));
  36. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@theme/news/embedNewsOverview.html.twig"));
  38. // line 1
  39. yield "<section class=\"news-overview\">
  40. ";
  41. // line 2
  42. if ((($tmp = (isset($context["featuredArticle"]) || array_key_exists("featuredArticle", $context) ? $context["featuredArticle"] : (function () { throw new RuntimeError('Variable "featuredArticle" does not exist.', 2, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  43. // line 3
  44. yield " ";
  45. yield $this->env->getRuntime('Symfony\UX\TwigComponent\Twig\ComponentRuntime')->render("FeaturedNewsArticle", ["article" => (isset($context["featuredArticle"]) || array_key_exists("featuredArticle", $context) ? $context["featuredArticle"] : (function () { throw new RuntimeError('Variable "featuredArticle" does not exist.', 3, $this->source); })())]);
  46. yield "
  47. ";
  48. }
  49. // line 5
  50. yield " <div class=\"container\">
  51. ";
  52. // line 6
  53. $context['_parent'] = $context;
  54. $context['_seq'] = CoreExtension::ensureTraversable((isset($context["articles"]) || array_key_exists("articles", $context) ? $context["articles"] : (function () { throw new RuntimeError('Variable "articles" does not exist.', 6, $this->source); })()));
  55. $context['_iterated'] = false;
  56. foreach ($context['_seq'] as $context["_key"] => $context["article"]) {
  57. // line 7
  58. yield " ";
  59. yield $this->env->getRuntime('Symfony\UX\TwigComponent\Twig\ComponentRuntime')->render("NewsThumbnail", ["article" => $context["article"]]);
  60. yield "
  61. ";
  62. $context['_iterated'] = true;
  63. }
  64. // line 8
  65. if (!$context['_iterated']) {
  66. // line 9
  67. yield " <div>No News Found</div>
  68. ";
  69. }
  70. $_parent = $context['_parent'];
  71. unset($context['_seq'], $context['_key'], $context['article'], $context['_parent'], $context['_iterated']);
  72. $context = array_intersect_key($context, $_parent) + $_parent;
  73. // line 11
  74. yield " </div>
  75. </section>
  76. <div class=\"conatiner text-center\">
  77. ";
  78. // line 14
  79. yield $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.', 14, $this->source); })()));
  80. yield "
  81. </div>
  82. ";
  83. // line 16
  84. yield $this->env->getRuntime('Symfony\UX\TwigComponent\Twig\ComponentRuntime')->render("WhatsAppBlock", ["alt" => "true"]);
  85. yield "
  86. ";
  87. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  88. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  89. yield from [];
  90. }
  91. /**
  92. * @codeCoverageIgnore
  93. */
  94. public function getTemplateName(): string
  95. {
  96. return "@theme/news/embedNewsOverview.html.twig";
  97. }
  98. /**
  99. * @codeCoverageIgnore
  100. */
  101. public function isTraitable(): bool
  102. {
  103. return false;
  104. }
  105. /**
  106. * @codeCoverageIgnore
  107. */
  108. public function getDebugInfo(): array
  109. {
  110. return array ( 93 => 16, 88 => 14, 83 => 11, 76 => 9, 74 => 8, 67 => 7, 62 => 6, 59 => 5, 53 => 3, 51 => 2, 48 => 1,);
  111. }
  112. public function getSourceContext(): Source
  113. {
  114. return new Source("<section class=\"news-overview\">
  115. {% if featuredArticle %}
  116. {{ component('FeaturedNewsArticle', { article: featuredArticle }) }}
  117. {% endif %}
  118. <div class=\"container\">
  119. {% for article in articles %}
  120. {{ component('NewsThumbnail', { article: article }) }}
  121. {% else %}
  122. <div>No News Found</div>
  123. {% endfor %}
  124. </div>
  125. </section>
  126. <div class=\"conatiner text-center\">
  127. {{ knp_pagination_render(articles) }}
  128. </div>
  129. {{ component('WhatsAppBlock', { alt: 'true' }) }}
  130. ", "@theme/news/embedNewsOverview.html.twig", "/var/www/html/t/taurushr/templates/themes/base/news/embedNewsOverview.html.twig");
  131. }
  132. }