Browse code

Update

Benjamin Roth authored on21/03/2023 09:34:21
Showing3 changed files
... ...
@@ -73,13 +73,13 @@ html body {
73 73
 
74 74
 
75 75
           .box--headline {
76
-            font-family: var(--bs-font-tertiary);
76
+            //font-family: var(--bs-font-tertiary);
77 77
             @include font-size(22px);
78 78
           }
79 79
 
80 80
           .box--subline {
81 81
             margin-top: 0rem;
82
-            font-family: var(--bs-font-tertiary);
82
+            //font-family: var(--bs-font-tertiary);
83 83
           }
84 84
 
85 85
           > * + .box--text {
... ...
@@ -15,7 +15,7 @@
15 15
   }
16 16
 
17 17
   .image_container {
18
-    height:400px;
18
+    //height:400px;
19 19
     @include aspect-ratio(1,1);
20 20
   }
21 21
 
... ...
@@ -26,59 +26,58 @@
26 26
 
27 27
                         <div class="content--section content--section-1">
28 28
                             <div class="ce--headline">
29
-                                <span class="ce--topline mb-0 fs-28px">##Blütenedition##</span>
30
-                                <h1 itemprop="name"><?php echo $this->generateAttribute('name'); ?></h1>
29
+                                <span class="ce--topline mb-0 fs-28px"><?= $this->weinlinie ? $this->generateAttribute('weinlinie') : null ?></span>
30
+                                <h1 itemprop="name"><?php echo $this->generateAttribute('name'); ?> <?= $this->zusatz ? $this->generateAttribute('zusatz') : null; ?> <?= $this->jahrgang ? $this->generateAttribute('jahrgang') : null; ?></h1>
31 31
                             </div>
32 32
 
33 33
 
34 34
                             <div class="row gy-0 gx-4">
35 35
                                 <div class="col-12 col-md-6">
36
-                                    <?php if ($this->teaser): ?>
37
-                                        <div class="teaser fw-bold"><?= $this->highlightKeywords($this->generateAttribute('teaser')); ?></div>
36
+                                    <?php if ($this->qualitaet || $this->geschmack || $this->flascheninhalt): ?>
37
+                                        <div class="teaser fw-bold"><?= $this->qualitaet ? $this->generateAttribute('qualitaet') : null; ?> <?= $this->geschmack ? $this->generateAttribute('geschmack') : null; ?> <?= $this->flascheninhalt ? rtrim(rtrim(\System::getFormattedNumber($this->generateAttribute('flascheninhalt'),3),'0'),','). ' l' : null ?></div>
38 38
                                     <?php endif; ?>
39 39
 
40 40
                                     <?php if ($this->sku) : ?>
41
-                                        <div class="sku"
42
-                                             itemprop="sku"><?php echo $this->generateAttribute('sku'); ?></div>
41
+                                        <div class="sku">{{isolabel::attr_sku}} <span itemprop="sku"><?= $this->generateAttribute('sku'); ?></span></div>
43 42
                                     <?php endif; ?>
44 43
 
45 44
 
46
-                                    <div class="mt-2">
47
-                                        <strong class="d-block">CHARAKTERSTIK</strong>
48
-                                        <p>AUSGABE## Vielfältiges, intensives Fruchtaroma von Pfirsich und Ananas.
49
-                                            Eleganter
50
-                                            Körper mit fruchtiger Süße</p>
51
-                                    </div>
45
+                                    <?php if ($this->charakteristik): ?>
46
+                                        <div class="mt-2">
47
+                                            <strong class="d-block">CHARAKTERSTIK</strong>
48
+                                            <?= $this->generateAttribute('charakteristik'); ?>
49
+                                        </div>
50
+                                    <?php endif; ?>
52 51
 
53 52
 
54
-                                    <div class="mt-2">
55
-                                        <strong class="d-block">Speiseempfehlung</strong>
56
-                                        <p>AUSGABE## Ein hervorragender Begleiter für alle leichten Geflügel- und
57
-                                            Gemüsegerichte. Sehr gut zu Spargel, frischen Salaten und asiatischer Küche.
58
-                                            Idealer Terassenwein für laue Sommerabende!</p>
59
-                                    </div>
53
+                                    <?php if ($this->speiseempfehlung): ?>
54
+                                        <div class="mt-2">
55
+                                            <strong class="d-block">Speiseempfehlung</strong>
56
+                                            <?= $this->generateAttribute('speiseempfehlung'); ?>
57
+                                        </div>
58
+                                    <?php endif; ?>
59
+
60 60
                                 </div>
61 61
 
62 62
                                 <div class="col-12 col-md-6">
63 63
                                     <div class="attributes">
64 64
                                         <ul class="list-unstyled">
65
-                                            <li><strong>Alkohol</strong> <span>10,5 % vol</span></li>
66
-                                            <li><strong>Restzucker</strong> <span>29,0 g/l</span></li>
67
-                                            <li><strong>Säure</strong> <span>6,0 % g/l</span></li>
68
-                                            <li><strong>Trinktemperatur</strong> <span>8-10 °C</span></li>
69
-                                            <li><strong>Geschmack</strong> <span>lieblich</span></li>
70
-                                            <li><strong>Anbauregion</strong> <span>Baden/Ortenau</span></li>
71
-                                            <li><strong>Ursprungsland</strong> <span>Deutschland</span></li>
72
-                                            <li><strong>Erzeuger</strong>
73
-                                                <span>Affentaler Winzer eG, D-77815 Bühl</span>
74
-                                            </li>
75
-                                            <li><strong>##Allergene##</strong> <span>Enthält Sulfite</span></li>
65
+                                            <li><strong>Alkohol</strong> <span><?= $this->alkohol ? \System::getFormattedNumber($this->generateAttribute('alkohol'),1) : null ?> % vol</span></li>
66
+                                            <li><strong>Restzucker</strong> <span><?= $this->restsuesse ? \System::getFormattedNumber($this->generateAttribute('restsuesse'),1) : null ?> g/l</span></li>
67
+                                            <li><strong>Säure</strong> <span><?= $this->saeure ? \System::getFormattedNumber($this->generateAttribute('saeure'),1) : null ?> % g/l</span></li>
68
+                                            <li><strong>Trinktemperatur</strong> <span><?= $this->trinktemperatur ? $this->generateAttribute('trinktemperatur') : null; ?> °C</span></li>
69
+                                            <li><strong>Geschmack</strong> <span><?= $this->geschmack ? $this->generateAttribute('geschmack') : null; ?></span></li>
70
+                                            <li><strong>Rebsorte</strong> <span><?= $this->rebsorte ? $this->generateAttribute('rebsorte') : null; ?></span></li>
71
+                                            <li><strong>Anbauregion</strong> <span><?= $this->anbauregion ? $this->generateAttribute('anbauregion') : null; ?></span></li>
72
+                                            <li><strong>Ursprungsland</strong> <span><?= $this->ursprungsland ? $this->generateAttribute('ursprungsland') : null; ?></span></li>
73
+                                            <li><strong>Erzeuger</strong> <span><?= $this->erzeuger ? $this->generateAttribute('erzeuger') : null; ?></span></li>
74
+                                            <li><strong>Allergene</strong> <span><?= $this->allergene ? $this->generateAttribute('allergene') : null; ?></span></li>
76 75
                                         </ul>
77 76
                                     </div>
78 77
 
79 78
                                     <div class="mt-4">
80 79
                                         <a class="btn btn-outline-primary" href="/">
81
-                                            {{icon_pl::far:fa-download}} ##EXPERTISE.PDF##
80
+                                            {{icon::ico:download}} ##EXPERTISE.PDF##
82 81
                                         </a>
83 82
                                     </div>
84 83
                                 </div>
... ...
@@ -97,7 +96,7 @@
97 96
                                 </div>
98 97
                             <?php endif; ?>
99 98
 
100
-                            <p class="fw-bold mb-0">AUSGABE## 6 x 0,75 L Karton</p>
99
+                            <p class="fw-bold mb-0"><?php echo $this->generateAttribute('karton'); ?> x <?php echo rtrim(rtrim(\System::getFormattedNumber($this->generateAttribute('flascheninhalt'),3),'0'),','); ?> l</p>
101 100
 
102 101
                             <?php if ($this->generateAttribute('baseprice')) : ?>
103 102
                                 <div class="item--short-informations">
... ...
@@ -110,8 +109,8 @@
110 109
                             </div>
111 110
 
112 111
 
113
-                            <div class="shipping-note">
114
-                                AUSGABE## Lieferbar in 2 - 4 Werktagen
112
+                            <div class="shipping-note<?php if ($this->not_buyable): ?> outOfStock<?php endif; ?>">
113
+                                <?php if ($this->not_buyable): ?><?php echo ($this->not_buyable_text ?: $GLOBALS['TL_LANG']['MSC']['not_buyable_text']); ?><?php else: ?><?= \InsertTags::replaceInsertTags('{{isolabel::delivery}}') ?><?php endif; ?>
115 114
                             </div>
116 115
 
117 116