| 4 |
lars |
1 |
<section class="aktion">
|
|
|
2 |
{if $aktion[0].art=='1' && $aktion[0].Kategorie=="Home"}
|
|
|
3 |
<div class="inner_slider">
|
|
|
4 |
{/if}
|
|
|
5 |
{foreach $aktion as $index => $values}
|
|
|
6 |
{if $values["art"] == '1' && $values["Kategorie"]=="Home"}
|
|
|
7 |
<script>
|
|
|
8 |
$(document).ready(function(){
|
|
|
9 |
var speed_{$values["ID"]} = 0;
|
|
|
10 |
var auto_{$values["ID"]} = false;
|
|
|
11 |
var mode_{$values["ID"]} = "fade";
|
|
|
12 |
var pagerCustom_{$values["ID"]} = false;
|
|
|
13 |
var pause_{$values["ID"]} = 5000;
|
|
|
14 |
var easing_{$values["ID"]} = "ease-in";
|
|
|
15 |
|
|
|
16 |
{if isset($values["config"]["verzoegerung"])}
|
|
|
17 |
speed_{$values["ID"]} = {$values["config"]["verzoegerung"]};
|
|
|
18 |
{/if}
|
|
|
19 |
{if isset($values["config"]["verzoegerung"]) && ($values["config"]["verzoegerung"] != 0 || $values["config"]["verzoegerung"] != "0")}
|
|
|
20 |
auto_{$values["ID"]} = "true";
|
|
|
21 |
{/if}
|
|
|
22 |
{if isset($values["config"]["effekt"])}
|
|
|
23 |
mode_{$values["ID"]} = "{$values["config"]["effekt"]}";
|
|
|
24 |
{/if}
|
|
|
25 |
{if isset($values["config"]["pause"])}
|
|
|
26 |
var pause_{$values["ID"]} = {$values["config"]["pause"]};
|
|
|
27 |
{/if}
|
|
|
28 |
{if isset($values["config"]["easing"])}
|
|
|
29 |
var easing_{$values["ID"]} = "{$values["config"]["easing"]}";
|
|
|
30 |
{/if}
|
|
|
31 |
{if isset($values["config"]["boxen"]) && $values["config"]["boxen"] == 1 || $values["config"]["boxen"] == "1"}
|
|
|
32 |
pagerCustom_{$values["ID"]} = ".bx-pager_{$values["ID"]}";
|
|
|
33 |
$(".aktion .bx-pager_{$values["ID"]}").css("display", "inline-block");
|
|
|
34 |
{/if}
|
|
|
35 |
|
|
|
36 |
slider_{$values["ID"]} = $(".aktion .slider_{$values["ID"]}").bxSlider({
|
|
|
37 |
autoHover: true,
|
|
|
38 |
adaptiveHeight: true,
|
|
|
39 |
responsive: true,
|
|
|
40 |
speed : speed_{$values["ID"]},
|
|
|
41 |
auto: auto_{$values["ID"]},
|
|
|
42 |
mode: mode_{$values["ID"]},
|
|
|
43 |
pagerCustom: pagerCustom_{$values["ID"]},
|
|
|
44 |
pause: pause_{$values["ID"]},
|
|
|
45 |
easing: easing_{$values["ID"]},
|
|
|
46 |
});
|
|
|
47 |
|
|
|
48 |
{if $values["config"]["navigation"] == 0}
|
|
|
49 |
$(".aktion .bx-controls").css("display", "none");
|
|
|
50 |
{/if}
|
|
|
51 |
{if isset($values["config"]["pfeile"]) && $values["config"]["pfeile"] == 0}
|
|
|
52 |
$(".aktion .bx-prev, .aktion .bx-next").css("display", "none");
|
|
|
53 |
{/if}
|
|
|
54 |
{if isset($values["config"]["kreise"]) && $values["config"]["kreise"] == 0}
|
|
|
55 |
$(".aktion .bx-pager-item, .aktion .bx-pager, .aktion .bx-default-pager ").css("display", "none");
|
|
|
56 |
{/if}
|
|
|
57 |
|
|
|
58 |
})
|
|
|
59 |
</script>
|
|
|
60 |
|
|
|
61 |
<style>
|
|
|
62 |
{if isset($values["config"]["kreise_oben"]) && $values["config"]["kreise_oben"] == 1}
|
|
|
63 |
.aktion .bx-wrapper .bx-pager {
|
|
|
64 |
top: 0px!important;
|
|
|
65 |
}
|
|
|
66 |
{/if}
|
|
|
67 |
/*Pfeile-aussen CSS*/
|
|
|
68 |
{if isset($values["config"]["pfeile_aussen"]) && $values["config"]["pfeile_aussen"] == 1}
|
|
|
69 |
.aktion .bx-prev, .aktion .bx-next {
|
|
|
70 |
margin-left: -70px !important;
|
|
|
71 |
margin-right: -75px !important;
|
|
|
72 |
}
|
|
|
73 |
{/if}
|
|
|
74 |
.aktion .bx-wrapper .bx-controls-direction a {
|
|
|
75 |
top: 0%!important;
|
|
|
76 |
margin-top: 14% !important;
|
|
|
77 |
}
|
|
|
78 |
|
|
|
79 |
.aktion .bx-prev, .aktion .bx-next {
|
|
|
80 |
margin-top: 450px !important;
|
|
|
81 |
}
|
|
|
82 |
.aktion .bx-wrapper {
|
|
|
83 |
/*padding-top:14%!important;*/
|
|
|
84 |
clear:both;
|
|
|
85 |
}
|
|
|
86 |
.aktion .bx-viewport {
|
|
|
87 |
width:100%!important;
|
|
|
88 |
|
|
|
89 |
padding:0!important;
|
|
|
90 |
border:none!important;
|
|
|
91 |
margin:0px 0 0 0%;
|
|
|
92 |
}
|
|
|
93 |
.bx-wrapper img{
|
|
|
94 |
width:100%!important;
|
|
|
95 |
}
|
|
|
96 |
</style>
|
|
|
97 |
<ul class="slider_{$values["ID"]}" style="clear:both;">
|
|
|
98 |
{foreach $values["bilder"] as $index => $bilderValues}
|
|
|
99 |
{if $bilderValues["filename_mobile"] != "" }
|
|
|
100 |
<li><a href="{$bilderValues["link"]}"><img src="/images/aktionen/1/{$bilderValues["filename_mobile"]}" title="" /></a></li>
|
|
|
101 |
{else}
|
|
|
102 |
<li><a href="{$bilderValues["link"]}"><img src="/images/aktionen/1/{$bilderValues["filename"]}" title="" /></a></li>
|
|
|
103 |
{/if}
|
|
|
104 |
{/foreach}
|
|
|
105 |
</ul>
|
|
|
106 |
|
|
|
107 |
<div class="bx-pager_{$values["ID"]}" style="display:none;padding-bottom:20px;float:left;margin-top: -40px;clear:both;">
|
|
|
108 |
{foreach $values["bilder"] as $index => $bilderValues}
|
|
|
109 |
<a style='float:left; border: 2px solid; margin-right:4px;height:50px; width: 50px;' data-slide-index="{$index}">
|
|
|
110 |
<img src="/images/aktionen/1/{$bilderValues["filename_mobile"]}" style='height:48px; width: 48px; margin:1px 1px 1px 1px;' />
|
|
|
111 |
</a>
|
|
|
112 |
{/foreach}
|
|
|
113 |
</div>
|
|
|
114 |
{if $aktion[0].art=='1' && $aktion[0].Kategorie=="Home"}
|
|
|
115 |
</div>
|
|
|
116 |
{/if}
|
|
|
117 |
|
|
|
118 |
|
|
|
119 |
{elseif $values["art"] == '0' && $values["Kategorie"]=="Home"}
|
|
|
120 |
|
|
|
121 |
<div class="aktion_100">
|
|
|
122 |
{if $values.headline or $values.text}
|
|
|
123 |
<div class="aktion_title" id="aktion_title"><div><h1>{$values.headline}</h1></div></div>
|
|
|
124 |
<p>{$values.text}</p>
|
|
|
125 |
{/if}
|
|
|
126 |
|
|
|
127 |
{if $values["bilder"]}
|
|
|
128 |
{foreach $values["bilder"] as $index => $bilderValues}
|
|
|
129 |
<div style="float:left;width:100%;">
|
|
|
130 |
{if $bilderValues["link"]}
|
|
|
131 |
<a href="{$bilderValues["link"]}">
|
|
|
132 |
{/if}
|
|
|
133 |
<img src="/images/aktionen/1/{$bilderValues["filename"]}" title="" style="width: 100%;" alt="AktionBild" />
|
|
|
134 |
{if $bilderValues["link"]}
|
|
|
135 |
</a>
|
|
|
136 |
{/if}
|
|
|
137 |
</div>
|
|
|
138 |
{/foreach}
|
|
|
139 |
{/if}
|
|
|
140 |
</div>
|
|
|
141 |
|
|
|
142 |
|
|
|
143 |
<!-- skonto und weber partner -->
|
|
|
144 |
|
|
|
145 |
<!--
|
|
|
146 |
<a href="http://www.grillshop-24.de/170-Weber-Exklusiv-2014/"><img src="/images/webelemente/weber-partner.jpg" /></a>
|
|
|
147 |
-->
|
|
|
148 |
|
|
|
149 |
|
|
|
150 |
{if $values.tagestipp}
|
|
|
151 |
<div class="box_2">
|
|
|
152 |
{include file="aktionTagestipp.tpl" aktion=$values}
|
|
|
153 |
</div>
|
|
|
154 |
{/if}
|
|
|
155 |
|
|
|
156 |
|
|
|
157 |
<div class="break"></div>
|
|
|
158 |
{/if}
|
|
|
159 |
{/foreach}
|
|
|
160 |
</section>
|
|
|
161 |
<style>
|
|
|
162 |
.aktion_scrolldown {
|
|
|
163 |
display:none;
|
|
|
164 |
}
|
|
|
165 |
</style>
|
|
|
166 |
<script>
|
|
|
167 |
$(document).ready(function(){
|
|
|
168 |
// insert scrolldown arrow
|
|
|
169 |
$('.bx-controls').prepend('<div class="aktion_scrolldown"><i class="fa fa-angle-double-down" aria-hidden="true"></i></div>');
|
|
|
170 |
|
|
|
171 |
$('.aktion_scrolldown').click(function(){
|
|
|
172 |
$("html, body").animate( { scrollTop: $('#einstieg').offset().top } , 500, 'easeOutQuint');
|
|
|
173 |
});
|
|
|
174 |
|
|
|
175 |
});
|
|
|
176 |
</script>
|