gerne!
Template "List":
HTML-Code:
<?php /*if ($this->header): ?>
<div class="header<?= $this->classHeader ?>">
<?php if ($this->firstDay): ?><span class="day"><?= $this->firstDay ?>, </span><?php endif; ?><span class="date"><?= $this->firstDate ?></span>
</div>
<?php endif; */ ?>
<?php
/* Datum ermitteln, dein Datumsformat */
$heute = date("d.m.Y");
?>
<div class="event layout_teaser<?= $this->classUpcoming ?> col s12 m6">
<div class="inner">
<?php if ($this->addImage): ?>
<figure class="image_container<?= $this->floatClass ?>"<?php if ($this->margin): ?> style="<?= $this->margin ?>"<?php endif; ?>>
<?php if ($this->href): ?>
<a href="<?= $this->href ?>"<?= $this->attributes ?> title="<?= $this->alt ?>">
<?php endif; ?>
<?php $this->insert('picture_default', $this->picture); ?>
<?php if ($this->href): ?>
</a>
<?php endif; ?>
<?php if ($this->caption): ?>
<figcaption class="caption"><?= $this->caption ?></figcaption>
<?php endif; ?>
</figure>
<?php endif; ?>
<div class="text">
<?php if ($this->hasDetails): ?>
<h2><a href="<?= $this->href ?>" title="<?= $this->title ?> (<?php if ($this->day) echo $this->day . ', '; ?><?= $this->date ?><?php if ($this->time) echo ', ' . $this->time; ?>)"<?= $this->target ?>><?= $this->link ?></a></h2>
<?php else: ?>
<h2><?= $this->title ?></h2>
<?php endif; ?>
<?php
/* Abfrage ob Datum grösser oder gleich Heute ist */
if ($this->date >= $heute):
?>
<p class="time"><time datetime="<?= $this->datetime ?>" itemprop="startDate"><?= $this->date ?><?php if ($this->time): ?> <?= $this->time ?><?php endif; ?></time></p>
<?php else: ?>
<p>Dein Text</p>
<?php endif; ?>
<p class="time"><time datetime="<?= $this->datetime ?>"><?= str_replace("–"," – ",$this->date) ?><?php if ($this->time): ?>, <?= $this->time ?><?php endif; ?></time></p>
<div class="teaser">
<?= $this->teaser ?>
</div>
<?php if ($this->hasDetails): ?>
<a class="more" href="<?= $this->href ?>"><?= $this->more ?></a>
<?php endif; ?>
</div>
</div>
</div>
Template "full":
HTML-Code:
<div class="event layout_full block<?= $this->class ?>" itemscope itemtype="http://schema.org/Event">
<h1 itemprop="name"><?= $this->title ?>
</h1>
<?php if ($this->recurring): ?>
<p class="info recurring"><?= $this->recurring ?></p>
<?php else: ?>
<p class="info"><time datetime="<?= $this->datetime ?>" itemprop="startDate"><?= $this->date ?><?php if ($this->time): ?> <?= $this->time ?><?php endif; ?></time></p>
<?php endif; ?>
<?php if ($this->location): ?>
<p class="location" itemprop="location" itemscope itemtype="http://schema.org/Place">
<span itemprop="name"><?= $this->location ?></span>
<?php if ($this->address): ?>
(<span itemprop="address" itemscope itemtype="http://schema.org/PostalAddress"><?= $this->address ?></span>)
<?php endif; ?>
</p>
<?php endif; ?>
<?php if ($this->details): ?>
<?= $this->details ?>
<?php else: ?>
<div class="ce_text block">
<?php if (!$this->addBefore): ?>
<?= $this->teaser ?>
<?php endif; ?>
<?php if ($this->addImage): ?>
<?php $this->insert('image', $this->arrData); ?>
<?php endif; ?>
<?php if ($this->addBefore): ?>
<?= $this->teaser ?>
<?php endif; ?>
</div>
<?php endif; ?>
<?php if ($this->enclosure): ?>
<ul class="enclosure">
<?php foreach ($this->enclosure as $enclosure): ?>
<li class="download-element ext-<?= $enclosure['extension'] ?>">
<a href="<?= $enclosure['href'] ?>" title="<?= $enclosure['title'] ?>"><?= $enclosure['link'] ?> <span class="size">(<?= $enclosure['filesize'] ?>)</span></a>
</li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
<?php if ($this->reginfo): ?>
<?php endif; ?>
<?php if ($this->regform): ?>
<div class="WhatEverCssClass">
<?= $this->regform ?>
</div>
<hr>
<?php endif; ?>
</div>
Lesezeichen