76eef1435adc59884b4a2d9819c802d67275eb5bb8e635ccc5f3e54e13891b5d.php
3.49 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
<?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/extension/module/banner.twig */
class __TwigTemplate_9216e8c0a91492b2711969861742c88676fbf2c7049554ca627d2ff700fbe872 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
echo "<div class=\"swiper-viewport\">
<div id=\"banner";
// line 2
echo ($context["module"] ?? null);
echo "\" class=\"swiper-container\">
<div class=\"swiper-wrapper\">";
// line 3
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(($context["banners"] ?? null));
foreach ($context['_seq'] as $context["_key"] => $context["banner"]) {
// line 4
echo " <div class=\"swiper-slide\">";
if (twig_get_attribute($this->env, $this->source, $context["banner"], "link", [], "any", false, false, false, 4)) {
echo "<a href=\"";
echo twig_get_attribute($this->env, $this->source, $context["banner"], "link", [], "any", false, false, false, 4);
echo "\"><img src=\"";
echo twig_get_attribute($this->env, $this->source, $context["banner"], "image", [], "any", false, false, false, 4);
echo "\" alt=\"";
echo twig_get_attribute($this->env, $this->source, $context["banner"], "title", [], "any", false, false, false, 4);
echo "\" class=\"img-responsive\" /></a>";
} else {
echo "<img src=\"";
echo twig_get_attribute($this->env, $this->source, $context["banner"], "image", [], "any", false, false, false, 4);
echo "\" alt=\"";
echo twig_get_attribute($this->env, $this->source, $context["banner"], "title", [], "any", false, false, false, 4);
echo "\" class=\"img-responsive\" />";
}
echo "</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
echo "</div>
</div>
</div>
<script type=\"text/javascript\"><!--
\$('#banner";
// line 9
echo ($context["module"] ?? null);
echo "').swiper({
\teffect: 'fade',
\tautoplay: 2500,
autoplayDisableOnInteraction: false
});
--></script> ";
}
public function getTemplateName()
{
return "default/template/extension/module/banner.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 77 => 9, 71 => 5, 48 => 4, 44 => 3, 40 => 2, 37 => 1,);
}
public function getSourceContext()
{
return new Source("", "default/template/extension/module/banner.twig", "");
}
}