<?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;
/* navigation/countries.html.twig */
class __TwigTemplate_1743094f9ede1ea5a14a754ea9205929141d5927cd461ca3ecdb2ecb1261eb46 extends Template
{
private $source;
private $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 = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "navigation/countries.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "navigation/countries.html.twig"));
// line 1
yield "<div class=\"dropdown-wrapper dropdown-arrow language-switcher\" ";
yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\StimulusTwigExtension']->renderStimulusController($this->env, "nav_countries");
yield ">
<a href=\"#\" class=\"main-nav-link\"
";
// line 3
yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\StimulusTwigExtension']->renderStimulusTarget($this->env, "nav_countries", "btn");
yield "
";
// line 4
yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\StimulusTwigExtension']->renderStimulusAction($this->env, "nav_countries", "onShow", "click");
yield "
>
<span class=\"icon icon-pl\"></span>
<span>";
// line 7
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::upper($this->env->getCharset(), (isset($context["locale"]) || array_key_exists("locale", $context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.', 7, $this->source); })())), "html", null, true);
yield "</span>
</a>
<div class=\"dropdown\">
<ul>
";
// line 11
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["countries"]) || array_key_exists("countries", $context) ? $context["countries"] : (function () { throw new RuntimeError('Variable "countries" does not exist.', 11, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["country"]) {
// line 12
yield " ";
if ((0 !== CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, $context["country"], "code", [], "any", false, false, false, 12), (isset($context["locale"]) || array_key_exists("locale", $context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.', 12, $this->source); })())))) {
// line 13
yield " <li><a href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["country"], "domain", [], "any", false, false, false, 13), "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["country"], "navigationName", [], "any", false, false, false, 13), "html", null, true);
yield "</a></li>
";
} else {
// line 15
yield " <li class=\"active\"><a href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["country"], "domain", [], "any", false, false, false, 15), "html", null, true);
yield "\">";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["country"], "navigationName", [], "any", false, false, false, 15), "html", null, true);
yield "</a></li>
";
}
// line 17
yield " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['country'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 18
yield " </ul>
</div>
</div>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "navigation/countries.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 96 => 18, 90 => 17, 82 => 15, 74 => 13, 71 => 12, 67 => 11, 60 => 7, 54 => 4, 50 => 3, 44 => 1,);
}
public function getSourceContext()
{
return new Source("<div class=\"dropdown-wrapper dropdown-arrow language-switcher\" {{ stimulus_controller('nav_countries') }}>
<a href=\"#\" class=\"main-nav-link\"
{{ stimulus_target('nav_countries', 'btn') }}
{{ stimulus_action('nav_countries', 'onShow', 'click') }}
>
<span class=\"icon icon-pl\"></span>
<span>{{ locale|upper }}</span>
</a>
<div class=\"dropdown\">
<ul>
{% for country in countries %}
{% if country.code != locale %}
<li><a href=\"{{ country.domain }}\">{{ country.navigationName }}</a></li>
{% else %}
<li class=\"active\"><a href=\"{{ country.domain }}\">{{ country.navigationName }}</a></li>
{% endif %}
{% endfor %}
</ul>
</div>
</div>
", "navigation/countries.html.twig", "/var/www/brc_frontend/templates/navigation/countries.html.twig");
}
}