<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;

/* home/themes.twig */
class __TwigTemplate_f4ecdd2585223a11e51840334e40f3d4 extends Template
{
    private $source;
    private $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 = [])
    {
        $macros = $this->macros;
        // line 1
        echo "<form method=\"post\" action=\"";
        echo PhpMyAdmin\Url::getFromRoute("/themes/set");
        echo "\" class=\"disableAjax\">
  ";
        // line 2
        echo PhpMyAdmin\Url::getHiddenInputs();
        echo "
  <div class=\"row row-cols-1 row-cols-md-2 row-cols-lg-3 row-cols-xl-4 g-4\">
    ";
        // line 4
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["themes"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["theme"]) {
            // line 5
            echo "      <div class=\"col\">
        <div class=\"card\">
          <img src=\"./themes/";
            // line 7
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["theme"], "id", [], "any", false, false, false, 7), "html", null, true);
            echo "/screen.png\" class=\"card-img-top\" alt=\"";
            echo twig_escape_filter($this->env, twig_sprintf(_gettext("Screenshot of the %s theme."), twig_get_attribute($this->env, $this->source, $context["theme"], "name", [], "any", false, false, false, 7)), "html", null, true);
            echo "\">
          <div class=\"card-body\">
            <h5 class=\"card-title\">";
            // line 9
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["theme"], "name", [], "any", false, false, false, 9), "html", null, true);
            echo " <small>(";
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["theme"], "version", [], "any", false, false, false, 9), "html", null, true);
            echo ")</small></h5>
          </div>
          <div class=\"card-footer\">
            <button type=\"submit\" class=\"btn btn-primary\" name=\"set_theme\" value=\"";
            // line 12
            echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["theme"], "id", [], "any", false, false, false, 12), "html", null, true);
            echo "\">";
// l10n: Choose the theme button in the themes list modal
echo _gettext("Take it");
            echo "</button>
          </div>
        </div>
      </div>
    ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['theme'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 17
        echo "  </div>
</form>
";
    }

    public function getTemplateName()
    {
        return "home/themes.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  84 => 17,  70 => 12,  62 => 9,  55 => 7,  51 => 5,  47 => 4,  42 => 2,  37 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("", "home/themes.twig", "/var/www/html/myadmin/templates/home/themes.twig");
    }
}
