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

"; // line 8 echo twig_escape_filter($this->env, ((($context["installing"] ?? null)) ? ($this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.AVAILABLE_PLUGINS")) : ($this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.INSTALLED_PLUGINS"))), "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 17 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->env->getExtension('Grav\Common\Twig\TwigExtension')->ksortFilter($this->getAttribute($this->getAttribute(($context["admin"] ?? null), "plugins", array(0 => !($context["installing"] ?? null)), "method"), "toArray", array()))); $context['_iterated'] = false; $context['loop'] = array( 'parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true, ); if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof Countable)) { $length = count($context['_seq']); $context['loop']['revindex0'] = $length - 1; $context['loop']['revindex'] = $length; $context['loop']['length'] = $length; $context['loop']['last'] = 1 === $length; } foreach ($context['_seq'] as $context["slug"] => $context["plugin"]) { // line 18 echo " "; $context["data"] = $this->getAttribute(($context["admin"] ?? null), "data", array(0 => ("plugins/" . $context["slug"])), "method"); // line 19 echo " "; $context["isTestingRelease"] = $this->getAttribute($this->getAttribute(($context["admin"] ?? null), "gpm", array()), "isTestingRelease", array(0 => $context["slug"]), "method"); // line 20 echo " "; $context["releaseDate"] = (($this->getAttribute($context["plugin"], "date", array())) ? ($this->getAttribute($context["plugin"], "date", array())) : ($this->getAttribute($this->getAttribute($this->getAttribute(($context["admin"] ?? null), "gpm", array()), "findPackage", array(0 => $context["slug"], 1 => true), "method"), "date", array()))); // line 21 echo " env, twig_urlencode_filter($context["slug"]), "html", null, true); echo "\" data-gpm-name=\""; echo twig_escape_filter($this->env, $this->getAttribute($context["plugin"], "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["plugin"], "author", array()), "name", array()), "html", null, true); echo "\" data-gpm-official=\""; echo (($this->getAttribute(($context["admin"] ?? null), "isTeamGrav", array(0 => $context["plugin"]), "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 "\"> "; $context['_iterated'] = true; ++$context['loop']['index0']; ++$context['loop']['index']; $context['loop']['first'] = false; if (isset($context['loop']['length'])) { --$context['loop']['revindex0']; --$context['loop']['revindex']; $context['loop']['last'] = 0 === $context['loop']['revindex0']; } } if (!$context['_iterated']) { // line 69 echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['slug'], $context['plugin'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 71 echo "
env, $this->getAttribute($context["plugin"], "icon", array()), "html", null, true); echo "\"> env, ($context["base_url_relative"] ?? null), "html", null, true); echo "/plugins/"; echo twig_escape_filter($this->env, twig_urlencode_filter($context["slug"]), "html", null, true); echo "\">"; echo twig_escape_filter($this->env, $this->getAttribute($context["plugin"], "name", array()), "html", null, true); echo " "; // line 26 if ($this->getAttribute(($context["admin"] ?? null), "isTeamGrav", array(0 => $context["plugin"]), "method")) { // line 27 echo " env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.GRAV_OFFICIAL_PLUGIN"), "html", null, true); echo "\"> "; } // line 29 echo " "; if ($this->getAttribute(($context["admin"] ?? null), "isPremiumProduct", array(0 => $context["plugin"]), "method")) { // line 30 echo " "; if ( !($context["gumroad_loaded"] ?? null)) { // line 31 echo " "; $context["gumroad_loaded"] = true; // line 32 echo " "; } // line 34 echo " "; echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.PREMIUM_PRODUCT"), "html", null, true); echo " "; } // line 36 echo " "; if ($this->getAttribute($context["plugin"], "symlink", array())) { // line 37 echo " env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.PLUGIN_SYMBOLICALLY_LINKED"), "html", null, true); echo "\"> "; } // line 41 echo " v"; echo twig_escape_filter($this->env, $this->getAttribute($context["plugin"], "version", array()), "html", null, true); echo " "; // line 42 if (($context["isTestingRelease"] ?? null)) { echo "test release"; } // line 43 echo " "; // line 45 if (( !($context["installing"] ?? null) && (($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($context["plugin"], "form", array()), "fields", array()), "enabled", array()), "type", array()) != "hidden") && ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($context["plugin"], "form", array()), "fields", array()), "tabs", array()), "fields", array()), "login", array()), "fields", array()), "enabled", array()), "type", array()) != "hidden")))) { // line 46 echo " getAttribute(($context["data"] ?? null), "get", array(0 => "enabled"), "method")) ? ("enabled") : ("disabled")); echo "\" href=\""; echo twig_escape_filter($this->env, $this->getAttribute(($context["uri"] ?? null), "addNonce", array(0 => (((((($context["base_url_relative"] ?? null) . "/plugins/") . $context["slug"]) . "/task") . $this->getAttribute($this->getAttribute(($context["config"] ?? null), "system", array()), "param_sep", array())) . (($this->getAttribute(($context["data"] ?? null), "get", array(0 => "enabled"), "method")) ? ("disable") : ("enable"))), 1 => "admin-form", 2 => "admin-nonce"), "method"), "html", null, true); echo "\"> getAttribute(($context["data"] ?? null), "get", array(0 => "enabled"), "method")) ? ("on") : ("off")); echo "\"> "; } elseif ( // line 49 ($context["installing"] ?? null)) { // line 50 echo " "; if (($this->getAttribute($context["plugin"], "premium", array()) && !$this->getAttribute(($context["admin"] ?? null), "license", array(0 => $this->getAttribute($context["plugin"], "slug", array())), "method"))) { // line 51 echo " "; if ( !($context["gumroad_loaded"] ?? null)) { // line 52 echo " "; $context["gumroad_loaded"] = true; // line 53 echo " "; } // line 55 echo " env, $this->getAttribute($this->getAttribute($context["plugin"], "premium", array()), "product_permalink", array()), "html", null, true); echo "\" target=\"_blank\" data-gumroad-single-product=\"true\"> "; echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("Buy Now"), "html", null, true); echo " "; } else { // line 57 echo " env, $this->getAttribute($context["plugin"], "slug", array()), "html", null, true); echo "\" data-plugin-action=\"start-package-installation\"> "; echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.INSTALL"), "html", null, true); echo " "; } // line 59 echo " "; } // line 60 echo "
"; // line 64 $this->loadTemplate("partials/plugin-data.html.twig", "partials/plugins-list.html.twig", 64)->display(array_merge($context, array("plugin" => $context["plugin"]))); // line 65 echo "
"; echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.OFFLINE_WARNING"), "html", null, true); echo "
"; // line 73 $this->loadTemplate("partials/modal-add-package.html.twig", "partials/plugins-list.html.twig", 73)->display(array_merge($context, array("type" => "plugin"))); // line 74 $this->loadTemplate("partials/modal-update-packages.html.twig", "partials/plugins-list.html.twig", 74)->display(array_merge($context, array("type" => "plugin"))); } public function getTemplateName() { return "partials/plugins-list.html.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 249 => 74, 247 => 73, 243 => 71, 234 => 69, 218 => 65, 216 => 64, 210 => 60, 207 => 59, 199 => 57, 191 => 55, 187 => 53, 184 => 52, 181 => 51, 178 => 50, 176 => 49, 171 => 47, 164 => 46, 162 => 45, 158 => 43, 154 => 42, 149 => 41, 141 => 37, 138 => 36, 132 => 34, 128 => 32, 125 => 31, 122 => 30, 119 => 29, 113 => 27, 111 => 26, 103 => 25, 99 => 24, 80 => 22, 77 => 21, 74 => 20, 71 => 19, 68 => 18, 50 => 17, 42 => 12, 35 => 8, 32 => 7, 30 => 6, 26 => 4, 24 => 3, 21 => 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("{% set gumroad_loaded = false %}
{% if installing %} {% include 'partials/release-toggle.html.twig' %} {% endif %} {% include 'partials/list-sort.html.twig' with { list_view: 'plugins' } %}

{{ installing ? \"PLUGIN_ADMIN.AVAILABLE_PLUGINS\"|tu : \"PLUGIN_ADMIN.INSTALLED_PLUGINS\"|tu }}

{% for slug, plugin in admin.plugins(not installing).toArray|ksort %} {% set data = admin.data('plugins/' ~ slug) %} {% set isTestingRelease = admin.gpm.isTestingRelease(slug) %} {% set releaseDate = plugin.date ?: admin.gpm.findPackage(slug, true).date %} {% else %} {% endfor %}
{{ plugin.name }} {% if admin.isTeamGrav(plugin) %} {% endif %} {% if admin.isPremiumProduct(plugin) %} {% if not gumroad_loaded %} {% set gumroad_loaded = true %} {% endif %} {{ \"PLUGIN_ADMIN.PREMIUM_PRODUCT\"|tu }} {% endif %} {% if plugin.symlink %} {% endif %} v{{ plugin.version }} {% if isTestingRelease %}test release{% endif %} {% if (not installing and (plugin.form.fields.enabled.type != 'hidden' and plugin.form.fields.tabs.fields.login.fields.enabled.type != 'hidden')) %} {% elseif (installing) %} {% if (plugin.premium and not admin.license(plugin.slug)) %} {% if not gumroad_loaded %} {% set gumroad_loaded = true %} {% endif %} {{ \"Buy Now\"|tu }} {% else %} {{ \"PLUGIN_ADMIN.INSTALL\"|tu }} {% endif %} {% endif %}
{% include 'partials/plugin-data.html.twig' with { plugin: plugin } %}
{{ \"PLUGIN_ADMIN.OFFLINE_WARNING\"|tu }}
{% include 'partials/modal-add-package.html.twig' with { type: 'plugin' } %} {% include 'partials/modal-update-packages.html.twig' with { type: 'plugin' } %} ", "partials/plugins-list.html.twig", "/home/kevin/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/partials/plugins-list.html.twig"); } }