a6c2181019c0bd42d76aa37d1ab430f1.php
4.25 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
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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/extension/module/carousel.twig */
class __TwigTemplate_326e88fa5a1e8d2824b5dfd502a55eeb extends 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
yield "<div class=\"carousel swiper-viewport\">
<div id=\"carousel";
// line 2
yield ($context["module"] ?? null);
yield "\" class=\"swiper-container\">
<div class=\"swiper-wrapper\">";
// line 3
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(($context["banners"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["banner"]) {
// line 4
yield " <div class=\"swiper-slide text-center\">";
if (CoreExtension::getAttribute($this->env, $this->source, $context["banner"], "link", [], "any", false, false, false, 4)) {
yield "<a href=\"";
yield CoreExtension::getAttribute($this->env, $this->source, $context["banner"], "link", [], "any", false, false, false, 4);
yield "\"><img src=\"";
yield CoreExtension::getAttribute($this->env, $this->source, $context["banner"], "image", [], "any", false, false, false, 4);
yield "\" alt=\"";
yield CoreExtension::getAttribute($this->env, $this->source, $context["banner"], "title", [], "any", false, false, false, 4);
yield "\" class=\"img-responsive\" /></a>";
} else {
yield "<img src=\"";
yield CoreExtension::getAttribute($this->env, $this->source, $context["banner"], "image", [], "any", false, false, false, 4);
yield "\" alt=\"";
yield CoreExtension::getAttribute($this->env, $this->source, $context["banner"], "title", [], "any", false, false, false, 4);
yield "\" class=\"img-responsive\" />";
}
yield "</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['banner'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 5
yield "</div>
</div>
<div class=\"swiper-pagination carousel";
// line 7
yield ($context["module"] ?? null);
yield "\"></div>
<div class=\"swiper-pager\">
<div class=\"swiper-button-next\"></div>
<div class=\"swiper-button-prev\"></div>
</div>
</div>
<script type=\"text/javascript\"><!--
\$('#carousel";
// line 14
yield ($context["module"] ?? null);
yield "').swiper({
\tmode: 'horizontal',
\tslidesPerView: 5,
\tpagination: '.carousel";
// line 17
yield ($context["module"] ?? null);
yield "',
\tpaginationClickable: true,
\tnextButton: '.carousel .swiper-button-next',
prevButton: '.carousel .swiper-button-prev',
\tautoplay: 2500,
\tloop: true
});
--></script>";
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "default/template/extension/module/carousel.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 92 => 17, 86 => 14, 76 => 7, 72 => 5, 49 => 4, 45 => 3, 41 => 2, 38 => 1,);
}
public function getSourceContext()
{
return new Source("", "default/template/extension/module/carousel.twig", "");
}
}