Browse code

Update remote

Benjamin Roth authored on20/03/2023 16:17:59
Showing1 changed files
... ...
@@ -1,11 +1,11 @@
1
-<div class="col-12 col-md-4 col-lg-3">
1
+<div class="col-12 col-md-4">
2 2
     <div class="event layout_slide<?= $this->classList ?>">
3 3
 
4 4
         <?php if ($this->singleSRC): ?>
5
-            <div class="event--image-wrapper">
5
+            <figure class="event--image-wrapper image_container">
6 6
 
7
-                <img class="lazy" data-src="<?= $this->singleSRC; ?>">
8
-            </div>
7
+                <?php $this->insert('picture_default', $this->arrData['picture']); ?>
8
+            </figure>
9 9
         <?php endif; ?>
10 10
 
11 11
         <div class="event--content-wrapper">
... ...
@@ -15,28 +15,25 @@
15 15
             </h3>
16 16
 
17 17
             <div class="event--data-wrapper">
18
-                <?php if ($this->date): ?>
19
-                    <?= $this->date ?>,
20
-                <?php endif; ?>
21
-                <?php if ($this->time): ?>
22
-                    <span class="time">
23
-                        <time datetime="<?= $this->datetime ?>"><?= $this->time ?></time> Uhr </span>
18
+                <?php if ($this->time || $this->date): ?>
19
+                    <div class="time">
20
+                        <time datetime="<?= $this->datetime ?>"><?= $this->date ?><?php if ($this->time): ?>, <?= $this->time ?> Uhr<?php endif; ?></time></div>
24 21
                 <?php endif; ?>
25 22
                 <?php if ($this->location): ?>
26
-                    <span class="location">| <?= $this->location ?><?php if ($this->address): ?> (<?= $this->address ?>)<?php endif; ?></span>
23
+                    <div class="location"><?= $this->location ?><?php if ($this->address): ?> (<?= $this->address ?>)<?php endif; ?></div>
27 24
                 <?php endif; ?>
28 25
             </div>
29 26
 
30
-            <?php if ($this->teaser): ?>
27
+            <?php /* if ($this->teaser): ?>
31 28
                 <div class="ce_text mt-1 block pb-1">
32 29
                     <?= $this->teaser ?>
33 30
                 </div>
34
-            <?php endif; ?>
31
+            <?php endif; */ ?>
35 32
 
36 33
 
37 34
             <?php if ($this->details): ?>
38 35
                 <div class="event--button pt-1">
39
-                    <a href="<?= $this->href;?>" class="btn btn-outline-primary btn-sm">mehr lesen</a>
36
+                    <a href="<?= $this->href;?>" class="btn btn-primary">mehr lesen</a>
40 37
                 </div>
41 38
             <?php endif; ?>
42 39
 
Browse code

Initial commit

Benjamin Roth authored on16/03/2023 20:22:35
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,61 @@
1
+<div class="col-12 col-md-4 col-lg-3">
2
+    <div class="event layout_slide<?= $this->classList ?>">
3
+
4
+        <?php if ($this->singleSRC): ?>
5
+            <div class="event--image-wrapper">
6
+
7
+                <img class="lazy" data-src="<?= $this->singleSRC; ?>">
8
+            </div>
9
+        <?php endif; ?>
10
+
11
+        <div class="event--content-wrapper">
12
+            <h3
13
+                    title="<?= $this->title ?> (<?php if ($this->day): ?><?= $this->day ?>, <?php endif; ?><?= $this->date ?><?php if ($this->time): ?> <?= $this->time ?><?php endif; ?>)">
14
+                <?= $this->title ?>
15
+            </h3>
16
+
17
+            <div class="event--data-wrapper">
18
+                <?php if ($this->date): ?>
19
+                    <?= $this->date ?>,
20
+                <?php endif; ?>
21
+                <?php if ($this->time): ?>
22
+                    <span class="time">
23
+                        <time datetime="<?= $this->datetime ?>"><?= $this->time ?></time> Uhr </span>
24
+                <?php endif; ?>
25
+                <?php if ($this->location): ?>
26
+                    <span class="location">| <?= $this->location ?><?php if ($this->address): ?> (<?= $this->address ?>)<?php endif; ?></span>
27
+                <?php endif; ?>
28
+            </div>
29
+
30
+            <?php if ($this->teaser): ?>
31
+                <div class="ce_text mt-1 block pb-1">
32
+                    <?= $this->teaser ?>
33
+                </div>
34
+            <?php endif; ?>
35
+
36
+
37
+            <?php if ($this->details): ?>
38
+                <div class="event--button pt-1">
39
+                    <a href="<?= $this->href;?>" class="btn btn-outline-primary btn-sm">mehr lesen</a>
40
+                </div>
41
+            <?php endif; ?>
42
+
43
+        </div>
44
+    </div>
45
+</div>
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+<?php
54
+
55
+// This template is used as an event list template by default, so we only add
56
+// JSON-LD data in case this is an event without a reader
57
+if (!$this->hasReader) {
58
+    $this->addSchemaOrg($this->getSchemaOrgData());
59
+}
60
+
61
+