parent = false; $this->blocks = array( ); } protected function doDisplay(array $context, array $blocks = array()) { // line 1 echo "
"; // line 2 if (($context["installing"] ?? null)) { // line 3 echo " "; $this->loadTemplate("partials/release-toggle.html.twig", "partials/themes-list.html.twig", 3)->display($context); } // line 5 $this->loadTemplate("partials/list-sort.html.twig", "partials/themes-list.html.twig", 5)->display(array_merge($context, array("list_view" => "themes"))); // line 6 echo "

"; // line 7 echo twig_escape_filter($this->env, ((($context["installing"] ?? null)) ? ($this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.AVAILABLE_THEMES")) : ($this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.INSTALLED_THEMES"))), "html", null, true); echo "

env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.RESOURCE_FILTER"), "html", null, true); echo "\" data-gpm-filter>
"; // 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 "

"; // line 66 echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.SWITCHING_TO"), "html", null, true); echo " {theme_name}

"; // line 68 echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.SWITCHING_TO_DESCRIPTION"), "html", null, true); echo "

"; // line 71 echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.SWITCHING_TO_CONFIRMATION"), "html", null, true); echo " {theme_name}?


"; // line 76 echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CONTINUE"), "html", null, true); echo "
"; // line 81 $this->loadTemplate("partials/modal-add-package.html.twig", "partials/themes-list.html.twig", 81)->display(array_merge($context, array("type" => "theme"))); // line 82 $this->loadTemplate("partials/modal-update-packages.html.twig", "partials/themes-list.html.twig", 82)->display(array_merge($context, array("type" => "theme"))); } public function getTemplateName() { return "partials/themes-list.html.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 248 => 82, 246 => 81, 238 => 76, 234 => 75, 227 => 71, 221 => 68, 216 => 66, 210 => 62, 201 => 60, 195 => 58, 189 => 55, 184 => 54, 178 => 51, 175 => 50, 173 => 49, 166 => 47, 163 => 46, 161 => 45, 151 => 43, 149 => 42, 145 => 40, 141 => 39, 136 => 38, 128 => 34, 125 => 33, 119 => 31, 116 => 30, 110 => 28, 108 => 27, 100 => 26, 96 => 25, 75 => 23, 72 => 22, 69 => 21, 66 => 20, 61 => 19, 56 => 18, 53 => 17, 48 => 16, 40 => 11, 33 => 7, 30 => 6, 28 => 5, 24 => 3, 22 => 2, 19 => 1,); } /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */ public function getSource() { @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED); return $this->getSourceContext()->getCode(); } public function getSourceContext() { return new Twig_Source("
{% if installing %} {% include 'partials/release-toggle.html.twig' %} {% endif %} {% include 'partials/list-sort.html.twig' with { list_view: 'themes' } %}

{{ installing ? \"PLUGIN_ADMIN.AVAILABLE_THEMES\"|tu : \"PLUGIN_ADMIN.INSTALLED_THEMES\"|tu }}

{% 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 %}

{{ \"PLUGIN_ADMIN.SWITCHING_TO\"|tu }} {theme_name}

{{ \"PLUGIN_ADMIN.SWITCHING_TO_DESCRIPTION\"|tu }}

{{ \"PLUGIN_ADMIN.SWITCHING_TO_CONFIRMATION\"|tu }} {theme_name}?


{{ \"PLUGIN_ADMIN.CONTINUE\"|tu }}
{% include 'partials/modal-add-package.html.twig' with { type: 'theme' } %} {% include 'partials/modal-update-packages.html.twig' with { type: 'theme' } %} ", "partials/themes-list.html.twig", "/home/kevin/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/partials/themes-list.html.twig"); } }