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 "
env, ($context["base_url"] ?? null), "html", null, true); echo "\"> "; echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.BACK"), "html", null, true); echo " "; // line 26 if ($this->getAttribute($this->getAttribute(($context["data"] ?? null), "file", array()), "filename", array())) { // line 27 echo " "; } // line 29 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 41 if ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize(array(0 => "admin.configuration_system", 1 => "admin.super"))) { // line 42 echo " env, ($context["base_url_relative"] ?? null), "html", null, true); echo "/config/system\"> "; // line 43 echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.SYSTEM"), "html", null, true); echo " "; } // line 46 echo " "; // line 47 if ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize(array(0 => "admin.configuration_site", 1 => "admin.super"))) { // line 48 echo " env, ($context["base_url_relative"] ?? null), "html", null, true); echo "/config/site\"> "; // line 49 echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.SITE"), "html", null, true); echo " "; } // line 52 echo " "; // line 53 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["admin"] ?? null), "configurations", array())); foreach ($context['_seq'] as $context["_key"] => $context["configuration"]) { // line 54 echo " "; if ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize(array(0 => ("admin.configuration_" . $context["configuration"]), 1 => "admin.super"))) { // line 55 echo " "; $context["current_blueprints"] = $this->getAttribute($this->getAttribute($this->getAttribute(($context["admin"] ?? null), "data", array(0 => ("config/" . $context["configuration"])), "method"), "blueprints", array()), "toArray", array(), "method"); // line 56 echo " "; if ((((($context["configuration"] != "system") && ($context["configuration"] != "site")) && !$this->getAttribute($this->getAttribute(($context["current_blueprints"] ?? null), "form", array()), "hidden", array())) && ( !twig_test_empty($this->getAttribute($this->getAttribute(($context["current_blueprints"] ?? null), "form", array()), "fields", array())) || !twig_test_empty($this->getAttribute($this->getAttribute(($context["current_blueprints"] ?? null), "form", array()), "field", array()))))) { // line 57 echo " env, ($context["base_url_relative"] ?? null), "html", null, true); echo "/config/"; echo twig_escape_filter($this->env, $context["configuration"], "html", null, true); echo "\"> "; // line 58 $context["configuration_string"] = ("PLUGIN_ADMIN." . twig_upper_filter($this->env, $context["configuration"])); // line 59 echo " "; echo twig_escape_filter($this->env, ((($this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter(($context["configuration_string"] ?? null)) == ($context["configuration_string"] ?? null))) ? (twig_capitalize_string_filter($this->env, $context["configuration"])) : ($this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter(($context["configuration_string"] ?? null)))), "html", null, true); echo " "; } // line 62 echo " "; } // line 63 echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['configuration'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 64 echo " "; // line 65 if ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize(array(0 => "admin.configuration_info", 1 => "admin.super"))) { // line 66 echo " env, ($context["base_url_relative"] ?? null), "html", null, true); echo "/config/info\"> "; // line 67 echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.INFO"), "html", null, true); echo " "; } // line 70 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.BACK\"|tu }} {% if data.file.filename %} {% endif %}

{{ \"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 %}
{% if authorize(['admin.configuration_system', 'admin.super']) %} {{ \"PLUGIN_ADMIN.SYSTEM\"|tu }} {% endif %} {% if authorize(['admin.configuration_site', 'admin.super']) %} {{ \"PLUGIN_ADMIN.SITE\"|tu }} {% endif %} {% for configuration in admin.configurations %} {% if authorize(['admin.configuration_' ~ configuration, 'admin.super']) %} {% set current_blueprints = admin.data('config/' ~ configuration).blueprints.toArray() %} {% if configuration != 'system' and configuration != 'site' and not current_blueprints.form.hidden and (current_blueprints.form.fields is not empty or current_blueprints.form.field is not empty) %} {% set configuration_string = \"PLUGIN_ADMIN.\" ~ configuration|upper %} {{ (configuration_string|tu == configuration_string ? configuration|capitalize : configuration_string|tu) }} {% endif %} {% endif %} {% endfor %} {% if authorize(['admin.configuration_info', 'admin.super']) %} {{ \"PLUGIN_ADMIN.INFO\"|tu }} {% 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"); } }