Subversion-Projekte lars-tiefland.zeldi.de_alt

Revision

Revision 38 | Revision 41 | Zur aktuellen Revision | Details | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
2 lars 1
{extends file="page.tpl"}
2
{block name=content}
3
<!-- $Id: subdir.tpl 2980 2022-12-01 11:45:36Z erling $ BEGIN -->
4
 
5
    {include file="shopposition.tpl"}
6
 
7
<div class="subdir_info_wrapper">
8
    {if is_countable($subdir->medium) && count($subdir->medium) > 0}
38 lars 9
        {if $subdir->medium[1]->medium->name}
2 lars 10
            <div class="subdir_bild">
38 lars 11
                {if $subdir->medium[1]->medium->name}
12
                    <img src="/images/upload/{$subdir->medium[1]->medium->folder}/gr/{$subdir->medium[1]->medium->name}" alt="">
2 lars 13
                {/if}
14
            </div>
38 lars 15
        {elseif $subdir->medien[0]->medium->name}
16
            <div class="subdir_bild">
17
                <img src="/images/upload/{$subdir->medium[0]->medium->folder}/gr/{$subdir->medium[0]->medium->name}" alt="">
2 lars 18
            </div>
19
        {/if}
20
    {/if}
21
 
22
    {if $subdir->description}
23
        <div class="subdir_text">
24
            <h1>{$subdir->Alternativer_Titel|default:$subdir->name}</h1>
25
            {$subdir->description}
26
 
27
            {if $subdir->description2}
28
                <p class="infotext_subdir"><a href="#infotext">Mehr lesen</a></p>
29
            {/if}
30
        </div>
31
    {/if}
32
</div>
33
 
8 lars 34
{if $subdir->subdirs|count}
2 lars 35
<div class="subdir">
36
    {foreach $subdir->subdirs as $subDir}
37
    <div class="box_subdir">
10 lars 38
            <a href="/directory/{$subDir->id}-{$subDir->slug}">
2 lars 39
                <div class="top"
40
                {if $subDir->medium[0]->medium->name != ''}
41
                    style="
42
                        background: url('/images/upload/{$subDir->medium[0]->medium->folder}/gr/{$subDir->medium[0]->medium->name}') no-repeat center;
43
                        background-size:cover;
44
                    "
45
                {/if}
46
                >
47
 
48
                </div>
49
                <div class="bottom bold">
50
                    <span>{$subDir->name}</span>
51
                </div>
52
            </a>
53
        </div>
54
    {/foreach}
55
</div>
56
{/if}
57
 
58
<div class="subdir_artikel_wrapper">
59
    {if is_countable($subdir->items)}
60
        {if count($subdir->items) > 0}
61
 
62
 
63
            {if (isset($dropdown_opts) && ($dropdown_opts|count>0 )|| ( isset($bool_opts) && $bool_opts|count>0)) && $ini.filter_auspraegungen==1}
64
                <div class="subdir_sort loading">
65
                    <form name="sort" action="" method="get" id="modellForm1">
66
                        <strong>Produktfilter:</strong>
67
                        <div class="break"></div>
68
            	        <input type="hidden" name="navigation" value="{$subdir->id}" />
69
                        <input type="hidden" name="Father" value="{$subdir->id}" />
70
                        {include file="auspraegungen.tpl" nocache}
71
            	    </form>
72
                </div>
73
            {/if}
74
 
75
 
76
            {if $smarty.const.USE_SMARTY_PAGINATE===true}
77
            {include file="pagination.tpl"}
78
            {/if}
79
 
80
            {if $ini.subdir.switch_css==1}
81
            {include file="switch_css.tpl"}
82
            {/if}
83
            <div class="subdir_artikel">
84
                {foreach $subdir->items as $item}
85
                    {if $item->articlemaster==1}
86
                        {include file="subdir_artstamm.tpl"  artstamm=$item}
87
                    {else}
88
                        {include file="item_small.tpl"}
89
                    {/if}
90
                {/foreach}
91
            </div>
92
 
93
            {if $smarty.const.USE_SMARTY_PAGINATE===true}
94
                {include file="pagination.tpl"}
95
            {/if}
96
 
97
        {/if}
98
    {else}
99
        <div class="box_2">
100
            <div class="box_top">&nbsp;</div>
101
            <div class="box_middle">Keine Artikel gefunden</div>
102
        </div>
103
    {/if}
104
    <div class="break"></div>
105
 
106
    {if $subdir->description2}
107
    <section id="infotext">
108
        <div class="inner">
109
            <div id="beschreibung2">
110
                <a name="infotext" id="infotext"></a>
111
                {$subdir->description2}
112
                <p class="topbutton_text"><a href="#top">Nach oben</a></p>
113
            </div>
114
        </div>
115
    </section>
116
    {/if}
117
 
118
</div>
119
 
120
<script>
121
    $(".box_subdir"). click(function(){
122
        window.location.href = $('.bottom a', this).attr("href");
123
    })
124
 
125
    $('.infotext_subdir a').click(function(e){
126
        e.preventDefault();
127
        let target = $(this).attr('href');
128
        //let offset = $(target).offset();
129
        let scrollTo = $(target).offset().top;
130
        $("html, body").animate( { scrollTop: scrollTo }, 800, 'swing');
131
    });
132
 
133
</script>
134
 
135
<script>
136
    $(document).ready(function() {
137
        $('.tooltip_opener').mouseenter(function(){
138
            let id = $(this).attr('id');
139
            id = id.split("_");
140
            id = id[1];
141
 
142
            $('#tooltip_'+id).css("display","block");
143
        }).mouseleave(function(){
144
            $('.tooltip').hide();
145
        });
146
    });
147
</script>
148
<script>
149
    $(document).ready(function () {
150
 
151
        // ME: update filter using session data
152
        /*
153
        if($.session._cookieCache) {
154
            $.each($.session._cookieCache, function(index,value){
155
                console.log(index + " - " + value);
156
                var type = $("#" + index).attr("type");
157
                switch(type) {
158
                    case "checkbox":
159
                        $('#' + index).trigger("click");
160
                    break;
161
                    default:
162
                    break;
163
                }
164
            });
165
        }
166
        */
167
 
168
        $(".newsorting").css("display", "none");
169
 
170
        $("#drsort").change(function () {
171
 
172
            $(".box_2").css("background-color", "transparent");
173
            $(".subdir_artikel").css("background-color", "#ccc");
174
            $(".loader").show();
175
 
176
            let selid = $('#drsort').val();
177
            let mode = "result";
178
 
179
            let daten = $('#modellForm1').serializeArray();
180
            $.ajax({
181
                type: "POST",
182
                url: "/module/artikelmodell.php?mode=" + mode + "&sort=" + selid,
183
                data: daten,
184
                async: false,
185
                success: function (html) {
186
 
187
                    if (mode === "result") {
188
                        $(".pagination_container").css("display", "none");
189
 
190
                        $('.subdir_artikel').html(html);
191
                        $(".subdir_artikel").css("background-color", "transparent");
192
                        $(".loader").hide();
193
 
194
                        $(".newsorting").css("display", "block");
195
 
196
                    }
197
                }
198
            })
199
 
200
        });
201
    })
202
</script>
203
<style>
204
 
205
.item_slider_img:hover img {
206
    scale:110%;
207
}
208
 
209
</style>
210
<!-- $Id: subdir.tpl 2980 2022-12-01 11:45:36Z erling $ END -->
211
{/block}
212