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,40 @@
1
+<div class="layout_simple arc_<?= $this->archive->id ?> block<?= $this->class ?>" data-aos="animate__fadeInUp">
2
+
3
+    <div class="row gx-3">
4
+        <div class="col-md-4">
5
+            <div class="news--image-wrapper">
6
+                <?php if ($this->singleSRC): ?>
7
+                    <a href="<?= $this->href; ?>"> <img class="lazy" data-src="<?= $this->singleSRC; ?>"></a>
8
+                <?php endif; ?>
9
+                <span class="date">
10
+                    <time datetime="<?= $this->datetime ?>"><?= date('d. F Y', strtotime($this->datetime)); ?></time></span>
11
+            </div>
12
+        </div>
13
+        <div class="col-md-8 mt-1 mt-md-0">
14
+            <div class="news--content-wrapper h-100">
15
+                <h2><?= $this->linkHeadline ?></h2>
16
+
17
+                <?php if ($this->teaser): ?>
18
+                    <div class="ce_text mt-1 block pb-1">
19
+                        <?= $this->teaser ?>
20
+                    </div>
21
+                <?php endif; ?>
22
+
23
+                <?php if ($this->href): ?>
24
+                    <div class="news--button text-md-end">
25
+                        <a href="<?= $this->href; ?>" class="btn btn-outline-primary btn-sm">Weiterlesen</a>
26
+                    </div>
27
+                <?php endif; ?>
28
+            </div>
29
+        </div>
30
+    </div>
31
+</div>
32
+
33
+
34
+<?php
35
+
36
+// This template is used as a news list template by default, so we only add
37
+// JSON-LD data in case this is a news article without a reader
38
+if (!$this->hasReader) {
39
+    $this->addSchemaOrg($this->getSchemaOrgData());
40
+}