parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
// line 1
$context["css_classes_flag"] = \WPML\Core\twig_trim_filter(("wpml-ls-flag " . $this->getAttribute(($context["backward_compatibility"] ?? null), "css_classes_flag", [])));
// line 2
$context["css_classes_native"] = \WPML\Core\twig_trim_filter(("wpml-ls-native " . $this->getAttribute(($context["backward_compatibility"] ?? null), "css_classes_native", [])));
// line 3
$context["css_classes_display"] = \WPML\Core\twig_trim_filter(("wpml-ls-display " . $this->getAttribute(($context["backward_compatibility"] ?? null), "css_classes_display", [])));
// line 4
$context["css_classes_bracket"] = \WPML\Core\twig_trim_filter(("wpml-ls-bracket " . $this->getAttribute(($context["backward_compatibility"] ?? null), "css_classes_bracket", [])));
// line 5
$context["css_classes_link"] = \WPML\Core\twig_trim_filter(("wpml-ls-link " . $this->getAttribute($this->getAttribute(($context["language"] ?? null), "backward_compatibility", []), "css_classes_a", [])));
// line 6
echo "
env, ($context["css_classes"] ?? null), "html", null, true);
echo " wpml-ls-legacy-list-horizontal\"";
if ($this->getAttribute(($context["backward_compatibility"] ?? null), "css_id", [])) {
echo " id=\"";
echo \WPML\Core\twig_escape_filter($this->env, $this->getAttribute(($context["backward_compatibility"] ?? null), "css_id", []), "html", null, true);
echo "\"";
}
echo ">
\t
";
// line 10
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["languages"] ?? null));
foreach ($context['_seq'] as $context["code"] => $context["language"]) {
// line 11
echo "- env, $this->getAttribute($context["language"], "css_classes", []), "html", null, true);
echo " wpml-ls-item-legacy-list-horizontal\">
\t\t\t\tenv, $this->getAttribute($context["language"], "url", []), "html", null, true);
echo "\" class=\"";
echo \WPML\Core\twig_escape_filter($this->env, ($context["css_classes_link"] ?? null), "html", null, true);
echo "\">";
// line 13
if ($this->getAttribute($context["language"], "flag_url", [])) {
// line 14
echo "
env, ($context["css_classes_flag"] ?? null), "html", null, true);
echo "\" src=\"";
echo \WPML\Core\twig_escape_filter($this->env, $this->getAttribute($context["language"], "flag_url", []), "html", null, true);
echo "\" alt=\"";
echo \WPML\Core\twig_escape_filter($this->env, $this->getAttribute($context["language"], "flag_alt", []), "html", null, true);
echo "\">";
}
// line 17
if (($this->getAttribute($context["language"], "is_current", []) && ($this->getAttribute($context["language"], "native_name", []) || $this->getAttribute($context["language"], "display_name", [])))) {
// line 19
$context["current_language_name"] = (($this->getAttribute($context["language"], "native_name", [], "any", true, true)) ? (\WPML\Core\_twig_default_filter($this->getAttribute($context["language"], "native_name", []), $this->getAttribute($context["language"], "display_name", []))) : ($this->getAttribute($context["language"], "display_name", [])));
// line 20
echo "env, ($context["css_classes_native"] ?? null), "html", null, true);
echo "\">";
echo \WPML\Core\twig_escape_filter($this->env, ($context["current_language_name"] ?? null), "html", null, true);
echo "";
} else {
// line 24
if ($this->getAttribute($context["language"], "native_name", [])) {
// line 25
echo "env, ($context["css_classes_native"] ?? null), "html", null, true);
echo "\" lang=\"";
echo \WPML\Core\twig_escape_filter($this->env, $this->getAttribute($context["language"], "code", []), "html", null, true);
echo "\">";
echo \WPML\Core\twig_escape_filter($this->env, $this->getAttribute($context["language"], "native_name", []), "html", null, true);
echo "";
}
// line 28
if ($this->getAttribute($context["language"], "display_name", [])) {
// line 29
echo "env, ($context["css_classes_display"] ?? null), "html", null, true);
echo "\">";
// line 30
if ($this->getAttribute($context["language"], "native_name", [])) {
echo "env, ($context["css_classes_bracket"] ?? null), "html", null, true);
echo "\"> (";
}
// line 31
echo \WPML\Core\twig_escape_filter($this->env, $this->getAttribute($context["language"], "display_name", []), "html", null, true);
// line 32
if ($this->getAttribute($context["language"], "native_name", [])) {
echo "env, ($context["css_classes_bracket"] ?? null), "html", null, true);
echo "\">)";
}
// line 33
echo "";
}
}
// line 37
echo "
\t\t\t ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['code'], $context['language'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 41
echo "
";
}
public function getTemplateName()
{
return "template.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 133 => 41, 126 => 37, 122 => 33, 116 => 32, 114 => 31, 108 => 30, 104 => 29, 102 => 28, 93 => 25, 91 => 24, 84 => 20, 82 => 19, 80 => 17, 71 => 14, 69 => 13, 64 => 12, 59 => 11, 55 => 10, 45 => 7, 42 => 6, 40 => 5, 38 => 4, 36 => 3, 34 => 2, 32 => 1,);
}
/** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
public function getSource()
{
@trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);
return $this->getSourceContext()->getCode();
}
public function getSourceContext()
{
return new Source("", "template.twig", "C:\\webserver\\htdocs\\index\\wp-content\\plugins\\sitepress-multilingual-cms\\templates\\language-switchers\\legacy-list-horizontal\\template.twig");
}
}