parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
// line 1
$context["clear_cache_url"] = (((($context["base_url_relative"] ?? null) . "/cache.json/task") . $this->getAttribute($this->getAttribute(($context["config"] ?? null), "system", []), "param_sep", [])) . twig_escape_filter($this->env, "clearCache", "html_attr"));
// line 2
echo "
";
// line 3
if ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize([0 => "admin.maintenance", 1 => "admin.super", 2 => "admin.cache"])) {
// line 4
echo " - env, $this->env->getExtension('Grav\Plugin\Admin\Twig\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.CLEAR_CACHE"), "html", null, true);
echo "\">
env, $this->getAttribute(($context["uri"] ?? null), "addNonce", [0 => ($context["clear_cache_url"] ?? null), 1 => "admin-form", 2 => "admin-nonce"], "method"), "html", null, true);
echo "\">
";
}
// line 10
echo " ";
if ($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "twig", []), "plugins_quick_tray", [])) {
// line 11
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "twig", []), "plugins_quick_tray", []));
foreach ($context['_seq'] as $context["label"] => $context["item"]) {
// line 12
echo " ";
if ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize(((($this->getAttribute($context["item"], "authorize", [], "any", true, true) && twig_test_iterable($this->getAttribute($context["item"], "authorize", [])))) ? ($this->getAttribute($context["item"], "authorize", [])) : ([0 => (($this->getAttribute($context["item"], "authorize", [])) ? ($this->getAttribute($context["item"], "authorize", [])) : (("admin." . (($this->getAttribute($context["item"], "location", [])) ? ($this->getAttribute($context["item"], "location", [])) : ($this->getAttribute($context["item"], "route", [])))))), 1 => "admin.super"])))) {
// line 13
echo " ";
$context["data_tags"] = "";
// line 14
echo " ";
if ($this->getAttribute($context["item"], "data", [])) {
// line 15
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute($context["item"], "data", []));
foreach ($context['_seq'] as $context["key"] => $context["value"]) {
// line 16
echo " ";
$context["data_tags"] = (((((($context["data_tags"] ?? null) . " data-") . $context["key"]) . "=\"") . $context["value"]) . "\"");
// line 17
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['value'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 18
echo " ";
}
// line 19
echo " - env, $this->getAttribute($context["item"], "class", []), "html", null, true);
echo " hint--bottom\" data-hint=\"";
echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "hint", []), "html", null, true);
echo "\" ";
echo ($context["data_tags"] ?? null);
echo ">
";
// line 20
if ($this->getAttribute($context["item"], "route", [])) {
// line 21
echo " env, $this->env->getExtension('Grav\Common\Twig\TwigExtension')->urlFunc($this->getAttribute($context["item"], "route", [])), "html", null, true);
echo "\" ";
if ($this->getAttribute($context["item"], "target", [])) {
echo "target=\"";
echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "target", []), "html", null, true);
echo "\"";
}
echo ">
env, $this->getAttribute($context["item"], "icon", []), "html", null, true);
echo "\">
";
} else {
// line 25
echo " env, $this->getAttribute($context["item"], "icon", []), "html", null, true);
echo "\">
";
}
// line 27
echo "
";
}
// line 29
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['label'], $context['item'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 30
echo " ";
} else {
// line 31
echo " ";
if ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize([0 => "admin.maintenance", 1 => "admin.super"])) {
// line 32
echo " -
env, (($context["base_url_relative"] ?? null) . "/plugins/install"), "html", null, true);
echo "\">
";
}
// line 38
echo " ";
}
// line 39
echo "
";
}
public function getTemplateName()
{
return "partials/nav-quick-tray.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 148 => 39, 145 => 38, 137 => 33, 134 => 32, 131 => 31, 128 => 30, 122 => 29, 118 => 27, 112 => 25, 106 => 22, 95 => 21, 93 => 20, 84 => 19, 81 => 18, 75 => 17, 72 => 16, 67 => 15, 64 => 14, 61 => 13, 58 => 12, 53 => 11, 50 => 10, 42 => 5, 37 => 4, 35 => 3, 32 => 2, 30 => 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 Source("{% set clear_cache_url = base_url_relative ~ '/cache.json/task' ~ config.system.param_sep ~ 'clearCache'|e('html_attr') %}
{% if authorize(['admin.maintenance', 'admin.super', 'admin.cache']) %}
-
{% endif %}
{% if grav.twig.plugins_quick_tray %}
{% for label, item in grav.twig.plugins_quick_tray %}
{% if authorize((item.authorize is defined and item.authorize is iterable) ? item.authorize : [item.authorize ?: ('admin.' ~ (item.location ?: item.route)), 'admin.super']) %}
{% set data_tags = '' %}
{% if (item.data) %}
{% for key, value in item.data %}
{% set data_tags = data_tags ~ ' data-' ~ key ~ '=\"' ~ value ~ '\"' %}
{% endfor %}
{% endif %}
-
{% if item.route %}
{% else %}
{% endif %}
{% endif %}
{% endfor %}
{% else %}
{% if authorize(['admin.maintenance', 'admin.super']) %}
-
{% endif %}
{% endif %}
", "partials/nav-quick-tray.html.twig", "/mnt/wpool1_tempdisk/webwndt/steintiger/user/plugins/admin/themes/grav/templates/partials/nav-quick-tray.html.twig");
}
}