1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,186 @@ |
1 |
+<!-- indexer::stop --> |
|
2 |
+<?php $GLOBALS['TL_JAVASCRIPT']['9998'] = 'https://cdnjs.cloudflare.com/ajax/libs/jqueryui-touch-punch/0.2.3/jquery.ui.touch-punch.min.js'; ?> |
|
3 |
+<?php $GLOBALS['TL_JAVASCRIPT']['9999'] = 'https://code.jquery.com/ui/1.12.1/jquery-ui.js'; ?> |
|
4 |
+<?php $GLOBALS['TL_CSS'][] = '//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css'; ?> |
|
5 |
+ |
|
6 |
+<div class="<?php echo $this->class; ?> block<?php if($this->onlyFilter): ?> only-filter<?php endif; ?>"<?php echo $this->cssID; ?><?php if ($this->style): ?> style="<?php echo $this->style; ?>"<?php endif; ?>> |
|
7 |
+ |
|
8 |
+ <?php if ($this->headline): ?> |
|
9 |
+ <<?php echo $this->hl; ?>><?php echo $this->headline; ?></<?php echo $this->hl; ?>> |
|
10 |
+ <?php endif; ?> |
|
11 |
+ |
|
12 |
+ <?php if(!$this->hideFilters): ?> |
|
13 |
+ <div class="md-filters<?php if($this->openFilters): ?> open-filters<?php endif; ?>"> |
|
14 |
+ <?php if(!$this->openFilters): ?><button id="showFilters"><i class="demo-icon icon-filter"></i> Erweiterte Suche</button><?php endif; ?> |
|
15 |
+ <?php if($this->onlyFilter): ?> |
|
16 |
+ <div class="md-filters-header"> |
|
17 |
+ <div class="md-filter-sort button-group"> |
|
18 |
+ <i class="icon-sort"></i> |
|
19 |
+ <select class="md-select sorting"> |
|
20 |
+ <option value="original-order" data-filter="original-order" data-filter-type="sort" title="Keine Sortierung" |
|
21 |
+ selected>Sortierung |
|
22 |
+ </option> |
|
23 |
+ <option value="price" data-filter="price" data-filter-type="sort" title="nach Preis sortieren">Preis</option> |
|
24 |
+ <option value="title" data-filter="title" data-filter-type="sort" title="nach Name sortieren">Name</option> |
|
25 |
+ <option value="power" data-filter="power" data-filter-type="sort" title="nach Leistung sortieren">Leistung |
|
26 |
+ </option> |
|
27 |
+ <option value="mileage" data-filter="mileage" data-filter-type="sort" title="nach Kilometerstand sortieren"> |
|
28 |
+ Kilometerstand |
|
29 |
+ </option> |
|
30 |
+ </select> |
|
31 |
+ </div> |
|
32 |
+ </div> |
|
33 |
+ <?php endif; ?> |
|
34 |
+ <div class="md-filters-body"<?php if($this->onlyFilter): ?> style='display:block;'<?php endif; ?>> |
|
35 |
+ <?php if(isset($this->filters['make'])): ?> |
|
36 |
+ <div class="brands select-container"> |
|
37 |
+ <label>Marke</label> |
|
38 |
+ <select class="md-select"> |
|
39 |
+ <option value="*">Alle anzeigen</option> |
|
40 |
+ <?php foreach($this->filters['make'] as $key=>$brand): ?> |
|
41 |
+ <option value=".<?= $brand['key'] ?>"><?= $brand['label'] ?> <?php /*(<?= $brand['count'] ?>)*/ ?></option> |
|
42 |
+ <?php endforeach; ?> |
|
43 |
+ </select> |
|
44 |
+ </div> |
|
45 |
+ <?php endif; ?> |
|
46 |
+ |
|
47 |
+ <?php if(isset($this->filters['vehicle_model'])): ?> |
|
48 |
+ <div class="model select-container"> |
|
49 |
+ <label>Fahrzeugmodell</label> |
|
50 |
+ <select class="md-select"> |
|
51 |
+ <option value="*">Alle anzeigen</option> |
|
52 |
+ <?php foreach($this->filters['vehicle_model'] as $key=>$model): ?> |
|
53 |
+ <option value=".<?= $model['key'] ?>"><?= $model['label'] ?> <?php /*(<?= $model['count'] ?>)*/ ?></option> |
|
54 |
+ <?php endforeach; ?> |
|
55 |
+ </select> |
|
56 |
+ </div> |
|
57 |
+ <?php endif; ?> |
|
58 |
+ |
|
59 |
+ <?php if(isset($this->filters['categories'])): ?> |
|
60 |
+ <div class="categories select-container"> |
|
61 |
+ <label>Fahrzeugtyp</label> |
|
62 |
+ <select class="md-select"> |
|
63 |
+ <option value="*">Alle anzeigen</option> |
|
64 |
+ <?php foreach($this->filters['categories'] as $key=>$cat): ?> |
|
65 |
+ <option value=".<?= $key ?>"><?= $cat['label'] ?> <?php /*(<?= $cat['count'] ?>)*/ ?></option> |
|
66 |
+ <?php endforeach; ?> |
|
67 |
+ </select> |
|
68 |
+ </div> |
|
69 |
+ <?php endif; ?> |
|
70 |
+ |
|
71 |
+ <?php if(isset($this->filters['fuelType'])): ?> |
|
72 |
+ <div class="fuel select-container"> |
|
73 |
+ <label>Kraftstoffart</label> |
|
74 |
+ <select class="md-select"> |
|
75 |
+ <option value="*">Alle anzeigen</option> |
|
76 |
+ <?php foreach($this->filters['fuelType'] as $key=>$type): ?> |
|
77 |
+ <option value=".<?= $key ?>"><?= $type['label'] ?> <?php /*(<?= $type['count'] ?>)*/ ?></option> |
|
78 |
+ <?php endforeach; ?> |
|
79 |
+ </select> |
|
80 |
+ </div> |
|
81 |
+ <?php endif; ?> |
|
82 |
+ |
|
83 |
+ <?php if(isset($this->filters['gearbox'])): ?> |
|
84 |
+ <div class="gearbox select-container"> |
|
85 |
+ <label>Getriebe</label> |
|
86 |
+ <select class="md-select"> |
|
87 |
+ <option value="*">Alle anzeigen</option> |
|
88 |
+ <?php foreach($this->filters['gearbox'] as $key=>$type): ?> |
|
89 |
+ <option value=".<?= $key ?>"><?= $type['label'] ?> <?php /*(<?= $type['count'] ?>)*/ ?></option> |
|
90 |
+ <?php endforeach; ?> |
|
91 |
+ </select> |
|
92 |
+ </div> |
|
93 |
+ <?php endif; ?> |
|
94 |
+ |
|
95 |
+ <?php if(isset($this->filters['usageType'])): ?> |
|
96 |
+ <div class="type select-container"> |
|
97 |
+ <label>Fahrzeugart</label> |
|
98 |
+ <select class="md-select"> |
|
99 |
+ <option value="*">Alle anzeigen</option> |
|
100 |
+ <?php foreach($this->filters['usageType'] as $key=>$type): ?> |
|
101 |
+ <option value=".<?= $key ?>"><?= $type['label'] ?> <?php /*(<?= $type['count'] ?>)*/ ?></option> |
|
102 |
+ <?php endforeach; ?> |
|
103 |
+ </select> |
|
104 |
+ </div> |
|
105 |
+ <?php endif; ?> |
|
106 |
+ |
|
107 |
+ <?php if(isset($this->filters['colors'])): ?> |
|
108 |
+ <div class="md-filter-attr checkbox-group"> |
|
109 |
+ <label>Farbe</label> |
|
110 |
+ <ul> |
|
111 |
+ <?php foreach($this->filters['colors'] as $key=>$col): ?> |
|
112 |
+ <li><input type="checkbox" name="<?= $key ?>" data-filter=".<?= $key ?>" value=".<?= $key ?>" |
|
113 |
+ id="<?= $key ?>"><label for="<?= $key ?>"><?= $col['label'] ?> <?php /*(<?= $col['count'] ?>)*/ ?></label></li> |
|
114 |
+ <?php endforeach; ?> |
|
115 |
+ </ul> |
|
116 |
+ </div> |
|
117 |
+ <?php endif; ?> |
|
118 |
+ |
|
119 |
+ <div class="range-slider"<?php if(!$this->priceSlider): ?> style="display:none;"<?php endif; ?>> |
|
120 |
+ <p> |
|
121 |
+ <label for="price">Preis</label> |
|
122 |
+ <input type="text" id="price" readonly> |
|
123 |
+ </p> |
|
124 |
+ <div id="priceSlider" data-filter-group="price"></div> |
|
125 |
+ </div> |
|
126 |
+ |
|
127 |
+ <div class="range-slider"<?php if(!$this->powerSlider): ?> style="display:none;"<?php endif; ?>> |
|
128 |
+ <p> |
|
129 |
+ <label for="power">Leistung</label> |
|
130 |
+ <input type="text" id="power" readonly> |
|
131 |
+ </p> |
|
132 |
+ <div id="powerSlider" data-filter-group="power"></div> |
|
133 |
+ </div> |
|
134 |
+ <div class="range-slider"<?php if(!$this->mileageSlider): ?> style="display:none;"<?php endif; ?>> |
|
135 |
+ <p> |
|
136 |
+ <label for="mileage">Kilometerstand</label> |
|
137 |
+ <input type="text" id="mileage" readonly> |
|
138 |
+ </p> |
|
139 |
+ <div id="mileageSlider" data-filter-group="mileage"></div> |
|
140 |
+ </div> |
|
141 |
+ |
|
142 |
+ <span><a href="#" class="filter-reset" id="filterReset">Filter zurücksetzen</a></span> |
|
143 |
+ |
|
144 |
+ <?php if($this->onlyFilter): ?> |
|
145 |
+ <span><a href="{{link_url::<?= $this->listingPage ?>}}" id="vehicleOnlyFilter" class="submit">Suchen</a></span> |
|
146 |
+ <?php endif; ?> |
|
147 |
+ <!-- <span><button class="btn-shuffle" id="shuffle">Mischen</button></span> --> |
|
148 |
+ </div> |
|
149 |
+ </div> <!-- end md-filter --> |
|
150 |
+ <?php endif; ?> |
|
151 |
+ |
|
152 |
+ <?php //if($this->onlyFilter): ?> |
|
153 |
+ <div class="md-ads"> |
|
154 |
+ <?php foreach($this->ads as $ad): ?> |
|
155 |
+ <?= $ad; ?> |
|
156 |
+ <?php endforeach; ?> |
|
157 |
+ <div class="md-no-result"><?= $this->noResultMessage ?></div> |
|
158 |
+ </div> <!-- MobileDe list end --> |
|
159 |
+ <?php //endif; ?> |
|
160 |
+ |
|
161 |
+ <?php echo $this->pagination; ?> |
|
162 |
+</div> |
|
163 |
+ |
|
164 |
+<?php if($this->debug): ?> |
|
165 |
+<div> |
|
166 |
+ <h2>DEBUG:</h2> |
|
167 |
+ Modulversion: <?= $this->version ?><br> |
|
168 |
+ HändlerID: <?= $this->customer ?><br> |
|
169 |
+ Anzahl Fahrzeuge: <?= count($this->ads); ?><br><br> |
|
170 |
+ Filters<br> |
|
171 |
+ <pre><?php print_r($this->filters); ?></pre> |
|
172 |
+ RawData<br> |
|
173 |
+ <pre> <?php print_r($this->rawData); ?></pre> |
|
174 |
+ AutoItems<br> |
|
175 |
+ <pre> <?php print_r($GLOBALS['TL_AUTO_ITEM']); ?></pre> |
|
176 |
+</div> |
|
177 |
+<?php endif; ?> |
|
178 |
+ |
|
179 |
+<script> |
|
180 |
+ <?php if($this->listShuffle): ?> |
|
181 |
+ var mdListShuffle = <?= $this->listShuffle ?>; |
|
182 |
+ <?php endif; ?> |
|
183 |
+</script> |
|
184 |
+ |
|
185 |
+<!--[if IE 7]><link rel="stylesheet" href="/bundles/pdirmobilede/vendor/fontello/css/fontello-ie7.css"><![endif]--> |
|
186 |
+<!-- indexer::continue --> |
|
0 | 187 |
\ No newline at end of file |