Subversion-Projekte lars-tiefland.ci

Revision

Revision 42 | Details | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

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