parent = false;
$this->blocks = array(
);
}
protected function doDisplay(array $context, array $blocks = array())
{
// line 1
echo "
";
// line 16
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->env->getExtension('Grav\Common\Twig\TwigExtension')->ksortFilter($this->getAttribute($this->getAttribute(($context["admin"] ?? null), "themes", array(0 => !($context["installing"] ?? null)), "method"), "toArray", array())));
$context['_iterated'] = false;
foreach ($context['_seq'] as $context["slug"] => $context["theme"]) {
// line 17
echo " ";
$context["state"] = "inactive";
// line 18
echo " ";
if (($context["installing"] ?? null)) {
$context["state"] = "installing";
}
// line 19
echo " ";
if (($this->getAttribute(($context["config"] ?? null), "get", array(0 => "system.pages.theme"), "method") == $context["slug"])) {
$context["state"] = "active";
}
// line 20
echo " ";
$context["isTestingRelease"] = $this->getAttribute($this->getAttribute(($context["admin"] ?? null), "gpm", array()), "isTestingRelease", array(0 => $context["slug"]), "method");
// line 21
echo " ";
$context["releaseDate"] = (($this->getAttribute($context["theme"], "date", array())) ? ($this->getAttribute($context["theme"], "date", array())) : ($this->getAttribute($this->getAttribute($this->getAttribute(($context["admin"] ?? null), "gpm", array()), "findPackage", array(0 => $context["slug"], 1 => true), "method"), "date", array())));
// line 22
echo "
env, ($context["state"] ?? null), "html", null, true);
echo "-theme\" data-gpm-theme=\"";
echo twig_escape_filter($this->env, twig_urlencode_filter($context["slug"]), "html", null, true);
echo "\" data-gpm-name=\"";
echo twig_escape_filter($this->env, $this->getAttribute($context["theme"], "name", array()), "html", null, true);
echo "\" data-gpm-release-date=\"";
echo twig_escape_filter($this->env, ($context["releaseDate"] ?? null), "html", null, true);
echo "\" data-gpm-author=\"";
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["theme"], "author", array()), "name", array()), "html", null, true);
echo "\" data-gpm-official=\"";
echo (($this->getAttribute(($context["admin"] ?? null), "isTeamGrav", array(0 => $context["theme"]), "method")) ? ("1") : ("2"));
echo "\" data-gpm-updatable=\"";
echo (($this->getAttribute($this->getAttribute(($context["admin"] ?? null), "gpm", array()), "isUpdatable", array(0 => $context["slug"]), "method")) ? ("1") : ("2"));
echo "\" data-gpm-enabled=\"";
echo (($this->getAttribute(($context["data"] ?? null), "get", array(0 => "enabled"), "method")) ? ("1") : ("2"));
echo "\" data-gpm-testing=\"";
echo ((($context["isTestingRelease"] ?? null)) ? ("1") : ("2"));
echo "\">
env, $this->getAttribute($context["theme"], "icon", array()), "html", null, true);
echo "\">
env, ($context["base_url_relative"] ?? null), "html", null, true);
echo "/themes/";
echo twig_escape_filter($this->env, twig_urlencode_filter($context["slug"]), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->getAttribute($context["theme"], "name", array()), "html", null, true);
echo "
";
// line 27
if ($this->getAttribute(($context["admin"] ?? null), "isTeamGrav", array(0 => $context["theme"]), "method")) {
// line 28
echo "
env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.GRAV_OFFICIAL_THEME"), "html", null, true);
echo "\">
";
}
// line 30
echo " ";
if ($this->getAttribute(($context["admin"] ?? null), "isPremiumProduct", array(0 => $context["theme"]), "method")) {
// line 31
echo "
";
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.PREMIUM_PRODUCT"), "html", null, true);
echo "
";
}
// line 33
echo " ";
if ($this->getAttribute($context["theme"], "symlink", array())) {
// line 34
echo "
env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.THEME_SYMBOLICALLY_LINKED"), "html", null, true);
echo "\">
";
}
// line 38
echo "
v";
echo twig_escape_filter($this->env, $this->getAttribute($context["theme"], "version", array()), "html", null, true);
echo "
";
// line 39
if (($context["isTestingRelease"] ?? null)) {
echo "
test release";
}
// line 40
echo "
";
// line 42
$context["thumb"] = ((($context["installing"] ?? null)) ? (("//getgrav.org/images/" . $this->getAttribute($context["theme"], "screenshot", array()))) : ($this->getAttribute($context["theme"], "thumbnail", array())));
// line 43
echo "
env, ($context["base_url_relative"] ?? null), "html", null, true);
echo "/themes/";
echo twig_escape_filter($this->env, twig_urlencode_filter($context["slug"]), "html", null, true);
echo "\">env, ($context["thumb"] ?? null), "html", null, true);
echo "\" />
";
// line 45
if ((($context["state"] ?? null) == "installing")) {
// line 46
echo "
";
} elseif (( // line 49
($context["state"] ?? null) == "active")) {
// line 50
echo "
";
// line 51
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.ACTIVE_THEME"), "html", null, true);
echo "
";
} else {
// line 54
echo "
env, $this->getAttribute(($context["uri"] ?? null), "addNonce", array(0 => (((((($context["base_url_relative"] ?? null) . "/themes/") . $context["slug"]) . "/task") . $this->getAttribute($this->getAttribute(($context["config"] ?? null), "system", array()), "param_sep", array())) . "activate"), 1 => "admin-form", 2 => "admin-nonce"), "method"), "html", null, true);
echo "\" class=\"gpm-actions\">
";
// line 55
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.ACTIVATE"), "html", null, true);
echo "
";
}
// line 58
echo "
";
$context['_iterated'] = true;
}
if (!$context['_iterated']) {
// line 60
echo "
";
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.OFFLINE_WARNING"), "html", null, true);
echo " |
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['slug'], $context['theme'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 62
echo "
{% for slug, theme in admin.themes(not installing).toArray|ksort %}
{% set state = 'inactive' %}
{% if (installing) %}{% set state = 'installing' %}{% endif %}
{% if (config.get('system.pages.theme') == slug) %}{% set state = 'active' %}{% endif %}
{% set isTestingRelease = admin.gpm.isTestingRelease(slug) %}
{% set releaseDate = theme.date ?: admin.gpm.findPackage(slug, true).date %}
{{ theme.name }}
{% if admin.isTeamGrav(theme) %}
{% endif %}
{% if admin.isPremiumProduct(theme) %}
{{ \"PLUGIN_ADMIN.PREMIUM_PRODUCT\"|tu }}
{% endif %}
{% if theme.symlink %}
{% endif %}
v{{ theme.version }}
{% if isTestingRelease %}
test release{% endif %}
{% set thumb = installing ? '//getgrav.org/images/' ~ theme.screenshot : theme.thumbnail %}
{% if (state == 'installing') %}
{% elseif state == 'active' %}
{{ \"PLUGIN_ADMIN.ACTIVE_THEME\"|tu }}
{% else %}
{{ \"PLUGIN_ADMIN.ACTIVATE\"|tu }}
{% endif %}
{% else %}
{{ \"PLUGIN_ADMIN.OFFLINE_WARNING\"|tu }} |
{% endfor %}