parent = $this->loadTemplate("partials/base.html.twig", "plugins.html.twig", 1);
$this->blocks = array(
'stylesheets' => array($this, 'block_stylesheets'),
'javascripts' => array($this, 'block_javascripts'),
'titlebar' => array($this, 'block_titlebar'),
'messages' => array($this, 'block_messages'),
'content' => array($this, 'block_content'),
);
}
protected function doGetParent(array $context)
{
return "partials/base.html.twig";
}
protected function doDisplay(array $context, array $blocks = array())
{
// line 3
$context["plugin_slug"] = $this->getAttribute(($context["admin"] ?? null), "route", array());
// line 5
if (($context["plugin_slug"] ?? null)) {
// line 6
$context["installing"] = (is_string($__internal_f0cf81ce7681fda8f066184e9e8db4d5ef6086c109b9ff8a4ae05616dbb88373 = ($context["plugin_slug"] ?? null)) && is_string($__internal_5b12cae85121d9d6f71768c3760ec691341315eb682041435a4f11a2de7a791d = "install") && ('' === $__internal_5b12cae85121d9d6f71768c3760ec691341315eb682041435a4f11a2de7a791d || 0 === strpos($__internal_f0cf81ce7681fda8f066184e9e8db4d5ef6086c109b9ff8a4ae05616dbb88373, $__internal_5b12cae85121d9d6f71768c3760ec691341315eb682041435a4f11a2de7a791d)));
// line 8
if (($context["installing"] ?? null)) {
// line 9
$context["title"] = $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.PLUGINS");
} else {
// line 11
$context["installed"] = true;
// line 14
$context["package"] = $this->getAttribute($this->getAttribute(($context["admin"] ?? null), "plugins", array(0 => true), "method"), $this->getAttribute(($context["admin"] ?? null), "route", array()), array(), "array");
// line 15
if ( !($context["package"] ?? null)) {
// line 16
$context["package"] = $this->getAttribute($this->getAttribute(($context["admin"] ?? null), "plugins", array(0 => false), "method"), $this->getAttribute(($context["admin"] ?? null), "route", array()), array(), "array");
// line 17
$context["installed"] = false;
}
// line 20
$context["plugin"] = $this->getAttribute(($context["package"] ?? null), "toArray", array(), "method");
// line 21
$context["title"] = (($this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.PLUGIN") . ": ") . twig_escape_filter($this->env, $this->getAttribute(($context["plugin"] ?? null), "name", array())));
}
} else {
// line 24
$context["title"] = $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.PLUGINS");
}
// line 27
if (($this->getAttribute(($context["admin"] ?? null), "route", array()) || ($context["installing"] ?? null))) {
}
// line 1
$this->parent->display($context, array_merge($this->blocks, $blocks));
}
// line 28
public function block_stylesheets($context, array $blocks = array())
{
// line 29
echo " ";
$this->getAttribute(($context["assets"] ?? null), "addCss", array(0 => (($context["theme_url"] ?? null) . "/css/codemirror/codemirror.css")), "method");
// line 30
echo " ";
$this->displayParentBlock("stylesheets", $context, $blocks);
echo "
";
}
// line 33
public function block_javascripts($context, array $blocks = array())
{
// line 34
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
";
}
// line 38
public function block_titlebar($context, array $blocks = array())
{
// line 39
echo " ";
if (( !$this->getAttribute(($context["admin"] ?? null), "route", array()) || ($context["installing"] ?? null))) {
// line 40
echo "
";
// line 51
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.PLUGINS"), "html", null, true);
echo "
";
} else {
// line 53
echo " ";
if (($context["installed"] ?? null)) {
// line 54
echo "
";
} else {
// line 60
echo "
";
}
// line 64
echo "
";
// line 65
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.PLUGIN"), "html", null, true);
echo ": ";
echo twig_escape_filter($this->env, $this->getAttribute(($context["plugin"] ?? null), "name", array()));
echo "
";
}
}
// line 69
public function block_messages($context, array $blocks = array())
{
// line 70
echo " ";
$this->displayParentBlock("messages", $context, $blocks);
echo "
";
// line 71
if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", array()), "admin", array()), "notifications", array()), "plugins", array())) {
// line 72
echo "
";
}
}
// line 76
public function block_content($context, array $blocks = array())
{
// line 77
echo "
";
// line 78
if (( !$this->getAttribute(($context["admin"] ?? null), "route", array()) || ($context["installing"] ?? null))) {
// line 79
echo " ";
$this->loadTemplate("partials/plugins-list.html.twig", "plugins.html.twig", 79)->display($context);
// line 80
echo " ";
} else {
// line 81
echo " ";
if ((null === ($context["plugin"] ?? null))) {
// line 82
echo " ";
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Common\Twig\TwigExtension')->redirectFunc((($context["base_url_relative"] ?? null) . "/404")), "html", null, true);
echo "
";
}
// line 84
echo "
";
// line 85
$this->loadTemplate("partials/plugins-details.html.twig", "plugins.html.twig", 85)->display($context);
// line 86
echo " ";
}
// line 87
echo "
";
}
public function getTemplateName()
{
return "plugins.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 237 => 87, 234 => 86, 232 => 85, 229 => 84, 223 => 82, 220 => 81, 217 => 80, 214 => 79, 212 => 78, 209 => 77, 206 => 76, 200 => 72, 198 => 71, 193 => 70, 190 => 69, 181 => 65, 178 => 64, 170 => 61, 167 => 60, 160 => 57, 153 => 56, 147 => 55, 144 => 54, 141 => 53, 136 => 51, 133 => 50, 130 => 49, 124 => 47, 122 => 46, 116 => 45, 109 => 44, 101 => 42, 99 => 41, 96 => 40, 93 => 39, 90 => 38, 83 => 34, 80 => 33, 73 => 30, 70 => 29, 67 => 28, 63 => 1, 60 => 27, 57 => 24, 53 => 21, 51 => 20, 48 => 17, 46 => 16, 44 => 15, 42 => 14, 40 => 11, 37 => 9, 35 => 8, 33 => 6, 31 => 5, 29 => 3, 11 => 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("{% extends 'partials/base.html.twig' %}
{% set plugin_slug = admin.route %}
{% if plugin_slug %}
{% set installing = plugin_slug starts with 'install' %}
{% if installing %}
{% set title = \"PLUGIN_ADMIN.PLUGINS\"|tu %}
{% else %}
{% set installed = true %}
{# Try installed packages first, then remote #}
{% set package = admin.plugins(true)[admin.route] %}
{% if (not package) %}
{% set package = admin.plugins(false)[admin.route] %}
{% set installed = false %}
{% endif %}
{% set plugin = package.toArray() %}
{% set title = \"PLUGIN_ADMIN.PLUGIN\"|tu ~ \": \" ~ plugin.name|e %}
{% endif %}
{% else %}
{% set title = \"PLUGIN_ADMIN.PLUGINS\"|tu %}
{% endif %}
{% if admin.route or installing %}
{% block stylesheets %}
{% do assets.addCss(theme_url~'/css/codemirror/codemirror.css') %}
{{ parent() }}
{% endblock %}
{% block javascripts %}
{{ parent() }}
{% endblock %}
{% endif %}
{% block titlebar %}
{% if not admin.route or installing %}
{{ \"PLUGIN_ADMIN.PLUGINS\"|tu }}
{% else %}
{% if (installed) %}
{% else %}
{% endif %}
{{ \"PLUGIN_ADMIN.PLUGIN\"|tu }}: {{ plugin.name|e }}
{% endif %}
{% endblock %}
{% block messages %}
{{ parent() }}
{% if config.plugins.admin.notifications.plugins %}
{% endif %}
{% endblock %}
{% block content %}
{% if not admin.route or installing %}
{% include 'partials/plugins-list.html.twig' %}
{% else %}
{% if plugin is null %}
{{redirect_me(base_url_relative ~ '/404')}}
{% endif %}
{% include 'partials/plugins-details.html.twig' %}
{% endif %}
{% endblock %}
", "plugins.html.twig", "/home/kevin/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/plugins.html.twig");
}
}