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