1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,55 @@ |
1 |
+ |
|
2 |
+<div class="event mb-3 layout_full block<?= $this->class ?>"> |
|
3 |
+ |
|
4 |
+ |
|
5 |
+ <?php if ($this->recurring): ?> |
|
6 |
+ <p class="info recurring"><?= $this->recurring ?></p> |
|
7 |
+ <?php else: ?> |
|
8 |
+ <p class="info"><time datetime="<?= $this->datetime ?>"><?= $this->date ?><?php if ($this->time): ?> <?= $this->time ?><?php endif; ?></time></p> |
|
9 |
+ <?php endif; ?> |
|
10 |
+ |
|
11 |
+ <?php if ($this->location): ?> |
|
12 |
+ <p class="location"><?= $this->location ?><?php if ($this->address): ?> (<?= $this->address ?>)<?php endif; ?></p> |
|
13 |
+ <?php endif; ?> |
|
14 |
+ |
|
15 |
+ |
|
16 |
+ |
|
17 |
+ <?php if ($this->details): ?> |
|
18 |
+ <?= $this->details ?> |
|
19 |
+ <?php else: ?> |
|
20 |
+ <div class="ce_text block"> |
|
21 |
+ <?php if (!$this->addBefore): ?> |
|
22 |
+ <?= $this->teaser ?> |
|
23 |
+ <?php endif; ?> |
|
24 |
+ |
|
25 |
+ <?php if ($this->addImage): ?> |
|
26 |
+ <?php $this->insert('image', $this->arrData); ?> |
|
27 |
+ <?php endif; ?> |
|
28 |
+ |
|
29 |
+ <?php if ($this->addBefore): ?> |
|
30 |
+ <?= $this->teaser ?> |
|
31 |
+ <?php endif; ?> |
|
32 |
+ </div> |
|
33 |
+ <?php endif; ?> |
|
34 |
+ |
|
35 |
+ <?php if ($this->enclosure): ?> |
|
36 |
+ <ul class="enclosure"> |
|
37 |
+ <?php foreach ($this->enclosure as $enclosure): ?> |
|
38 |
+ <li class="download-element ext-<?= $enclosure['extension'] ?>"> |
|
39 |
+ <a href="<?= $enclosure['href'] ?>" title="<?= $enclosure['title'] ?>"><?= $enclosure['link'] ?> <span class="size">(<?= $enclosure['filesize'] ?>)</span></a> |
|
40 |
+ </li> |
|
41 |
+ <?php endforeach; ?> |
|
42 |
+ </ul> |
|
43 |
+ <?php endif; ?> |
|
44 |
+ |
|
45 |
+</div> |
|
46 |
+ |
|
47 |
+<?php |
|
48 |
+ |
|
49 |
+$schemaOrg = $this->getSchemaOrgData(); |
|
50 |
+ |
|
51 |
+if ($this->hasDetails) { |
|
52 |
+ $schemaOrg['description'] = $this->rawHtmlToPlainText($this->details); |
|
53 |
+} |
|
54 |
+ |
|
55 |
+$this->addSchemaOrg($schemaOrg); |