parent = $this->loadTemplate("partials/base.html.twig", "config.html.twig", 1);
$this->blocks = array(
'stylesheets' => array($this, 'block_stylesheets'),
'javascripts' => array($this, 'block_javascripts'),
'titlebar' => array($this, 'block_titlebar'),
'content_top' => array($this, 'block_content_top'),
'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["config_slug"] = twig_escape_filter($this->env, $this->getAttribute(($context["uri"] ?? null), "basename", array()));
// line 4
$context["isInfo"] = (($context["config_slug"] ?? null) == "info");
// line 6
$context["tab_title_string"] = ("PLUGIN_ADMIN." . twig_upper_filter($this->env, ($context["config_slug"] ?? null)));
// line 7
$context["tab_title"] = ((($this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter(($context["tab_title_string"] ?? null)) == ($context["tab_title_string"] ?? null))) ? (twig_capitalize_string_filter($this->env, ($context["config_slug"] ?? null))) : ($this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter(($context["tab_title_string"] ?? null))));
// line 8
$context["title"] = (($this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CONFIGURATION") . ": ") . ($context["tab_title"] ?? null));
// line 10
if ( !($context["isInfo"] ?? null)) {
// line 11
$context["data"] = $this->getAttribute(($context["admin"] ?? null), "data", array(0 => ("config/" . ($context["config_slug"] ?? null))), "method");
}
// line 1
$this->parent->display($context, array_merge($this->blocks, $blocks));
}
// line 14
public function block_stylesheets($context, array $blocks = array())
{
// line 15
echo " ";
$this->getAttribute(($context["assets"] ?? null), "addCss", array(0 => (($context["theme_url"] ?? null) . "/css/codemirror/codemirror.css")), "method");
// line 16
echo " ";
$this->displayParentBlock("stylesheets", $context, $blocks);
echo "
";
}
// line 19
public function block_javascripts($context, array $blocks = array())
{
// line 20
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
";
}
// line 23
public function block_titlebar($context, array $blocks = array())
{
// line 24
echo "
";
// line 30
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CONFIGURATION"), "html", null, true);
echo " - ";
echo twig_escape_filter($this->env, ($context["tab_title"] ?? null), "html", null, true);
echo "
";
}
// line 33
public function block_content_top($context, array $blocks = array())
{
// line 34
echo " ";
if ($this->getAttribute($this->getAttribute(($context["data"] ?? null), "file", array()), "filename", array())) {
// line 35
echo " ";
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.SAVE_LOCATION"), "html", null, true);
echo ": ";
echo twig_escape_filter($this->env, twig_replace_filter($this->getAttribute($this->getAttribute(($context["data"] ?? null), "file", array()), "filename", array()), array(($context["base_path"] ?? null) => "")), "html", null, true);
echo "
";
}
// line 37
echo "
";
}
// line 75
public function block_content($context, array $blocks = array())
{
// line 76
echo " ";
if ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize(array(0 => ("admin.configuration_" . ($context["config_slug"] ?? null)), 1 => "admin.super"))) {
// line 77
echo " ";
if (($context["isInfo"] ?? null)) {
// line 78
echo "
";
// line 79
echo $this->getAttribute(($context["admin"] ?? null), "phpinfo", array());
echo "
";
} else {
// line 82
echo " ";
$this->loadTemplate("partials/blueprints.html.twig", "config.html.twig", 82)->display(array_merge($context, array("blueprints" => $this->getAttribute(($context["data"] ?? null), "blueprints", array()), "data" => ($context["data"] ?? null))));
// line 83
echo " ";
}
// line 84
echo " ";
}
// line 85
echo " ";
$this->loadTemplate("partials/modal-changes-detected.html.twig", "config.html.twig", 85)->display($context);
}
public function getTemplateName()
{
return "config.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 258 => 85, 255 => 84, 252 => 83, 249 => 82, 243 => 79, 240 => 78, 237 => 77, 234 => 76, 231 => 75, 224 => 70, 218 => 67, 209 => 66, 207 => 65, 204 => 64, 198 => 63, 195 => 62, 188 => 59, 186 => 58, 175 => 57, 172 => 56, 169 => 55, 166 => 54, 162 => 53, 159 => 52, 153 => 49, 144 => 48, 142 => 47, 139 => 46, 133 => 43, 124 => 42, 122 => 41, 116 => 37, 108 => 35, 105 => 34, 102 => 33, 94 => 30, 91 => 29, 85 => 27, 83 => 26, 77 => 25, 74 => 24, 71 => 23, 64 => 20, 61 => 19, 54 => 16, 51 => 15, 48 => 14, 44 => 1, 41 => 11, 39 => 10, 37 => 8, 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' %}
{% set config_slug = uri.basename|e %}
{% set isInfo = (config_slug == 'info') %}
{% set tab_title_string = \"PLUGIN_ADMIN.\" ~ config_slug|upper %}
{% set tab_title = (tab_title_string|tu == tab_title_string ? config_slug|capitalize : tab_title_string|tu) %}
{% set title = \"PLUGIN_ADMIN.CONFIGURATION\"|tu ~ \": \" ~ tab_title %}
{% if not isInfo %}
{% set data = admin.data('config/' ~ config_slug) %}
{% endif %}
{% block stylesheets %}
{% do assets.addCss(theme_url ~ '/css/codemirror/codemirror.css') %}
{{ parent() }}
{% endblock %}
{% block javascripts %}
{{ parent() }}
{% endblock %}
{% block titlebar %}
{{ \"PLUGIN_ADMIN.CONFIGURATION\"|tu }} - {{ tab_title }}
{% endblock %}
{% block content_top %}
{% if data.file.filename %}
{{ \"PLUGIN_ADMIN.SAVE_LOCATION\"|tu }}: {{ data.file.filename|replace({(base_path):''}) }}
{% endif %}
{% endblock %}
{% block content %}
{% if authorize(['admin.configuration_' ~ config_slug, 'admin.super']) %}
{% if isInfo %}
{{ admin.phpinfo|raw }}
{% else %}
{% include 'partials/blueprints.html.twig' with { blueprints: data.blueprints, data: data } %}
{% endif %}
{% endif %}
{% include 'partials/modal-changes-detected.html.twig' %}
{% endblock %}
", "config.html.twig", "/mnt/data/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/config.html.twig");
}
}