parent = $this->loadTemplate("partials/base.html.twig", "themes.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
if ($this->getAttribute(($context["admin"] ?? null), "route", array())) {
// line 4
$context["installing"] = (is_string($__internal_62b8b8f4b6426054e58af8cd2a95667079b12a0ceba7720cb80827bece622b94 = $this->getAttribute(($context["admin"] ?? null), "route", array())) && is_string($__internal_38d13f1312ef9f9145aa02a0def90d44714d34cd7c0e01a4dd2513f054c9a8ba = "install") && ('' === $__internal_38d13f1312ef9f9145aa02a0def90d44714d34cd7c0e01a4dd2513f054c9a8ba || 0 === strpos($__internal_62b8b8f4b6426054e58af8cd2a95667079b12a0ceba7720cb80827bece622b94, $__internal_38d13f1312ef9f9145aa02a0def90d44714d34cd7c0e01a4dd2513f054c9a8ba)));
// line 6
if (($context["installing"] ?? null)) {
// line 7
$context["title"] = $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.THEMES");
} else {
// line 9
$context["installed"] = true;
// line 12
$context["package"] = $this->getAttribute($this->getAttribute(($context["admin"] ?? null), "themes", array(0 => true), "method"), $this->getAttribute(($context["admin"] ?? null), "route", array()), array(), "array");
// line 13
if ( !($context["package"] ?? null)) {
// line 14
$context["package"] = $this->getAttribute($this->getAttribute(($context["admin"] ?? null), "themes", array(0 => false), "method"), $this->getAttribute(($context["admin"] ?? null), "route", array()), array(), "array");
// line 15
$context["installed"] = false;
}
// line 18
$context["theme"] = $this->getAttribute(($context["package"] ?? null), "toArray", array(), "method");
// line 19
$context["title"] = (($this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.THEME") . ": ") . twig_escape_filter($this->env, $this->getAttribute(($context["theme"] ?? null), "name", array())));
}
} else {
// line 22
$context["title"] = $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.THEMES");
}
// line 25
if (($this->getAttribute(($context["admin"] ?? null), "route", array()) || ($context["installing"] ?? null))) {
}
// line 1
$this->parent->display($context, array_merge($this->blocks, $blocks));
}
// line 26
public function block_stylesheets($context, array $blocks = array())
{
// line 27
echo " ";
$this->getAttribute(($context["assets"] ?? null), "addCss", array(0 => (($context["theme_url"] ?? null) . "/css/codemirror/codemirror.css")), "method");
// line 28
echo " ";
$this->displayParentBlock("stylesheets", $context, $blocks);
echo "
";
}
// line 31
public function block_javascripts($context, array $blocks = array())
{
// line 32
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
";
}
// line 36
public function block_titlebar($context, array $blocks = array())
{
// line 37
echo " ";
if (( !$this->getAttribute(($context["admin"] ?? null), "route", array()) || ($context["installing"] ?? null))) {
// line 38
echo "
";
// line 49
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.THEMES"), "html", null, true);
echo "
";
} else {
// line 51
echo " ";
if (($context["installed"] ?? null)) {
// line 52
echo "
";
} else {
// line 57
echo "
";
}
// line 61
echo " ";
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.THEME"), "html", null, true);
echo ": ";
echo twig_escape_filter($this->env, $this->getAttribute(($context["theme"] ?? null), "name", array()));
echo "
";
}
}
// line 65
public function block_messages($context, array $blocks = array())
{
// line 66
echo " ";
$this->displayParentBlock("messages", $context, $blocks);
echo "
";
// line 67
if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(($context["config"] ?? null), "plugins", array()), "admin", array()), "notifications", array()), "themes", array())) {
// line 68
echo "
";
}
}
// line 72
public function block_content($context, array $blocks = array())
{
// line 73
echo "
";
// line 74
if (( !$this->getAttribute(($context["admin"] ?? null), "route", array()) || ($context["installing"] ?? null))) {
// line 75
echo " ";
$this->loadTemplate("partials/themes-list.html.twig", "themes.html.twig", 75)->display($context);
// line 76
echo " ";
} else {
// line 77
echo " ";
if ((null === ($context["theme"] ?? null))) {
// line 78
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 80
echo " ";
$this->loadTemplate("partials/themes-details.html.twig", "themes.html.twig", 80)->display($context);
// line 81
echo " ";
}
// line 82
echo "
";
}
public function getTemplateName()
{
return "themes.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 223 => 82, 220 => 81, 217 => 80, 211 => 78, 208 => 77, 205 => 76, 202 => 75, 200 => 74, 197 => 73, 194 => 72, 188 => 68, 186 => 67, 181 => 66, 178 => 65, 168 => 61, 160 => 58, 157 => 57, 151 => 54, 145 => 53, 142 => 52, 139 => 51, 134 => 49, 131 => 48, 128 => 47, 122 => 45, 120 => 44, 114 => 43, 107 => 42, 99 => 40, 97 => 39, 94 => 38, 91 => 37, 88 => 36, 81 => 32, 78 => 31, 71 => 28, 68 => 27, 65 => 26, 61 => 1, 58 => 25, 55 => 22, 51 => 19, 49 => 18, 46 => 15, 44 => 14, 42 => 13, 40 => 12, 38 => 9, 35 => 7, 33 => 6, 31 => 4, 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' %}
{% if admin.route %}
{% set installing = admin.route starts with 'install' %}
{% if installing %}
{% set title = \"PLUGIN_ADMIN.THEMES\"|tu %}
{% else %}
{% set installed = true %}
{# Try installed packages first, then remote #}
{% set package = admin.themes(true)[admin.route] %}
{% if (not package) %}
{% set package = admin.themes(false)[admin.route] %}
{% set installed = false %}
{% endif %}
{% set theme = package.toArray() %}
{% set title = \"PLUGIN_ADMIN.THEME\"|tu ~ \": \" ~ theme.name|e %}
{% endif %}
{% else %}
{% set title = \"PLUGIN_ADMIN.THEMES\"|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.THEMES\"|tu }}
{% else %}
{% if (installed) %}
{% else %}
{% endif %}
{{ \"PLUGIN_ADMIN.THEME\"|tu }}: {{ theme.name|e }}
{% endif %}
{% endblock %}
{% block messages %}
{{ parent() }}
{% if config.plugins.admin.notifications.themes %}
{% endif %}
{% endblock %}
{% block content %}
{% if not admin.route or installing %}
{% include 'partials/themes-list.html.twig' %}
{% else %}
{% if theme is null %}
{{redirect_me(base_url_relative ~ '/404')}}
{% endif %}
{% include 'partials/themes-details.html.twig' %}
{% endif %}
{% endblock %}
", "themes.html.twig", "/home/kevin/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/themes.html.twig");
}
}