115 lines
4.3 KiB
PHP
Executable File
115 lines
4.3 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/language-switcher.twig */
|
|
class __TwigTemplate_94c02dabea82e9eeeb9551ca0d80abd0 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
|
|
if ((($tmp = $this->env->getFunction('is_multi_lang_enabled')->getCallable()()) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
|
|
// line 2
|
|
yield "<li class=\"nav-item dropdown\">
|
|
<a class=\"nav-link dropdown-toggle\" href=\"#\" id=\"navbarDropdownLanguage\" role=\"button\" data-bs-toggle=\"dropdown\" aria-expanded=\"false\">
|
|
<i class=\"bi bi-globe\"></i>
|
|
</a>
|
|
<ul class=\"dropdown-menu dropdown-menu-end\" aria-labelledby=\"navbarDropdownLanguage\">
|
|
<li><a class=\"dropdown-item\" href=\"";
|
|
// line 7
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('url')->getCallable()("language/pt_BR"), "html", null, true);
|
|
yield "?redirect=";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["current_uri"] ?? null), "html", null, true);
|
|
yield "\">Português</a></li>
|
|
<li><a class=\"dropdown-item\" href=\"";
|
|
// line 8
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('url')->getCallable()("language/en_US"), "html", null, true);
|
|
yield "?redirect=";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["current_uri"] ?? null), "html", null, true);
|
|
yield "\">English</a></li>
|
|
<li><a class=\"dropdown-item\" href=\"";
|
|
// line 9
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('url')->getCallable()("language/es_ES"), "html", null, true);
|
|
yield "?redirect=";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["current_uri"] ?? null), "html", null, true);
|
|
yield "\">Español</a></li>
|
|
<li><a class=\"dropdown-item\" href=\"";
|
|
// line 10
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('url')->getCallable()("language/de_DE"), "html", null, true);
|
|
yield "?redirect=";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["current_uri"] ?? null), "html", null, true);
|
|
yield "\">Deutsch</a></li>
|
|
<li><a class=\"dropdown-item\" href=\"";
|
|
// line 11
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getFunction('url')->getCallable()("language/fr_FR"), "html", null, true);
|
|
yield "?redirect=";
|
|
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["current_uri"] ?? null), "html", null, true);
|
|
yield "\">Français</a></li>
|
|
</ul>
|
|
</li>
|
|
";
|
|
}
|
|
yield from [];
|
|
}
|
|
|
|
/**
|
|
* @codeCoverageIgnore
|
|
*/
|
|
public function getTemplateName(): string
|
|
{
|
|
return "partials/language-switcher.twig";
|
|
}
|
|
|
|
/**
|
|
* @codeCoverageIgnore
|
|
*/
|
|
public function isTraitable(): bool
|
|
{
|
|
return false;
|
|
}
|
|
|
|
/**
|
|
* @codeCoverageIgnore
|
|
*/
|
|
public function getDebugInfo(): array
|
|
{
|
|
return array ( 75 => 11, 69 => 10, 63 => 9, 57 => 8, 51 => 7, 44 => 2, 42 => 1,);
|
|
}
|
|
|
|
public function getSourceContext(): Source
|
|
{
|
|
return new Source("", "partials/language-switcher.twig", "/app/templates/partials/language-switcher.twig");
|
|
}
|
|
}
|