var/cache/dev/twig/35/351595d4caec39fa80c2e4c60455bcd9.php line 35

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* includes/language.html.twig */
  14. class __TwigTemplate_3b1503f722508e7f9171f1803a25543d extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.         $this->sandbox $this->env->getExtension('\Twig\Extension\SandboxExtension');
  26.         $this->checkSecurity();
  27.     }
  28.     protected function doDisplay(array $context, array $blocks = [])
  29.     {
  30.         $macros $this->macros;
  31.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""includes/language.html.twig"));
  33.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""includes/language.html.twig"));
  35.         // line 1
  36.         echo "<li class=\"nav-item dropdown\">
  37.     <a class=\"dropdown-toggle py-2 d-none d-md-inline-block menu-icon ml-4\" data-toggle=\"dropdown\" href=\"#\">
  38.         <img src=\"/static/images/icons/language.svg\" />
  39.     </a>
  40.     <ul class=\"dropdown-menu\">
  41.         <span class=\"dropdown-menu-arrow search arrow\"></span>
  42.         ";
  43.         // line 7
  44.         $context['_parent'] = $context;
  45.         $context['_seq'] = twig_ensure_traversable($this->extensions['App\Twig\Extension\LanguageSwitcherExtension']->getLocalizedLinks((isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'7$this->source); })())));
  46.         foreach ($context['_seq'] as $context["key"] => $context["lang"]) {
  47.             // line 8
  48.             echo "            <li>
  49.                 <a class=\"dropdown-item\" href=\"";
  50.             // line 9
  51.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["lang"], "link", [], "any"falsefalsetrue9), 9$this->source), "html"nulltrue);
  52.             echo "\">
  53.                     <img class=\"language-switcher-img\" src=\"";
  54.             // line 10
  55.             echo twig_escape_filter($this->env$this->extensions['App\Twig\Extension\LanguageSwitcherExtension']->getLanguageFlag($this->sandbox->ensureToStringAllowed($context["key"], 10$this->source)), "html"nulltrue);
  56.             echo "\" height=\"20\" width=\"25\">
  57.                     ";
  58.             // line 11
  59.             echo twig_escape_filter($this->env$this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env$this->source$context["lang"], "text", [], "any"falsefalsetrue11), 11$this->source), "html"nulltrue);
  60.             echo "</a>
  61.             </li>
  62.         ";
  63.         }
  64.         $_parent $context['_parent'];
  65.         unset($context['_seq'], $context['_iterated'], $context['key'], $context['lang'], $context['_parent'], $context['loop']);
  66.         $context array_intersect_key($context$_parent) + $_parent;
  67.         // line 14
  68.         echo "    </ul>
  69. </li>";
  70.         
  71.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  72.         
  73.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  74.     }
  75.     /**
  76.      * @codeCoverageIgnore
  77.      */
  78.     public function getTemplateName()
  79.     {
  80.         return "includes/language.html.twig";
  81.     }
  82.     /**
  83.      * @codeCoverageIgnore
  84.      */
  85.     public function isTraitable()
  86.     {
  87.         return false;
  88.     }
  89.     /**
  90.      * @codeCoverageIgnore
  91.      */
  92.     public function getDebugInfo()
  93.     {
  94.         return array (  77 => 14,  68 => 11,  64 => 10,  60 => 9,  57 => 8,  53 => 7,  45 => 1,);
  95.     }
  96.     public function getSourceContext()
  97.     {
  98.         return new Source("<li class=\"nav-item dropdown\">
  99.     <a class=\"dropdown-toggle py-2 d-none d-md-inline-block menu-icon ml-4\" data-toggle=\"dropdown\" href=\"#\">
  100.         <img src=\"/static/images/icons/language.svg\" />
  101.     </a>
  102.     <ul class=\"dropdown-menu\">
  103.         <span class=\"dropdown-menu-arrow search arrow\"></span>
  104.         {% for key, lang in get_localized_links(document) %}
  105.             <li>
  106.                 <a class=\"dropdown-item\" href=\"{{ lang.link }}\">
  107.                     <img class=\"language-switcher-img\" src=\"{{ get_language_flag(key) }}\" height=\"20\" width=\"25\">
  108.                     {{ lang.text }}</a>
  109.             </li>
  110.         {% endfor %}
  111.     </ul>
  112. </li>""includes/language.html.twig""/var/www/dev-10/templates/includes/language.html.twig");
  113.     }
  114.     
  115.     public function checkSecurity()
  116.     {
  117.         static $tags = array("for" => 7);
  118.         static $filters = array("escape" => 9);
  119.         static $functions = array("get_localized_links" => 7"get_language_flag" => 10);
  120.         try {
  121.             $this->sandbox->checkSecurity(
  122.                 ['for'],
  123.                 ['escape'],
  124.                 ['get_localized_links''get_language_flag']
  125.             );
  126.         } catch (SecurityError $e) {
  127.             $e->setSourceContext($this->source);
  128.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  129.                 $e->setTemplateLine($tags[$e->getTagName()]);
  130.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  131.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  132.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  133.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  134.             }
  135.             throw $e;
  136.         }
  137.     }
  138. }