| 4 |
lars |
1 |
<!-- $Id: aktion_sliderVorschau_v3.tpl 2696 2022-03-01 11:43:15Z tiefland $ BEGIN -->
|
|
|
2 |
<script>
|
|
|
3 |
$(document).ready(function(){
|
|
|
4 |
|
|
|
5 |
let speed = 0;
|
|
|
6 |
let auto = false;
|
|
|
7 |
let mode = "fade";
|
|
|
8 |
let pagerCustom = false;
|
|
|
9 |
let video = false;
|
|
|
10 |
let pause = 8000;
|
|
|
11 |
let easing = "ease-in";
|
|
|
12 |
let infiniteLoop = "true";
|
|
|
13 |
console.log("{$sliderConfig.verzoegerung}")
|
|
|
14 |
{if isset($sliderConfig["verzoegerung"])}
|
|
|
15 |
speed = {$sliderConfig["verzoegerung"]}
|
|
|
16 |
{/if}
|
|
|
17 |
console.log(speed);
|
|
|
18 |
{if isset($sliderConfig["verzoegerung"]) && ($sliderConfig["verzoegerung"] != 0 || $sliderConfig["verzoegerung"] != "0")}
|
|
|
19 |
auto = "true";
|
|
|
20 |
{/if}
|
|
|
21 |
{if isset($sliderConfig["effekt"])}
|
|
|
22 |
mode = "{$sliderConfig["effekt"]}";
|
|
|
23 |
{/if}
|
|
|
24 |
{if isset($sliderConfig["pause"])}
|
|
|
25 |
pause = {$sliderConfig["pause"]};
|
|
|
26 |
{/if}
|
|
|
27 |
{if isset($sliderConfig["easing"])}
|
|
|
28 |
easing = "{$sliderConfig["easing"]}";
|
|
|
29 |
{/if}
|
|
|
30 |
{if isset($sliderConfig["infiniteLoop"])}
|
|
|
31 |
infiniteLoop = "{$sliderConfig["infiniteLoop"]}";
|
|
|
32 |
{/if}
|
|
|
33 |
{if isset($sliderConfig["boxen"]) && $sliderConfig["boxen"] == 1}
|
|
|
34 |
pagerCustom = "#bx-pager";
|
|
|
35 |
$("#bx-pager").css("display", "block");
|
|
|
36 |
{/if}
|
|
|
37 |
{if isset($sliderConfig["video"]) && $sliderConfig["video"] == 1}
|
|
|
38 |
video = true;
|
|
|
39 |
{/if}
|
|
|
40 |
slider = $(".slidervorschau3").bxSlider({
|
|
|
41 |
autoHover: true,
|
|
|
42 |
adaptiveHeight: true,
|
|
|
43 |
responsive: true,
|
|
|
44 |
speed : speed,
|
|
|
45 |
auto: auto,
|
|
|
46 |
mode: mode,
|
|
|
47 |
pagerCustom: pagerCustom,
|
|
|
48 |
pause: pause,
|
|
|
49 |
easing: easing
|
|
|
50 |
});
|
|
|
51 |
{if $sliderConfig["navigation"] == 0}
|
|
|
52 |
$(".bx-controls").css("display", "none");
|
|
|
53 |
{/if}
|
|
|
54 |
{if isset($sliderConfig["pfeile"]) && $sliderConfig["pfeile"] == 0}
|
|
|
55 |
$(".bx-prev, .bx-next").css("display", "none");
|
|
|
56 |
{/if}
|
|
|
57 |
{if isset($sliderConfig["kreise"]) && $sliderConfig["kreise"] == 0}
|
|
|
58 |
$(" .bx-pager-item, .bx-pager bx-default-pager ").css("display", "none");
|
|
|
59 |
{/if}
|
|
|
60 |
|
|
|
61 |
})
|
|
|
62 |
</script>
|
|
|
63 |
<style>
|
|
|
64 |
{if isset($sliderConfig["kreise_oben"]) && $sliderConfig["kreise_oben"] == 1}
|
|
|
65 |
.bx-wrapper .bx-pager
|
|
|
66 |
{
|
|
|
67 |
top: 0px!important;
|
|
|
68 |
}
|
|
|
69 |
{/if}
|
|
|
70 |
/*Pfeile-aussen CSS*/
|
|
|
71 |
{if isset($sliderConfig["pfeile_aussen"]) && $sliderConfig["pfeile_aussen"] == 1}
|
|
|
72 |
.bx-prev, .bx-next
|
|
|
73 |
{
|
|
|
74 |
margin-left: -70px !important;
|
|
|
75 |
margin-right: -75px !important;
|
|
|
76 |
}
|
|
|
77 |
{/if}
|
|
|
78 |
</style>
|
|
|
79 |
<ul class='slidervorschau3'>
|
|
|
80 |
{foreach $aktion["medien"] as $key => $medium}
|
|
|
81 |
<li>
|
|
|
82 |
{if isset($aktion["video"][$key]) && $aktion["video"][$key] == 1}
|
|
|
83 |
<iframe height="200" src="{$aktion["links"][$key]}" frameborder="0" allowfullscreen></iframe>
|
|
|
84 |
{else}
|
|
|
85 |
<img src="{$medium->medium.abs_bild_url}" alt=""/>
|
|
|
86 |
{/if}
|
|
|
87 |
</li>
|
|
|
88 |
{/foreach}
|
|
|
89 |
</ul>
|
|
|
90 |
<div id="bx-pager" style="display:none;">
|
|
|
91 |
{foreach $aktion["medien"] as $key => $medium}
|
|
|
92 |
<a style='float:left; border: 2px solid; margin-right:4px;height:50px; width: 50px;' data-slide-index="{$key}"><img src="{$medium->medium.abs_bild_url}" style='height:48px; width: 48px; margin:1px 1px 1px 1px;' alt="" /></a>
|
|
|
93 |
{/foreach}
|
|
|
94 |
</div>
|
|
|
95 |
<style>
|
|
|
96 |
.bx-wrapper{
|
|
|
97 |
display: block!important;
|
|
|
98 |
}
|
|
|
99 |
.bx-viewport{
|
|
|
100 |
display: inline-block!important;
|
|
|
101 |
}
|
|
|
102 |
</style>
|
|
|
103 |
<!-- $Id: aktion_sliderVorschau_v3.tpl 2696 2022-03-01 11:43:15Z tiefland $ END -->
|