277b3f8f18af1e017b211cdc487cf228226d5ee89ccb51af3808d8b21a0118fe.php
5.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* default/template/common/language.twig */
class __TwigTemplate_f2994740b617d18e23ed8ab68913987326a3cfc1c1d49dd8113141a20b4fdd61 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
// line 1
if ((twig_length_filter($this->env, ($context["languages"] ?? null)) > 1)) {
// line 2
echo "<div class=\"pull-left\">
<form action=\"";
// line 3
echo ($context["action"] ?? null);
echo "\" method=\"post\" enctype=\"multipart/form-data\" id=\"form-language\">
<div class=\"btn-group\">
<button class=\"btn btn-link dropdown-toggle\" data-toggle=\"dropdown\">
";
// line 6
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["languages"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["language"]) {
// line 7
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["language"], "code", [], "any", false, false, false, 7) == ($context["code"] ?? null))) {
echo "
<img src=\"catalog/language/";
// line 8
echo twig_get_attribute($this->env, $this->source, $context["language"], "code", [], "any", false, false, false, 8);
echo "/";
echo twig_get_attribute($this->env, $this->source, $context["language"], "code", [], "any", false, false, false, 8);
echo ".png\" alt=\"";
echo twig_get_attribute($this->env, $this->source, $context["language"], "name", [], "any", false, false, false, 8);
echo "\" title=\"";
echo twig_get_attribute($this->env, $this->source, $context["language"], "name", [], "any", false, false, false, 8);
echo "\">
";
}
// line 10
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['language'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 11
echo " <span class=\"hidden-xs hidden-sm hidden-md\">";
echo ($context["text_language"] ?? null);
echo "</span> <i class=\"fa fa-caret-down\"></i></button>
<ul class=\"dropdown-menu\">
";
// line 13
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["languages"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["language"]) {
// line 14
echo " <li>
<button class=\"btn btn-link btn-block language-select\" type=\"button\" name=\"";
// line 15
echo twig_get_attribute($this->env, $this->source, $context["language"], "code", [], "any", false, false, false, 15);
echo "\"><img src=\"catalog/language/";
echo twig_get_attribute($this->env, $this->source, $context["language"], "code", [], "any", false, false, false, 15);
echo "/";
echo twig_get_attribute($this->env, $this->source, $context["language"], "code", [], "any", false, false, false, 15);
echo ".png\" alt=\"";
echo twig_get_attribute($this->env, $this->source, $context["language"], "name", [], "any", false, false, false, 15);
echo "\" title=\"";
echo twig_get_attribute($this->env, $this->source, $context["language"], "name", [], "any", false, false, false, 15);
echo "\" /> ";
echo twig_get_attribute($this->env, $this->source, $context["language"], "name", [], "any", false, false, false, 15);
echo "</button>
</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 18
echo " </ul>
</div>
<input type=\"hidden\" name=\"code\" value=\"\" />
<input type=\"hidden\" name=\"redirect\" value=\"";
// line 21
echo ($context["redirect"] ?? null);
echo "\" />
</form>
</div>
";
}
}
public function getTemplateName()
{
return "default/template/common/language.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 111 => 21, 106 => 18, 87 => 15, 84 => 14, 80 => 13, 74 => 11, 68 => 10, 57 => 8, 52 => 7, 48 => 6, 42 => 3, 39 => 2, 37 => 1,);
}
public function getSourceContext()
{
return new Source("", "default/template/common/language.twig", "");
}
}