var/cache/dev/twig/b0/b0519238c319e924cf30473575eb69791f5c26c3799dbff01c4a5535529fc34d.php line 45

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. /* navigation/countries.html.twig */
  15. class __TwigTemplate_1743094f9ede1ea5a14a754ea9205929141d5927cd461ca3ecdb2ecb1261eb46 extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->parent false;
  24.         $this->blocks = [
  25.         ];
  26.     }
  27.     protected function doDisplay(array $context, array $blocks = [])
  28.     {
  29.         $macros $this->macros;
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  31.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""navigation/countries.html.twig"));
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  33.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""navigation/countries.html.twig"));
  34.         // line 1
  35.         yield "<div class=\"dropdown-wrapper dropdown-arrow language-switcher\" ";
  36.         yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\StimulusTwigExtension']->renderStimulusController($this->env"nav_countries");
  37.         yield ">
  38.     <a href=\"#\" class=\"main-nav-link\"
  39.        ";
  40.         // line 3
  41.         yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\StimulusTwigExtension']->renderStimulusTarget($this->env"nav_countries""btn");
  42.         yield "
  43.        ";
  44.         // line 4
  45.         yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\StimulusTwigExtension']->renderStimulusAction($this->env"nav_countries""onShow""click");
  46.         yield "
  47.     >
  48.         <span class=\"icon icon-pl\"></span>
  49.         <span>";
  50.         // line 7
  51.         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"nulltrue);
  52.         yield "</span>
  53.     </a>
  54.     <div class=\"dropdown\">
  55.         <ul>
  56.             ";
  57.         // line 11
  58.         $context['_parent'] = $context;
  59.         $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); })()));
  60.         foreach ($context['_seq'] as $context["_key"] => $context["country"]) {
  61.             // line 12
  62.             yield "                ";
  63.             if ((!== CoreExtension::compare(CoreExtension::getAttribute($this->env$this->source$context["country"], "code", [], "any"falsefalsefalse12), (isset($context["locale"]) || array_key_exists("locale"$context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.'12$this->source); })())))) {
  64.                 // line 13
  65.                 yield "                    <li><a href=\"";
  66.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["country"], "domain", [], "any"falsefalsefalse13), "html"nulltrue);
  67.                 yield "\">";
  68.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["country"], "navigationName", [], "any"falsefalsefalse13), "html"nulltrue);
  69.                 yield "</a></li>
  70.                 ";
  71.             } else {
  72.                 // line 15
  73.                 yield "                    <li class=\"active\"><a href=\"";
  74.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["country"], "domain", [], "any"falsefalsefalse15), "html"nulltrue);
  75.                 yield "\">";
  76.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["country"], "navigationName", [], "any"falsefalsefalse15), "html"nulltrue);
  77.                 yield "</a></li>
  78.                 ";
  79.             }
  80.             // line 17
  81.             yield "            ";
  82.         }
  83.         $_parent $context['_parent'];
  84.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['country'], $context['_parent'], $context['loop']);
  85.         $context array_intersect_key($context$_parent) + $_parent;
  86.         // line 18
  87.         yield "        </ul>
  88.     </div>
  89. </div>
  90. ";
  91.         
  92.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  93.         
  94.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  95.         return; yield '';
  96.     }
  97.     /**
  98.      * @codeCoverageIgnore
  99.      */
  100.     public function getTemplateName()
  101.     {
  102.         return "navigation/countries.html.twig";
  103.     }
  104.     /**
  105.      * @codeCoverageIgnore
  106.      */
  107.     public function isTraitable()
  108.     {
  109.         return false;
  110.     }
  111.     /**
  112.      * @codeCoverageIgnore
  113.      */
  114.     public function getDebugInfo()
  115.     {
  116.         return array (  96 => 18,  90 => 17,  82 => 15,  74 => 13,  71 => 12,  67 => 11,  60 => 7,  54 => 4,  50 => 3,  44 => 1,);
  117.     }
  118.     public function getSourceContext()
  119.     {
  120.         return new Source("<div class=\"dropdown-wrapper dropdown-arrow language-switcher\" {{ stimulus_controller('nav_countries') }}>
  121.     <a href=\"#\" class=\"main-nav-link\"
  122.        {{ stimulus_target('nav_countries', 'btn') }}
  123.        {{ stimulus_action('nav_countries', 'onShow', 'click') }}
  124.     >
  125.         <span class=\"icon icon-pl\"></span>
  126.         <span>{{ locale|upper }}</span>
  127.     </a>
  128.     <div class=\"dropdown\">
  129.         <ul>
  130.             {% for country in countries %}
  131.                 {% if country.code != locale %}
  132.                     <li><a href=\"{{ country.domain }}\">{{ country.navigationName }}</a></li>
  133.                 {% else %}
  134.                     <li class=\"active\"><a href=\"{{ country.domain }}\">{{ country.navigationName }}</a></li>
  135.                 {% endif %}
  136.             {% endfor %}
  137.         </ul>
  138.     </div>
  139. </div>
  140. ""navigation/countries.html.twig""/var/www/brc_frontend/templates/navigation/countries.html.twig");
  141.     }
  142. }