332 lines
23 KiB
PHP
Executable File
332 lines
23 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/nav-bar.twig */
|
|
class __TwigTemplate_ff6d1a443d439cf368a7ab6c176d9a59 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 "<!-- Responsive navbar-->
|
|
<nav class=\"navbar navbar-expand-lg navbar-dark bg-dark\">
|
|
<div class=\"container px-5\">
|
|
<a class=\"navbar-brand\" href=\"";
|
|
// line 4
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('url')->getCallable()("/"), "html", null, true);
|
|
yield "\">
|
|
<img src=\"";
|
|
// line 5
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('asset_url')->getCallable()("img/logo_syscms.png"), "html", null, true);
|
|
yield "\" alt=\"";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["platformName"] ?? null), "html", null, true);
|
|
yield "\" height=\"30\">
|
|
</a>
|
|
<button class=\"navbar-toggler\" type=\"button\" data-bs-toggle=\"collapse\" data-bs-target=\"#navbarSupportedContent\" aria-controls=\"navbarSupportedContent\" aria-expanded=\"false\" aria-label=\"Toggle navigation\"><span class=\"navbar-toggler-icon\"></span></button>
|
|
<div class=\"collapse navbar-collapse\" id=\"navbarSupportedContent\">
|
|
<ul class=\"navbar-nav ms-auto mb-2 mb-lg-0\">
|
|
<li class=\"nav-item\"><a class=\"nav-link active\" aria-current=\"page\" href=\"";
|
|
// line 10
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('url')->getCallable()("/"), "html", null, true);
|
|
yield "\">";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("layout.menu.home"), "html", null, true);
|
|
yield "</a></li>
|
|
|
|
";
|
|
// line 12
|
|
$context['_parent'] = $context;
|
|
$context['_seq'] = CoreExtension::ensureTraversable(($context["config_pages_visibility"] ?? null));
|
|
foreach ($context['_seq'] as $context["key"] => $context["visibility"]) {
|
|
// line 13
|
|
yield " ";
|
|
if (((CoreExtension::getAttribute($this->env, $this->source, $context["visibility"], "public", [], "any", false, false, false, 13) && ($context["key"] != "index")) && ($context["key"] != "contact"))) {
|
|
// line 14
|
|
yield " <li class=\"nav-item\">
|
|
<a class=\"nav-link\" href=\"";
|
|
// line 15
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('url')->getCallable()($context["key"]), "html", null, true);
|
|
yield "\">
|
|
";
|
|
// line 16
|
|
yield ((($this->env->getFunction('__')->getCallable()(("layout.menu." . $context["key"])) != ("layout.menu." . $context["key"]))) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()(("layout.menu." . $context["key"])), "html", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["visibility"], "title", [], "any", false, false, false, 16), "html", null, true)));
|
|
yield "
|
|
</a>
|
|
</li>
|
|
";
|
|
}
|
|
// line 20
|
|
yield " ";
|
|
}
|
|
$_parent = $context['_parent'];
|
|
unset($context['_seq'], $context['key'], $context['visibility'], $context['_parent']);
|
|
$context = array_intersect_key($context, $_parent) + $_parent;
|
|
// line 21
|
|
yield "
|
|
<li class=\"nav-item\"><a class=\"nav-link\" href=\"";
|
|
// line 22
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('url')->getCallable()("contact"), "html", null, true);
|
|
yield "\">";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("layout.menu.contact"), "html", null, true);
|
|
yield "</a></li>
|
|
|
|
";
|
|
// line 25
|
|
yield " ";
|
|
if ((array_key_exists("main_company", $context) && CoreExtension::getAttribute($this->env, $this->source, ($context["main_company"] ?? null), "modules", [], "any", true, true, false, 25))) {
|
|
// line 26
|
|
yield " ";
|
|
$context['_parent'] = $context;
|
|
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, ($context["main_company"] ?? null), "modules", [], "any", false, false, false, 26));
|
|
foreach ($context['_seq'] as $context["_key"] => $context["module"]) {
|
|
// line 27
|
|
yield " ";
|
|
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["module"], "pivot", [], "any", false, false, false, 27), "bus_modules_is_enabled", [], "any", false, false, false, 27) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["module"], "pivot", [], "any", false, false, false, 27), "bus_modules_show_public_nav", [], "any", false, false, false, 27))) {
|
|
// line 28
|
|
yield " ";
|
|
$context["route"] = CoreExtension::getAttribute($this->env, $this->source, $context["module"], "modules_name", [], "any", false, false, false, 28);
|
|
// line 29
|
|
yield " ";
|
|
$context["label"] = CoreExtension::getAttribute($this->env, $this->source, $context["module"], "modules_display_name", [], "any", false, false, false, 29);
|
|
// line 30
|
|
yield "
|
|
";
|
|
// line 31
|
|
if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["module"], "modules_settings", [], "any", false, true, false, 31), "menu", [], "any", false, true, false, 31), "public", [], "any", true, true, false, 31)) {
|
|
// line 32
|
|
yield " ";
|
|
$context["route"] = (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["module"], "modules_settings", [], "any", false, true, false, 32), "menu", [], "any", false, true, false, 32), "public", [], "any", false, true, false, 32), "route", [], "any", true, true, false, 32) && !(null === CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["module"], "modules_settings", [], "any", false, false, false, 32), "menu", [], "any", false, false, false, 32), "public", [], "any", false, false, false, 32), "route", [], "any", false, false, false, 32)))) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["module"], "modules_settings", [], "any", false, false, false, 32), "menu", [], "any", false, false, false, 32), "public", [], "any", false, false, false, 32), "route", [], "any", false, false, false, 32)) : (($context["route"] ?? null)));
|
|
// line 33
|
|
yield " ";
|
|
$context["label"] = (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["module"], "modules_settings", [], "any", false, true, false, 33), "menu", [], "any", false, true, false, 33), "public", [], "any", false, true, false, 33), "label", [], "any", true, true, false, 33) && !(null === CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["module"], "modules_settings", [], "any", false, false, false, 33), "menu", [], "any", false, false, false, 33), "public", [], "any", false, false, false, 33), "label", [], "any", false, false, false, 33)))) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["module"], "modules_settings", [], "any", false, false, false, 33), "menu", [], "any", false, false, false, 33), "public", [], "any", false, false, false, 33), "label", [], "any", false, false, false, 33)) : (($context["label"] ?? null)));
|
|
// line 34
|
|
yield " ";
|
|
}
|
|
// line 35
|
|
yield "
|
|
";
|
|
// line 36
|
|
if ((CoreExtension::getAttribute($this->env, $this->source, $context["module"], "modules_name", [], "any", false, false, false, 36) != "pagebuilder")) {
|
|
// line 37
|
|
yield " <li class=\"nav-item\">
|
|
<a class=\"nav-link\" href=\"";
|
|
// line 38
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('url')->getCallable()(($context["route"] ?? null)), "html", null, true);
|
|
yield "\">
|
|
";
|
|
// line 39
|
|
yield ((($this->env->getFunction('__')->getCallable()(("layout.menu." . CoreExtension::getAttribute($this->env, $this->source, $context["module"], "modules_name", [], "any", false, false, false, 39))) != ("layout.menu." . CoreExtension::getAttribute($this->env, $this->source, $context["module"], "modules_name", [], "any", false, false, false, 39)))) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()(("layout.menu." . CoreExtension::getAttribute($this->env, $this->source, $context["module"], "modules_name", [], "any", false, false, false, 39))), "html", null, true)) : ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()(($context["label"] ?? null)), "html", null, true)));
|
|
yield "
|
|
</a>
|
|
</li>
|
|
";
|
|
}
|
|
// line 43
|
|
yield " ";
|
|
}
|
|
// line 44
|
|
yield " ";
|
|
}
|
|
$_parent = $context['_parent'];
|
|
unset($context['_seq'], $context['_key'], $context['module'], $context['_parent']);
|
|
$context = array_intersect_key($context, $_parent) + $_parent;
|
|
// line 45
|
|
yield " ";
|
|
}
|
|
// line 46
|
|
yield "
|
|
";
|
|
// line 48
|
|
yield " ";
|
|
$context["show_pages"] = false;
|
|
// line 49
|
|
yield " ";
|
|
if ((array_key_exists("main_company", $context) && CoreExtension::getAttribute($this->env, $this->source, ($context["main_company"] ?? null), "modules", [], "any", true, true, false, 49))) {
|
|
// line 50
|
|
yield " ";
|
|
$context['_parent'] = $context;
|
|
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, ($context["main_company"] ?? null), "modules", [], "any", false, false, false, 50));
|
|
foreach ($context['_seq'] as $context["_key"] => $context["module"]) {
|
|
// line 51
|
|
yield " ";
|
|
if ((((CoreExtension::getAttribute($this->env, $this->source, $context["module"], "modules_name", [], "any", false, false, false, 51) == "pagebuilder") && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["module"], "pivot", [], "any", false, false, false, 51), "bus_modules_is_enabled", [], "any", false, false, false, 51)) && CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["module"], "pivot", [], "any", false, false, false, 51), "bus_modules_show_public_nav", [], "any", false, false, false, 51))) {
|
|
// line 52
|
|
yield " ";
|
|
$context["show_pages"] = true;
|
|
// line 53
|
|
yield " ";
|
|
}
|
|
// line 54
|
|
yield " ";
|
|
}
|
|
$_parent = $context['_parent'];
|
|
unset($context['_seq'], $context['_key'], $context['module'], $context['_parent']);
|
|
$context = array_intersect_key($context, $_parent) + $_parent;
|
|
// line 55
|
|
yield " ";
|
|
}
|
|
// line 56
|
|
yield "
|
|
";
|
|
// line 57
|
|
if ((($context["show_pages"] ?? null) && (Twig\Extension\CoreExtension::length($this->env->getCharset(), ($context["pages_public"] ?? null)) > 0))) {
|
|
// line 58
|
|
yield " <li class=\"nav-item dropdown\">
|
|
<a class=\"nav-link dropdown-toggle\" id=\"navbarDropdownPages\" href=\"#\" role=\"button\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\">";
|
|
// line 59
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("layout.menu.pages"), "html", null, true);
|
|
yield "</a>
|
|
<ul class=\"dropdown-menu dropdown-menu-end\" aria-labelledby=\"navbarDropdownPages\">
|
|
";
|
|
// line 61
|
|
$context['_parent'] = $context;
|
|
$context['_seq'] = CoreExtension::ensureTraversable(($context["pages_public"] ?? null));
|
|
foreach ($context['_seq'] as $context["_key"] => $context["page"]) {
|
|
// line 62
|
|
yield " <li><a class=\"dropdown-item\" href=\"";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('url')->getCallable()(("pages/" . CoreExtension::getAttribute($this->env, $this->source, $context["page"], "pages_slug", [], "any", false, false, false, 62))), "html", null, true);
|
|
yield "\">";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["page"], "pages_title", [], "any", false, false, false, 62), "html", null, true);
|
|
yield "</a></li>
|
|
";
|
|
}
|
|
$_parent = $context['_parent'];
|
|
unset($context['_seq'], $context['_key'], $context['page'], $context['_parent']);
|
|
$context = array_intersect_key($context, $_parent) + $_parent;
|
|
// line 64
|
|
yield " </ul>
|
|
</li>
|
|
";
|
|
}
|
|
// line 67
|
|
yield " ";
|
|
yield from $this->load("partials/language-switcher.twig", 67)->unwrap()->yield($context);
|
|
// line 68
|
|
yield "
|
|
";
|
|
// line 69
|
|
if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, ($context["auth"] ?? null), "user", [], "any", false, false, false, 69)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
|
|
// line 70
|
|
yield " <li class=\"nav-item dropdown\">
|
|
<a class=\"nav-link dropdown-toggle\" id=\"navbarDropdownUser\" href=\"#\" role=\"button\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\">
|
|
";
|
|
// line 72
|
|
if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["auth"] ?? null), "user", [], "any", false, false, false, 72), "users_avatar", [], "any", false, false, false, 72)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
|
|
// line 73
|
|
yield " <img src=\"";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["auth"] ?? null), "user", [], "any", false, false, false, 73), "avatar_url", [], "any", false, false, false, 73), "html", null, true);
|
|
yield "\" alt=\"";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["auth"] ?? null), "user", [], "any", false, false, false, 73), "display_name", [], "any", false, false, false, 73), "html", null, true);
|
|
yield "\" class=\"rounded-circle\" style=\"width: 25px; height: 25px; object-fit: cover; margin-right: 5px;\">
|
|
";
|
|
} else {
|
|
// line 75
|
|
yield " <i class=\"bi bi-person\"></i>
|
|
";
|
|
}
|
|
// line 77
|
|
yield " ";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["auth"] ?? null), "user", [], "any", false, false, false, 77), "display_name", [], "any", false, false, false, 77), "html", null, true);
|
|
yield "
|
|
</a>
|
|
<ul class=\"dropdown-menu dropdown-menu-end\" aria-labelledby=\"navbarDropdownUser\">
|
|
<li><a class=\"dropdown-item\" href=\"";
|
|
// line 80
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('url')->getCallable()("dashboard"), "html", null, true);
|
|
yield "\"><i class=\"bi bi-speedometer2\"></i> ";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("layout.menu.dashboard"), "html", null, true);
|
|
yield "</a></li>
|
|
<li><a class=\"dropdown-item\" href=\"";
|
|
// line 81
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('url')->getCallable()("profile"), "html", null, true);
|
|
yield "\"><i class=\"bi bi-person-circle\"></i> ";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("layout.profile.title"), "html", null, true);
|
|
yield "</a></li>
|
|
<li><hr class=\"dropdown-divider\" /></li>
|
|
<li><a class=\"dropdown-item\" href=\"";
|
|
// line 83
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('url')->getCallable()("logout"), "html", null, true);
|
|
yield "\"><i class=\"bi bi-box-arrow-right\"></i> ";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("auth.logout"), "html", null, true);
|
|
yield "</a></li>
|
|
</ul>
|
|
</li>
|
|
";
|
|
} else {
|
|
// line 87
|
|
yield " <li class=\"nav-item\"><a class=\"nav-link\" href=\"";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('url')->getCallable()("login"), "html", null, true);
|
|
yield "\"><i class=\"bi bi-box-arrow-in-right\"></i> ";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('__')->getCallable()("layout.menu.login"), "html", null, true);
|
|
yield "</a></li>
|
|
";
|
|
}
|
|
// line 89
|
|
yield " </ul>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
";
|
|
yield from [];
|
|
}
|
|
|
|
/**
|
|
* @codeCoverageIgnore
|
|
*/
|
|
public function getTemplateName(): string
|
|
{
|
|
return "partials/nav-bar.twig";
|
|
}
|
|
|
|
/**
|
|
* @codeCoverageIgnore
|
|
*/
|
|
public function isTraitable(): bool
|
|
{
|
|
return false;
|
|
}
|
|
|
|
/**
|
|
* @codeCoverageIgnore
|
|
*/
|
|
public function getDebugInfo(): array
|
|
{
|
|
return array ( 295 => 89, 287 => 87, 278 => 83, 271 => 81, 265 => 80, 258 => 77, 254 => 75, 246 => 73, 244 => 72, 240 => 70, 238 => 69, 235 => 68, 232 => 67, 227 => 64, 216 => 62, 212 => 61, 207 => 59, 204 => 58, 202 => 57, 199 => 56, 196 => 55, 190 => 54, 187 => 53, 184 => 52, 181 => 51, 176 => 50, 173 => 49, 170 => 48, 167 => 46, 164 => 45, 158 => 44, 155 => 43, 148 => 39, 144 => 38, 141 => 37, 139 => 36, 136 => 35, 133 => 34, 130 => 33, 127 => 32, 125 => 31, 122 => 30, 119 => 29, 116 => 28, 113 => 27, 108 => 26, 105 => 25, 98 => 22, 95 => 21, 89 => 20, 82 => 16, 78 => 15, 75 => 14, 72 => 13, 68 => 12, 61 => 10, 51 => 5, 47 => 4, 42 => 1,);
|
|
}
|
|
|
|
public function getSourceContext(): Source
|
|
{
|
|
return new Source("", "partials/nav-bar.twig", "/app/templates/partials/nav-bar.twig");
|
|
}
|
|
}
|