Add now playing view
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
<section class="page-heading">
|
||||
<h2>Jetzt läuft</h2>
|
||||
<p>Aktuelle Sendungen auf deinen aktivierten Sendern.</p>
|
||||
</section>
|
||||
|
||||
<?php if (!$currentProgrammes): ?>
|
||||
<div class="empty">Aktuell wurden keine laufenden Sendungen gefunden.</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="now-grid">
|
||||
<?php foreach ($currentProgrammes as $item): ?>
|
||||
<article class="now-card">
|
||||
<div class="now-channel">
|
||||
<span><?= htmlspecialchars($item['channel_name']) ?></span>
|
||||
<?php if ($item['favorite']): ?>
|
||||
<span class="favorite-star">⭐</span>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<h3><?= htmlspecialchars($item['title']) ?></h3>
|
||||
|
||||
<?php if ($item['subtitle']): ?>
|
||||
<div class="now-subtitle"><?= htmlspecialchars($item['subtitle']) ?></div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($item['category']): ?>
|
||||
<span class="category"><?= htmlspecialchars($item['category']) ?></span>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="progress-wrap">
|
||||
<div class="progress-meta">
|
||||
<span><?= date('H:i', $item['start']) ?></span>
|
||||
<span><?= date('H:i', $item['stop']) ?></span>
|
||||
</div>
|
||||
|
||||
<div class="progress-bar">
|
||||
<div class="progress-fill" style="width: <?= (int)$item['percent'] ?>%"></div>
|
||||
</div>
|
||||
|
||||
<div class="remaining">
|
||||
<?= (int)$item['percent'] ?>% · noch <?= (int)$item['remaining_minutes'] ?> Minuten
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if ($item['description']): ?>
|
||||
<p class="now-desc"><?= htmlspecialchars($item['description']) ?></p>
|
||||
<?php endif; ?>
|
||||
</article>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
Reference in New Issue
Block a user