1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,74 @@ |
1 |
+<?php if($this->desc == ''): return ''; endif; ?> |
|
2 |
+<a href="<?= $this->link ?>" class="item md-ad-box <?= $this->filterClasses ?><?php if($this->onlyFilter): ?> hidden<?php endif; ?>" data-price="<?= $this->plainPrice ?>" data-power="<?= $this->plainPower ?>" data-mileage="<?= str_replace(",","",$this->mileage) ?>" data-acc="<?= $this->account ?>"> |
|
3 |
+ <?php if(!$this->onlyFilter): ?> |
|
4 |
+ <div class="image"> |
|
5 |
+ <picture> |
|
6 |
+ <img src="<?= $this->imageSrc_L ?>" srcset="<?= $this->imageSrc_L ?> 1x, <?= $this->imageSrc_XL ?> 1.5x, <?= $this->imageSrc_XXL ?> 2x" alt="<?= $this->desc ?>"> |
|
7 |
+ </picture> |
|
8 |
+ </div> |
|
9 |
+ <div class="price"> |
|
10 |
+ <span> |
|
11 |
+ <?= $this->price ?> |
|
12 |
+ <?php if($this->pseudoPrice): ?><span class="pseudo-price"><?= $this->pseudoPrice ?></span><?php endif; ?> |
|
13 |
+ </span> |
|
14 |
+ </div> |
|
15 |
+ <div class="detail"> |
|
16 |
+ <!-- Header --> |
|
17 |
+ <header class="clearfix"> |
|
18 |
+ |
|
19 |
+ <h5 class="title"> |
|
20 |
+ <?= $this->desc ?> |
|
21 |
+ </h5> |
|
22 |
+ <ul class="custom-list"> |
|
23 |
+ <?php if($this->power): ?> |
|
24 |
+ <li> |
|
25 |
+ <i class="icon-gauge"></i><?= $this->power ?> |
|
26 |
+ </li> |
|
27 |
+ <?php endif; ?> |
|
28 |
+ <?php if($this->fuelType): ?> |
|
29 |
+ <li> |
|
30 |
+ <?= $this->fuelType ?> |
|
31 |
+ </li> |
|
32 |
+ <?php endif; ?> |
|
33 |
+ <?php if($this->transmission): ?> |
|
34 |
+ <li class="last"> |
|
35 |
+ <?= $this->transmission ?> |
|
36 |
+ </li> |
|
37 |
+ <?php endif; ?> |
|
38 |
+ </ul> |
|
39 |
+ </header> |
|
40 |
+ <!-- Fuel and type --> |
|
41 |
+ <p> |
|
42 |
+ <?php if(is_array($this->fuelConsumption) && count($this->fuelConsumption) > 0): ?> |
|
43 |
+ <?php foreach($this->fuelConsumption as $fuelItem): ?> |
|
44 |
+ <?= $fuelItem['label'] ?>: <?= $fuelItem['value'] ?><br> |
|
45 |
+ <?php endforeach; ?> |
|
46 |
+ <?php endif; ?> |
|
47 |
+ <?php if($this->usageType): ?><?= $this->bodyType ?>, <?= $this->usageType ?><?php endif; ?> |
|
48 |
+ </p> |
|
49 |
+ <!-- Features List --> |
|
50 |
+ <div class="features-area"> |
|
51 |
+ <ul class="features-list clearfix"> |
|
52 |
+ <li> |
|
53 |
+ <i class="icon-calendar-times-o"></i> |
|
54 |
+ <span><?= $this->firstRegistration ?></span> |
|
55 |
+ </li> |
|
56 |
+ <li> |
|
57 |
+ <i class="icon-road"></i> |
|
58 |
+ <span><?= $this->mileage ?><?php #= number_format($this->mileage, 2, "," ,".") ?> km</span> |
|
59 |
+ </li> |
|
60 |
+ </ul> |
|
61 |
+ </div> |
|
62 |
+ |
|
63 |
+ <div class="md-ad-box-overlap-wrapper"> |
|
64 |
+ <h2><?= $this->desc ?></h2> |
|
65 |
+ |
|
66 |
+ <div class="md-ad-box-overlap-btns-area"> |
|
67 |
+ <div class="overlap-btn"><i class="icon-picture"></i></div> |
|
68 |
+ </div> |
|
69 |
+ </div> |
|
70 |
+ </div> |
|
71 |
+ |
|
72 |
+ <?php endif; ?> |
|
73 |
+</a> |
|
74 |
+<!-- mobilede ad box end--> |
|
0 | 75 |
\ No newline at end of file |