269 lines
13 KiB
PHP
Executable File
269 lines
13 KiB
PHP
Executable File
<?php
|
|
|
|
use Twig\Environment;
|
|
use Twig\Error\LoaderError;
|
|
use Twig\Error\RuntimeError;
|
|
use Twig\Extension\CoreExtension;
|
|
use Twig\Extension\SandboxExtension;
|
|
use Twig\Markup;
|
|
use Twig\Sandbox\SecurityError;
|
|
use Twig\Sandbox\SecurityNotAllowedTagError;
|
|
use Twig\Sandbox\SecurityNotAllowedFilterError;
|
|
use Twig\Sandbox\SecurityNotAllowedFunctionError;
|
|
use Twig\Source;
|
|
use Twig\Template;
|
|
use Twig\TemplateWrapper;
|
|
|
|
/* partials/sidebar.twig */
|
|
class __TwigTemplate_6c94e61aa00a90716030d2272db6e37f extends Template
|
|
{
|
|
private Source $source;
|
|
/**
|
|
* @var array<string, Template>
|
|
*/
|
|
private array $macros = [];
|
|
|
|
public function __construct(Environment $env)
|
|
{
|
|
parent::__construct($env);
|
|
|
|
$this->source = $this->getSourceContext();
|
|
|
|
$this->parent = false;
|
|
|
|
$this->blocks = [
|
|
];
|
|
}
|
|
|
|
protected function doDisplay(array $context, array $blocks = []): iterable
|
|
{
|
|
$macros = $this->macros;
|
|
// line 1
|
|
yield "<nav class=\"sb-sidenav accordion sb-sidenav-dark\" id=\"sidenavAccordion\">
|
|
<div class=\"sb-sidenav-menu\">
|
|
<div class=\"nav\">
|
|
<div class=\"sb-sidenav-menu-heading\">";
|
|
// line 4
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("layout.core"), "html", null, true);
|
|
yield "</div>
|
|
<a class=\"nav-link\" href=\"";
|
|
// line 5
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('url')->getCallable()("dashboard"), "html", null, true);
|
|
yield "\">
|
|
<div class=\"sb-nav-link-icon\"><i class=\"bi bi-speedometer2\"></i></div>
|
|
";
|
|
// line 7
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("dashboard.title"), "html", null, true);
|
|
yield "
|
|
</a>
|
|
|
|
";
|
|
// line 10
|
|
if (((CoreExtension::getAttribute($this->env, $this->source, ($context["user"] ?? null), "role", [], "any", false, false, false, 10) == "member") || (CoreExtension::getAttribute($this->env, $this->source, ($context["user"] ?? null), "role", [], "any", false, false, false, 10) == "user"))) {
|
|
// line 11
|
|
yield " <a class=\"nav-link\" href=\"";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('url')->getCallable()("profile"), "html", null, true);
|
|
yield "\">
|
|
<div class=\"sb-nav-link-icon\"><i class=\"bi bi-person-circle\"></i></div>
|
|
";
|
|
// line 13
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("auth.profile_title"), "html", null, true);
|
|
yield "
|
|
</a>
|
|
";
|
|
}
|
|
// line 16
|
|
yield "
|
|
";
|
|
// line 17
|
|
if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), ($context["sidebar_items"] ?? null)) > 0)) {
|
|
// line 18
|
|
yield " <div class=\"sb-sidenav-menu-heading\">";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("layout.modules_header"), "html", null, true);
|
|
yield "</div>
|
|
";
|
|
// line 19
|
|
$context['_parent'] = $context;
|
|
$context['_seq'] = CoreExtension::ensureTraversable(($context["sidebar_items"] ?? null));
|
|
foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
|
|
// line 20
|
|
yield " <a class=\"nav-link\" href=\"";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('url')->getCallable()(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "route", [], "any", false, false, false, 20)), "html", null, true);
|
|
yield "\">
|
|
<div class=\"sb-nav-link-icon\">
|
|
<i class=\"";
|
|
// line 22
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "icon", [], "any", false, false, false, 22), "html", null, true);
|
|
yield "\"></i>
|
|
</div>
|
|
";
|
|
// line 24
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["item"], "label", [], "any", false, false, false, 24), "html", null, true);
|
|
yield "
|
|
</a>
|
|
";
|
|
}
|
|
$_parent = $context['_parent'];
|
|
unset($context['_seq'], $context['_key'], $context['item'], $context['_parent']);
|
|
$context = array_intersect_key($context, $_parent) + $_parent;
|
|
// line 27
|
|
yield " ";
|
|
}
|
|
// line 28
|
|
yield "
|
|
";
|
|
// line 29
|
|
if ((CoreExtension::getAttribute($this->env, $this->source, ($context["user"] ?? null), "role", [], "any", false, false, false, 29) == "super_admin")) {
|
|
// line 30
|
|
yield " <div class=\"sb-sidenav-menu-heading\">";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("layout.system"), "html", null, true);
|
|
yield "</div>
|
|
<a class=\"nav-link\" href=\"";
|
|
// line 31
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('url')->getCallable()("admin/themes"), "html", null, true);
|
|
yield "\">
|
|
<div class=\"sb-nav-link-icon\"><i class=\"bi bi-palette\"></i></div>
|
|
";
|
|
// line 33
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("layout.themes"), "html", null, true);
|
|
yield "
|
|
</a>
|
|
<a class=\"nav-link\" href=\"";
|
|
// line 35
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('url')->getCallable()("admin/globallists"), "html", null, true);
|
|
yield "\">
|
|
<div class=\"sb-nav-link-icon\"><i class=\"bi bi-list-ul\"></i></div>
|
|
";
|
|
// line 37
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("layout.global_lists"), "html", null, true);
|
|
yield "
|
|
</a>
|
|
<a class=\"nav-link\" href=\"";
|
|
// line 39
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('url')->getCallable()("admin/systemconfig"), "html", null, true);
|
|
yield "\">
|
|
<div class=\"sb-nav-link-icon\"><i class=\"bi bi-gear\"></i></div>
|
|
";
|
|
// line 41
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("dashboard.settings"), "html", null, true);
|
|
yield "
|
|
</a>
|
|
<a class=\"nav-link\" href=\"";
|
|
// line 43
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('url')->getCallable()("admin/logs"), "html", null, true);
|
|
yield "\">
|
|
<div class=\"sb-nav-link-icon\"><i class=\"bi bi-file-text\"></i></div>
|
|
";
|
|
// line 45
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("layout.system_logs"), "html", null, true);
|
|
yield "
|
|
</a>
|
|
<a class=\"nav-link\" href=\"";
|
|
// line 47
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('url')->getCallable()("admin/system/info"), "html", null, true);
|
|
yield "\">
|
|
<div class=\"sb-nav-link-icon\"><i class=\"bi bi-server\"></i></div>
|
|
";
|
|
// line 49
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("layout.system_info"), "html", null, true);
|
|
yield "
|
|
</a>
|
|
<a class=\"nav-link\" href=\"";
|
|
// line 51
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('url')->getCallable()("admin/system/phpinfo"), "html", null, true);
|
|
yield "\">
|
|
<div class=\"sb-nav-link-icon\"><i class=\"bi bi-filetype-php\"></i></div>
|
|
";
|
|
// line 53
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("layout.php_info"), "html", null, true);
|
|
yield "
|
|
</a>
|
|
<a class=\"nav-link\" href=\"";
|
|
// line 55
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('url')->getCallable()("admin/modules/install"), "html", null, true);
|
|
yield "\">
|
|
<div class=\"sb-nav-link-icon\"><i class=\"bi bi-box\"></i></div>
|
|
";
|
|
// line 57
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("layout.modules"), "html", null, true);
|
|
yield "
|
|
</a>
|
|
<a class=\"nav-link\" href=\"";
|
|
// line 59
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('url')->getCallable()("admin/system/clear-cache"), "html", null, true);
|
|
yield "\" onclick=\"return confirm('";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("layout.clear_cache_confirm"), "html", null, true);
|
|
yield "')\">
|
|
<div class=\"sb-nav-link-icon\"><i class=\"bi bi-eraser\"></i></div>
|
|
";
|
|
// line 61
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("layout.clear_cache"), "html", null, true);
|
|
yield "
|
|
</a>
|
|
";
|
|
}
|
|
// line 64
|
|
yield " </div>
|
|
</div>
|
|
|
|
<div class=\"sb-sidenav-footer\">
|
|
<div class=\"small\">";
|
|
// line 68
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("dashboard.logged_in_as"), "html", null, true);
|
|
yield ":</div>
|
|
";
|
|
// line 69
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["user"] ?? null), "display_name", [], "any", true, true, false, 69)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["user"] ?? null), "display_name", [], "any", false, false, false, 69), CoreExtension::getAttribute($this->env, $this->source, ($context["user"] ?? null), "name", [], "any", false, false, false, 69))) : (CoreExtension::getAttribute($this->env, $this->source, ($context["user"] ?? null), "name", [], "any", false, false, false, 69))), "html", null, true);
|
|
yield "
|
|
";
|
|
// line 70
|
|
if ((($tmp = ($context["current_company"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
|
|
// line 71
|
|
yield " <div class=\"small\">";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["current_company"] ?? null), "name", [], "any", false, false, false, 71), "html", null, true);
|
|
yield "</div>
|
|
";
|
|
} else {
|
|
// line 73
|
|
yield " <div class=\"small\">";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("dashboard.no_company"), "html", null, true);
|
|
yield "</div>
|
|
";
|
|
}
|
|
// line 75
|
|
yield " </div>
|
|
</nav>
|
|
";
|
|
yield from [];
|
|
}
|
|
|
|
/**
|
|
* @codeCoverageIgnore
|
|
*/
|
|
public function getTemplateName(): string
|
|
{
|
|
return "partials/sidebar.twig";
|
|
}
|
|
|
|
/**
|
|
* @codeCoverageIgnore
|
|
*/
|
|
public function isTraitable(): bool
|
|
{
|
|
return false;
|
|
}
|
|
|
|
/**
|
|
* @codeCoverageIgnore
|
|
*/
|
|
public function getDebugInfo(): array
|
|
{
|
|
return array ( 234 => 75, 228 => 73, 222 => 71, 220 => 70, 216 => 69, 212 => 68, 206 => 64, 200 => 61, 193 => 59, 188 => 57, 183 => 55, 178 => 53, 173 => 51, 168 => 49, 163 => 47, 158 => 45, 153 => 43, 148 => 41, 143 => 39, 138 => 37, 133 => 35, 128 => 33, 123 => 31, 118 => 30, 116 => 29, 113 => 28, 110 => 27, 101 => 24, 96 => 22, 90 => 20, 86 => 19, 81 => 18, 79 => 17, 76 => 16, 70 => 13, 64 => 11, 62 => 10, 56 => 7, 51 => 5, 47 => 4, 42 => 1,);
|
|
}
|
|
|
|
public function getSourceContext(): Source
|
|
{
|
|
return new Source("", "partials/sidebar.twig", "/app/templates/partials/sidebar.twig");
|
|
}
|
|
}
|