<?php

/* mart/template/common/language.twig */
class __TwigTemplate_1c151bbf9ba316ebd1bb61d0cfe9d5e1777ddbf2cb1da1433ee39b0a543d9ac8 extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = array(
        );
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        // line 1
        if ((twig_length_filter($this->env, (isset($context["languages"]) ? $context["languages"] : null)) > 1)) {
            // line 2
            echo "<h3>";
            echo (isset($context["text_language"]) ? $context["text_language"] : null);
            echo "</h3>
<form action=\"";
            // line 3
            echo (isset($context["action"]) ? $context["action"] : null);
            echo "\" method=\"post\" enctype=\"multipart/form-data\" id=\"form-language\">
  <ul class=\"list-unstyled\">
    ";
            // line 5
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["languages"]) ? $context["languages"] : null));
            foreach ($context['_seq'] as $context["_key"] => $context["language"]) {
                // line 6
                echo "    <li><a href=\"";
                echo $this->getAttribute($context["language"], "code", array());
                echo "\" class=\"language-select\">";
                echo $this->getAttribute($context["language"], "name", array());
                echo "</a></li>
    ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['language'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 8
            echo "  </ul>
  <input type=\"hidden\" name=\"code\" value=\"\" />
  <input type=\"hidden\" name=\"redirect\" value=\"";
            // line 10
            echo (isset($context["redirect"]) ? $context["redirect"] : null);
            echo "\" />
</form>
";
        }
    }

    public function getTemplateName()
    {
        return "mart/template/common/language.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  50 => 10,  46 => 8,  35 => 6,  31 => 5,  26 => 3,  21 => 2,  19 => 1,);
    }
}
/* {% if languages|length > 1 %}*/
/* <h3>{{ text_language}}</h3>*/
/* <form action="{{ action }}" method="post" enctype="multipart/form-data" id="form-language">*/
/*   <ul class="list-unstyled">*/
/*     {% for language in languages %}*/
/*     <li><a href="{{ language.code }}" class="language-select">{{ language.name }}</a></li>*/
/*     {% endfor %}*/
/*   </ul>*/
/*   <input type="hidden" name="code" value="" />*/
/*   <input type="hidden" name="redirect" value="{{ redirect }}" />*/
/* </form>*/
/* {% endif %}*/
/* */
