<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;

/* /var/www/html/october_cms_projects/dil_website/themes/demo/pages/wiki/index.htm */
class __TwigTemplate_64acb7aa413d41f9a1d55c81c835abbe extends Template
{
    private Source $source;
    /**
     * @var array<string, Template>
     */
    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;
        // line 1
        $context["article"] = Cms\Twig\GetAttrNode::customGetAttribute($this->env, $this->source, ($context["wiki"] ?? null), "first", [], "method", false, false, false, 1);
        // line 2
        yield "
<div class=\"container\">
    <article class=\"wiki-article pb-3\">
        <h1 class=\"wiki-article-title mb-3\">";
        // line 5
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Cms\Twig\GetAttrNode::customGetAttribute($this->env, $this->source, ($context["article"] ?? null), "title", [], "any", false, false, false, 5), "html", null, true);
        yield "</h1>
        <p class=\"lead\">";
        // line 6
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Cms\Twig\GetAttrNode::customGetAttribute($this->env, $this->source, ($context["article"] ?? null), "summary_text", [], "any", false, false, false, 6), "html", null, true);
        yield "</p>

        <div class=\"wiki-banner mb-3\">
            ";
        // line 9
        if ((($tmp = Cms\Twig\GetAttrNode::customGetAttribute($this->env, $this->source, ($context["article"] ?? null), "banner", [], "any", false, false, false, 9)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 10
            yield "                <div class=\"text-banner\" style=\"background-image:url('";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Cms\Twig\GetAttrNode::customGetAttribute($this->env, $this->source, Cms\Twig\GetAttrNode::customGetAttribute($this->env, $this->source, ($context["article"] ?? null), "banner", [], "any", false, false, false, 10), "path", [], "any", false, false, false, 10), "html", null, true);
            yield "')\"></div>
            ";
        } else {
            // line 12
            yield "                <div class=\"text-banner\" style=\"background-image:url('";
            yield $this->extensions['Cms\Twig\Extension']->partialFunction("site/helpers/random-stock-image");
            yield "')\"></div>
            ";
        }
        // line 14
        yield "        </div>

        ";
        // line 16
        yield Cms\Twig\GetAttrNode::customGetAttribute($this->env, $this->source, ($context["article"] ?? null), "content", [], "any", false, false, false, 16);
        yield "
    </article>

    ";
        // line 19
        if ((($tmp = Cms\Twig\GetAttrNode::customGetAttribute($this->env, $this->source, ($context["article"] ?? null), "external_links", [], "any", false, false, false, 19)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 20
            yield "        <hr />
        <h2>External Links</h2>
        <ul class=\"bullet-list list-content\">
            ";
            // line 23
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(Cms\Twig\GetAttrNode::customGetAttribute($this->env, $this->source, ($context["article"] ?? null), "external_links", [], "any", false, false, false, 23));
            foreach ($context['_seq'] as $context["_key"] => $context["link"]) {
                // line 24
                yield "                <li><a href=\"";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Cms\Twig\GetAttrNode::customGetAttribute($this->env, $this->source, $context["link"], "link_url", [], "any", false, false, false, 24), "html", null, true);
                yield "\">";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Cms\Twig\GetAttrNode::customGetAttribute($this->env, $this->source, $context["link"], "link_text", [], "any", false, false, false, 24), "html", null, true);
                yield "</a></li>
            ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_key'], $context['link'], $context['_parent']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 26
            yield "        </ul>
    ";
        }
        // line 28
        yield "</div>";
        yield from [];
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName(): string
    {
        return "/var/www/html/october_cms_projects/dil_website/themes/demo/pages/wiki/index.htm";
    }

    /**
     * @codeCoverageIgnore
     */
    public function isTraitable(): bool
    {
        return false;
    }

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  109 => 28,  105 => 26,  94 => 24,  90 => 23,  85 => 20,  83 => 19,  77 => 16,  73 => 14,  67 => 12,  61 => 10,  59 => 9,  53 => 6,  49 => 5,  44 => 2,  42 => 1,);
    }

    public function getSourceContext(): Source
    {
        return new Source("{% set article = wiki.first() %}

<div class=\"container\">
    <article class=\"wiki-article pb-3\">
        <h1 class=\"wiki-article-title mb-3\">{{ article.title }}</h1>
        <p class=\"lead\">{{ article.summary_text }}</p>

        <div class=\"wiki-banner mb-3\">
            {% if article.banner %}
                <div class=\"text-banner\" style=\"background-image:url('{{ article.banner.path }}')\"></div>
            {% else %}
                <div class=\"text-banner\" style=\"background-image:url('{{ partial('site/helpers/random-stock-image') }}')\"></div>
            {% endif %}
        </div>

        {{ article.content|raw }}
    </article>

    {% if article.external_links %}
        <hr />
        <h2>External Links</h2>
        <ul class=\"bullet-list list-content\">
            {% for link in article.external_links %}
                <li><a href=\"{{ link.link_url }}\">{{ link.link_text }}</a></li>
            {% endfor %}
        </ul>
    {% endif %}
</div>", "/var/www/html/october_cms_projects/dil_website/themes/demo/pages/wiki/index.htm", "");
    }
}
