1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,45 @@ |
1 |
+<div class="layout_short arc_<?= $this->archive->id ?> block<?= $this->class ?>"> |
|
2 |
+ |
|
3 |
+ <div class="row"> |
|
4 |
+ <div class="col-12 col-md-2 col-xxl-3"> |
|
5 |
+ <?php if ($this->addImage) : ?> |
|
6 |
+ <div class="image"> |
|
7 |
+ <?php $this->insert('image', $this->arrData); ?> |
|
8 |
+ </div> |
|
9 |
+ <?php endif; ?> |
|
10 |
+ </div> |
|
11 |
+ <div class="col-12 col-md-7"> |
|
12 |
+ |
|
13 |
+ <h2><?= $this->linkHeadline ?></h2> |
|
14 |
+ <?php if ($this->teaser) : ?> |
|
15 |
+ <div class="ce_text block"> |
|
16 |
+ <?= $this->teaser ?> |
|
17 |
+ </div> |
|
18 |
+ <?php endif; ?> |
|
19 |
+ </div> |
|
20 |
+ <div class="col-12 col-md-3 col-xxl-2 text-md-end"> |
|
21 |
+ <div class="right-col-wrapper"> |
|
22 |
+ <?php if ($this->hasMetaFields): ?> |
|
23 |
+ <p class="info"> |
|
24 |
+ <time datetime="<?= $this->datetime ?>"><?= date('d.m.Y', strtotime($this->datetime)); ?></time> <?= $this->author ?> <?= $this->commentCount ?> |
|
25 |
+ </p> |
|
26 |
+ <?php endif; ?> |
|
27 |
+ |
|
28 |
+ <?php if ($this->hasText): ?> |
|
29 |
+ <p class="more"> |
|
30 |
+ <a href="<?= $this->link ?>" class="btn btn-outline-primary">Weiterlesen</a> |
|
31 |
+ </p> |
|
32 |
+ <?php endif; ?> |
|
33 |
+ </div> |
|
34 |
+ </div> |
|
35 |
+ </div> |
|
36 |
+ |
|
37 |
+</div> |
|
38 |
+ |
|
39 |
+<?php |
|
40 |
+ |
|
41 |
+// This template is used as a news list template by default, so we only add |
|
42 |
+// JSON-LD data in case this is a news article without a reader |
|
43 |
+if (!$this->hasReader) { |
|
44 |
+ $this->addSchemaOrg($this->getSchemaOrgData()); |
|
45 |
+} |