parent = $this->loadTemplate("partials/base.html.twig", "user.html.twig", 1);
$this->blocks = array(
'titlebar' => array($this, 'block_titlebar'),
'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["user"] = $this->getAttribute(($context["admin"] ?? null), "data", array(0 => ("users/" . $this->getAttribute(($context["admin"] ?? null), "route", array()))), "method");
// line 5
$context["title"] = (($this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.USER") . ": ") . twig_escape_filter($this->env, $this->getAttribute(($context["admin"] ?? null), "route", array())));
} else {
// line 7
$context["title"] = $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN_PRO.USERS");
}
// line 1
$this->parent->display($context, array_merge($this->blocks, $blocks));
}
// line 10
public function block_titlebar($context, array $blocks = array())
{
// line 11
echo " ";
if ( !$this->getAttribute(($context["admin"] ?? null), "route", array())) {
// line 12
echo " ";
if ($this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize(array(0 => "admin.users", 1 => "admin.super"))) {
// line 13
echo "
";
// line 16
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.USERS"), "html", null, true);
echo "
";
} else {
// line 18
echo " ";
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.ACCESS_DENIED"), "html", null, true);
echo "
";
}
// line 20
echo " ";
} else {
// line 21
echo " ";
if (($this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize(array(0 => "admin.users", 1 => "admin.super")) || ($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "user", array()), "username", array()) == $this->getAttribute(($context["user"] ?? null), "username", array())))) {
// line 22
echo "
";
// line 28
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.USER"), "html", null, true);
echo ": ";
echo twig_escape_filter($this->env, $this->getAttribute(($context["user"] ?? null), "username", array()));
echo "
";
} else {
// line 30
echo " ";
echo twig_escape_filter($this->env, $this->env->getExtension('Grav\Plugin\Admin\AdminTwigExtension')->tuFilter("PLUGIN_ADMIN.ACCESS_DENIED"), "html", null, true);
echo "
";
}
// line 32
echo " ";
}
}
// line 35
public function block_content($context, array $blocks = array())
{
// line 36
echo " ";
if (($this->env->getExtension('Grav\Common\Twig\TwigExtension')->authorize(array(0 => "admin.users", 1 => "admin.super")) || ($this->getAttribute($this->getAttribute(($context["grav"] ?? null), "user", array()), "username", array()) == $this->getAttribute(($context["user"] ?? null), "username", array())))) {
// line 37
echo "
";
// line 38
if ( !$this->getAttribute(($context["admin"] ?? null), "route", array())) {
// line 39
echo " ";
$this->loadTemplate("partials/users-list.html.twig", "user.html.twig", 39)->display($context);
// line 40
echo "
";
// line 42
$this->loadTemplate("partials/blueprints-new.html.twig", "user.html.twig", 42)->display(array_merge($context, array("blueprints" => $this->getAttribute(($context["admin"] ?? null), "blueprints", array(0 => "user/account_new"), "method"))));
// line 43
echo "
";
} else {
// line 45
echo " ";
$this->loadTemplate("partials/blueprints.html.twig", "user.html.twig", 45)->display(array_merge($context, array("data" => ($context["user"] ?? null), "blueprints" => $this->getAttribute(($context["user"] ?? null), "blueprints", array()))));
// line 46
echo " ";
}
// line 47
echo "
";
}
}
public function getTemplateName()
{
return "user.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 163 => 58, 159 => 57, 152 => 53, 147 => 51, 141 => 47, 138 => 46, 135 => 45, 131 => 43, 129 => 42, 125 => 40, 122 => 39, 120 => 38, 117 => 37, 114 => 36, 111 => 35, 106 => 32, 100 => 30, 93 => 28, 87 => 26, 79 => 24, 77 => 23, 74 => 22, 71 => 21, 68 => 20, 62 => 18, 57 => 16, 52 => 14, 49 => 13, 46 => 12, 43 => 11, 40 => 10, 36 => 1, 33 => 7, 30 => 5, 28 => 4, 26 => 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 user = admin.data('users/' ~ admin.route) %}
{% set title = \"PLUGIN_ADMIN.USER\"|tu ~ \": \" ~ admin.route|e %}
{% else %}
{% set title = \"PLUGIN_ADMIN_PRO.USERS\"|tu %}
{% endif %}
{% block titlebar %}
{% if not admin.route %}
{% if authorize(['admin.users', 'admin.super']) %}
{{ \"PLUGIN_ADMIN.USERS\"|tu }}
{% else %}
{{ \"PLUGIN_ADMIN.ACCESS_DENIED\"|tu }}
{% endif %}
{% else %}
{% if authorize(['admin.users', 'admin.super']) or grav.user.username == user.username %}
{{ \"PLUGIN_ADMIN.USER\"|tu }}: {{ user.username|e }}
{% else %}
{{ \"PLUGIN_ADMIN.ACCESS_DENIED\"|tu }}
{% endif %}
{% endif %}
{% endblock %}
{% block content %}
{% if authorize(['admin.users', 'admin.super']) or grav.user.username == user.username %}
{% if not admin.route %}
{% include 'partials/users-list.html.twig' %}
{% include 'partials/blueprints-new.html.twig' with { blueprints: admin.blueprints('user/account_new') } %}
{% else %}
{% include 'partials/blueprints.html.twig' with { data: user, blueprints: user.blueprints } %}
{% endif %}
{% endif %}
{% endblock %}
", "user.html.twig", "/home/kevin/Sites/static-ethica.net/user/plugins/admin/themes/grav/templates/user.html.twig");
}
}