<?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;

/* components/readme.twig */
class __TwigTemplate_768bd0ee26724ff80b7aec046c726a8f 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
        yield "<div id=\"readme\" class=\"my-4 ";
        yield (((($tmp = $this->env->getFunction('config')->getCallable()("readmes_first")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("order-first") : (null));
        yield "\" style=\"scroll-margin-top: 8rem;\">
    <div class=\"rounded-lg overflow-hidden shadow-md\">
        <header class=\"flex items-center bg-sky-600 px-4 py-3 text-white dark:bg-violet-700\">
            <i class=\"fas fa-book fa-lg pr-3\"></i> README.md
        </header>

        <article class=\"bg-slate-100 rounded-b-lg px-4 py-8 sm:px-6 md:px-8 lg:px-12 dark:bg-slate-900 dark:border-0 ";
        // line 7
        yield (((CoreExtension::getAttribute($this->env, $this->source, ($context["readme"] ?? null), "getExtension", [], "any", false, false, false, 7) == "md")) ? ("markdown") : ("font-mono"));
        yield "\" v-pre>
            ";
        // line 8
        if ((CoreExtension::getAttribute($this->env, $this->source, ($context["readme"] ?? null), "getExtension", [], "any", false, false, false, 8) == "md")) {
            // line 9
            yield "                ";
            yield $this->env->getFunction('markdown')->getCallable()(CoreExtension::getAttribute($this->env, $this->source, ($context["readme"] ?? null), "getContents", [], "any", false, false, false, 9));
            yield "
            ";
        } else {
            // line 11
            yield "                ";
            yield Twig\Extension\CoreExtension::nl2br($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["readme"] ?? null), "getContents", [], "any", false, false, false, 11), "html", null, true));
            yield "
            ";
        }
        // line 13
        yield "        </article>
    </div>
</div>
";
        yield from [];
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName(): string
    {
        return "components/readme.twig";
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  70 => 13,  64 => 11,  58 => 9,  56 => 8,  52 => 7,  42 => 1,);
    }

    public function getSourceContext(): Source
    {
        return new Source("", "components/readme.twig", "/var/www/vhosts/awxpokmt.host213.checkdomain.de/htdocs/playground/DirectoryLister/DirectoryLister-5.2.1/app/views/components/readme.twig");
    }
}
