Browse code

Update remote

Benjamin Roth authored on20/03/2023 16:17:59
Showing1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,52 @@
1
+
2
+<div class="layout_full block<?= $this->class ?>">
3
+
4
+  <h1><?= $this->newsHeadline ?></h1>
5
+
6
+  <?php if ($this->hasMetaFields): ?>
7
+    <p class="info"><time datetime="<?= $this->datetime ?>"><?= $this->date ?></time> <?= $this->author ?> <?= $this->commentCount ?></p>
8
+  <?php endif; ?>
9
+
10
+  <?php if ($this->hasSubHeadline): ?>
11
+    <h2><?= $this->subHeadline ?></h2>
12
+  <?php endif; ?>
13
+
14
+  <?php if ($this->hasText): ?>
15
+    <?= $this->text ?>
16
+  <?php else: ?>
17
+    <div class="ce_text block">
18
+      <?php if (!$this->addBefore): ?>
19
+        <?= $this->teaser ?>
20
+      <?php endif; ?>
21
+
22
+      <?php if ($this->addImage): ?>
23
+        <?php $this->insert('image', $this->arrData); ?>
24
+      <?php endif; ?>
25
+
26
+      <?php if ($this->addBefore): ?>
27
+        <?= $this->teaser ?>
28
+      <?php endif; ?>
29
+    </div>
30
+  <?php endif; ?>
31
+
32
+  <?php if ($this->enclosure): ?>
33
+    <ul class="enclosure">
34
+      <?php foreach ($this->enclosure as $enclosure): ?>
35
+        <li class="download-element ext-<?= $enclosure['extension'] ?>">
36
+          <a href="<?= $enclosure['href'] ?>" title="<?= $enclosure['title'] ?>"><?= $enclosure['link'] ?> <span class="size">(<?= $enclosure['filesize'] ?>)</span></a>
37
+        </li>
38
+      <?php endforeach; ?>
39
+    </ul>
40
+  <?php endif; ?>
41
+
42
+</div>
43
+
44
+<?php
45
+
46
+$schemaOrg = $this->getSchemaOrgData();
47
+
48
+if ($this->hasText) {
49
+    $schemaOrg['text'] = $this->rawHtmlToPlainText($this->text);
50
+}
51
+
52
+$this->addSchemaOrg($schemaOrg);