parent = false;
$this->blocks = array(
);
}
protected function doDisplay(array $context, array $blocks = array())
{
// line 1
$context["css_classes_flag"] = twig_trim_filter(("wpml-ls-flag " . $this->getAttribute((isset($context["backward_compatibility"]) ? $context["backward_compatibility"] : null), "css_classes_flag", array())));
// line 2
$context["css_classes_native"] = twig_trim_filter(("wpml-ls-native " . $this->getAttribute((isset($context["backward_compatibility"]) ? $context["backward_compatibility"] : null), "css_classes_native", array())));
// line 3
$context["css_classes_display"] = twig_trim_filter(("wpml-ls-display " . $this->getAttribute((isset($context["backward_compatibility"]) ? $context["backward_compatibility"] : null), "css_classes_display", array())));
// line 4
$context["css_classes_bracket"] = twig_trim_filter(("wpml-ls-bracket " . $this->getAttribute((isset($context["backward_compatibility"]) ? $context["backward_compatibility"] : null), "css_classes_bracket", array())));
// line 5
$context["css_classes_link"] = twig_trim_filter(("wpml-ls-link " . $this->getAttribute($this->getAttribute((isset($context["language"]) ? $context["language"] : null), "backward_compatibility", array()), "css_classes_a", array())));
// line 6
echo "
env, (isset($context["css_classes"]) ? $context["css_classes"] : null), "html", null, true);
echo " wpml-ls-legacy-list-horizontal\"";
if ($this->getAttribute((isset($context["backward_compatibility"]) ? $context["backward_compatibility"] : null), "css_id", array())) {
echo " id=\"";
echo twig_escape_filter($this->env, $this->getAttribute((isset($context["backward_compatibility"]) ? $context["backward_compatibility"] : null), "css_id", array()), "html", null, true);
echo "\"";
}
echo ">
\t
";
// line 10
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["languages"]) ? $context["languages"] : null));
foreach ($context['_seq'] as $context["code"] => $context["language"]) {
// line 11
echo "- env, $this->getAttribute($context["language"], "css_classes", array()), "html", null, true);
echo " wpml-ls-item-legacy-list-horizontal\">
\t\t\t\tenv, $this->getAttribute($context["language"], "url", array()), "html", null, true);
echo "\" class=\"";
echo twig_escape_filter($this->env, (isset($context["css_classes_link"]) ? $context["css_classes_link"] : null), "html", null, true);
echo "\">";
// line 13
if ($this->getAttribute($context["language"], "flag_url", array())) {
// line 14
echo "
env, (isset($context["css_classes_flag"]) ? $context["css_classes_flag"] : null), "html", null, true);
echo "\" src=\"";
echo twig_escape_filter($this->env, $this->getAttribute($context["language"], "flag_url", array()), "html", null, true);
echo "\" alt=\"";
echo twig_escape_filter($this->env, $this->getAttribute($context["language"], "code", array()), "html", null, true);
echo "\" title=\"";
echo twig_escape_filter($this->env, $this->getAttribute($context["language"], "flag_title", array()), "html", null, true);
echo "\">";
}
// line 17
if (($this->getAttribute($context["language"], "is_current", array()) && ($this->getAttribute($context["language"], "native_name", array()) || $this->getAttribute($context["language"], "display_name", array())))) {
// line 19
$context["current_language_name"] = (($this->getAttribute($context["language"], "native_name", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute($context["language"], "native_name", array()), $this->getAttribute($context["language"], "display_name", array()))) : ($this->getAttribute($context["language"], "display_name", array())));
// line 20
echo "env, (isset($context["css_classes_native"]) ? $context["css_classes_native"] : null), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, (isset($context["current_language_name"]) ? $context["current_language_name"] : null), "html", null, true);
echo "";
} else {
// line 24
if ($this->getAttribute($context["language"], "native_name", array())) {
// line 25
echo "env, (isset($context["css_classes_native"]) ? $context["css_classes_native"] : null), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, $this->getAttribute($context["language"], "native_name", array()), "html", null, true);
echo "";
}
// line 28
if ($this->getAttribute($context["language"], "display_name", array())) {
// line 29
echo "env, (isset($context["css_classes_display"]) ? $context["css_classes_display"] : null), "html", null, true);
echo "\">";
// line 30
if ($this->getAttribute($context["language"], "native_name", array())) {
echo "env, (isset($context["css_classes_bracket"]) ? $context["css_classes_bracket"] : null), "html", null, true);
echo "\"> (";
}
// line 31
echo twig_escape_filter($this->env, $this->getAttribute($context["language"], "display_name", array()), "html", null, true);
// line 32
if ($this->getAttribute($context["language"], "native_name", array())) {
echo "env, (isset($context["css_classes_bracket"]) ? $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 ( 120 => 41, 113 => 37, 109 => 33, 103 => 32, 101 => 31, 95 => 30, 91 => 29, 89 => 28, 82 => 25, 80 => 24, 73 => 20, 71 => 19, 69 => 17, 58 => 14, 56 => 13, 51 => 12, 46 => 11, 42 => 10, 32 => 7, 29 => 6, 27 => 5, 25 => 4, 23 => 3, 21 => 2, 19 => 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 Twig_Source("", "template.twig", "/home/darwin/public_html/wp-content/plugins/sitepress-multilingual-cms/templates/language-switchers/legacy-list-horizontal/template.twig");
}
}