*/ private array $macros = []; public function __construct(Environment $env) { parent::__construct($env); $this->source = $this->getSourceContext(); $this->parent = false; $this->blocks = [ ]; } protected function doDisplay(array $context, array $blocks = []): iterable { $macros = $this->macros; $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"]; $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "partials/search-results.html.twig")); $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"]; $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "partials/search-results.html.twig")); // line 1 $context['_parent'] = $context; $context['_seq'] = CoreExtension::ensureTraversable(Twig\Extension\CoreExtension::batch((isset($context["searchResults"]) || array_key_exists("searchResults", $context) ? $context["searchResults"] : (function () { throw new RuntimeError('Variable "searchResults" does not exist.', 1, $this->source); })()), 2, [])); foreach ($context['_seq'] as $context["_key"] => $context["row"]) { // line 2 yield " "; $context['_parent'] = $context; $context['_seq'] = CoreExtension::ensureTraversable($context["row"]); foreach ($context['_seq'] as $context["_key"] => $context["column"]) { // line 3 yield " "; if (CoreExtension::getAttribute($this->env, $this->source, $context["column"], "url", [], "any", true, true, false, 3)) { // line 4 yield "
"; // line 6 if (CoreExtension::getAttribute($this->env, $this->source, $context["column"], "image", [], "any", true, true, false, 6)) { yield " env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["column"], "url", [], "any", false, false, false, 7), "html", null, true); yield "\" class=\"post-box__thumbnail\" style=\"background-image: url("; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["column"], "image", [], "any", false, false, false, 7), "html", null, true); yield ")\"> "; } else { // line 9 yield " env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["column"], "url", [], "any", false, false, false, 9), "html", null, true); yield "\" class=\"post-box__thumbnail\" style=\"\"> "; } // line 11 yield "

"; // line 14 if (CoreExtension::getAttribute($this->env, $this->source, $context["column"], "title", [], "any", true, true, false, 14)) { // line 15 yield " "; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["column"], "title", [], "any", false, false, false, 15), "html", null, true); yield " "; } else { // line 17 yield " Title here... "; } // line 19 yield "

"; // line 21 if (CoreExtension::getAttribute($this->env, $this->source, $context["column"], "excerpt", [], "any", true, true, false, 21)) { // line 22 yield " "; yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["column"], "excerpt", [], "any", false, false, false, 22), "html", null, true); yield " "; } else { // line 24 yield " Excerpt here... "; } // line 26 yield "
env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["column"], "url", [], "any", false, false, false, 28), "html", null, true); yield "\" class=\"btn btn-orange btn-sm\">Read More
"; } // line 33 yield " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_key'], $context['column'], $context['_parent']); $context = array_intersect_key($context, $_parent) + $_parent; } $_parent = $context['_parent']; unset($context['_seq'], $context['_key'], $context['row'], $context['_parent']); $context = array_intersect_key($context, $_parent) + $_parent; $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof); $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof); yield from []; } /** * @codeCoverageIgnore */ public function getTemplateName(): string { return "partials/search-results.html.twig"; } /** * @codeCoverageIgnore */ public function isTraitable(): bool { return false; } /** * @codeCoverageIgnore */ public function getDebugInfo(): array { return array ( 126 => 33, 118 => 28, 114 => 26, 110 => 24, 104 => 22, 102 => 21, 98 => 19, 94 => 17, 88 => 15, 86 => 14, 81 => 11, 75 => 9, 68 => 7, 64 => 6, 60 => 4, 57 => 3, 52 => 2, 48 => 1,); } public function getSourceContext(): Source { return new Source("{% for row in searchResults|batch(2, []) %} {% for column in row %} {% if column.url is defined %}
{% if column.image is defined %} {% else %} {% endif %}

{% if column.title is defined %} {{ column.title }} {% else %} Title here... {% endif %}

{% if column.excerpt is defined %} {{ column.excerpt }} {% else %} Excerpt here... {% endif %}
Read More
{% endif %} {% endfor %} {% endfor %}", "partials/search-results.html.twig", "/var/www/cds/app/templates/partials/search-results.html.twig"); } }