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,31 @@
1
+<div <?php if (!strpos($this->class, 'animate__')) : ?>data-aos="animate__fadeInUp" <?php endif; ?> class="layout_latest arc_<?= $this->archive->id ?> block<?= $this->class ?>">
2
+    <?php if ($this->hasMetaFields) : ?>
3
+        <p class="info">
4
+            <time datetime="<?= $this->datetime ?>"><?= $this->date ?></time> <?= $this->author ?> <?= $this->commentCount ?>
5
+        </p>
6
+    <?php endif; ?>
7
+    <?php if ($this->hasText) : ?>
8
+        <h2 class="with-url"><?= $this->linkHeadline ?></h2>
9
+    <?php else : ?>
10
+        <h2><?= $this->headline ?></h2>
11
+    <?php endif; ?>
12
+    <div class="text--wrapper <?php if ($this->addImage) : ?>with-image image-<?php echo $this->floating; ?><?php endif; ?> ">
13
+        <?php if ($this->addImage) : ?>
14
+            <div class="image">
15
+                <?php $this->insert('image', $this->arrData); ?>
16
+            </div>
17
+        <?php endif; ?>
18
+        <div class="text ce_text block">
19
+            <?= $this->teaser ?>
20
+            <?php if ($this->hasText) : ?>
21
+                <p class="more"><?= $this->more ?></p>
22
+            <?php endif; ?>
23
+        </div>
24
+    </div>
25
+</div>
26
+<?php
27
+// This template is used as a news list template by default, so we only add
28
+// JSON-LD data in case this is a news article without a reader
29
+if (!$this->hasReader) {
30
+    $this->addSchemaOrg($this->getSchemaOrgData());
31
+}