Channel Logos
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
<?php
|
||||
require_once __DIR__ . '/../src/Services/LogoService.php';
|
||||
|
||||
$logoUrl = LogoService::getLogoUrl($channelId);
|
||||
?>
|
||||
|
||||
<section class="channel">
|
||||
<div class="channel-header">
|
||||
<?= htmlspecialchars($channel['name']) ?>
|
||||
<div class="channel-header channel-header-with-logo">
|
||||
<img class="mini-channel-logo" src="<?= htmlspecialchars($logoUrl) ?>" alt="">
|
||||
<span><?= htmlspecialchars($channel['name']) ?></span>
|
||||
</div>
|
||||
|
||||
<?php if (!$programmes): ?>
|
||||
@@ -13,4 +20,3 @@
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
<?php
|
||||
require_once __DIR__ . '/../src/Services/LogoService.php';
|
||||
?>
|
||||
|
||||
<?php if ($saved): ?>
|
||||
<div class="notice">Sender gespeichert. EPG wird beim nächsten Laden neu aufgebaut.</div>
|
||||
<?php endif; ?>
|
||||
@@ -60,6 +64,7 @@
|
||||
$enabled = !empty($channel['enabled']);
|
||||
$favorite = !empty($channel['favorite']);
|
||||
$name = $channel['name'] ?? $id;
|
||||
$logoUrl = LogoService::getLogoUrl($id);
|
||||
$number = (int)($channel['number'] ?? 999999);
|
||||
$group = $channel['group'] ?? 'Unknown';
|
||||
?>
|
||||
@@ -78,6 +83,9 @@
|
||||
>
|
||||
<div class="channel-settings-main">
|
||||
<div class="drag-handle" draggable="true" title="Zum Sortieren ziehen">☰</div>
|
||||
<div class="channel-logo">
|
||||
<img src="<?= htmlspecialchars($logoUrl) ?>" alt="">
|
||||
</div>
|
||||
<label class="switch-row">
|
||||
<input class="enabled-checkbox" type="checkbox" name="enabled[<?= htmlspecialchars($id) ?>]" <?= $enabled ? 'checked' : '' ?>>
|
||||
<span class="channel-settings-title"><?= htmlspecialchars($name) ?></span>
|
||||
|
||||
+10
-14
@@ -1,4 +1,6 @@
|
||||
<?php
|
||||
require_once __DIR__ . '/../src/Services/LogoService.php';
|
||||
|
||||
$tz = new DateTimeZone('Europe/Vienna');
|
||||
|
||||
$dateObj = new DateTime($selectedDate, $tz);
|
||||
@@ -124,14 +126,10 @@ foreach ($dayProgrammes as $channel) {
|
||||
<div class="timeline-row">
|
||||
|
||||
<div class="timeline-channel">
|
||||
<?php if (!empty($channel['channel_icon'])): ?>
|
||||
<img
|
||||
class="channel-logo"
|
||||
src="<?= htmlspecialchars($channel['channel_icon']) ?>"
|
||||
alt="<?= htmlspecialchars($channel['channel_name']) ?>">
|
||||
<?php else: ?>
|
||||
<span class="channel-number"><?= (int)$channel['channel_number'] ?></span>
|
||||
<?php endif; ?>
|
||||
<img
|
||||
class="channel-logo"
|
||||
src="<?= htmlspecialchars(LogoService::getLogoUrl($channel['channel_id'])) ?>"
|
||||
alt="<?= htmlspecialchars($channel['channel_name']) ?>">
|
||||
|
||||
<span class="timeline-channel-name"><?= htmlspecialchars($channel['channel_name']) ?></span>
|
||||
|
||||
@@ -179,12 +177,10 @@ foreach ($dayProgrammes as $channel) {
|
||||
<div class="day-channel-header">
|
||||
<div>
|
||||
<span class="channel-number"><?= (int)$channel['channel_number'] ?></span>
|
||||
<?php if (!empty($channel['channel_icon'])): ?>
|
||||
<img
|
||||
class="channel-logo"
|
||||
src="<?= htmlspecialchars($channel['channel_icon']) ?>"
|
||||
alt="<?= htmlspecialchars($channel['channel_name']) ?>">
|
||||
<?php endif; ?>
|
||||
<img
|
||||
class="channel-logo"
|
||||
src="<?= htmlspecialchars(LogoService::getLogoUrl($channel['channel_id'])) ?>"
|
||||
alt="<?= htmlspecialchars($channel['channel_name']) ?>">
|
||||
|
||||
<strong><?= htmlspecialchars($channel['channel_name']) ?></strong>
|
||||
<?php if ($channel['favorite']): ?>
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
<?php $isFavoritesView = ($view ?? '') === 'favorites'; ?>
|
||||
<?php
|
||||
require_once __DIR__ . '/../src/Services/LogoService.php';
|
||||
|
||||
$isFavoritesView = ($view ?? '') === 'favorites';
|
||||
?>
|
||||
|
||||
<section class="page-heading">
|
||||
<h2><?= $isFavoritesView ? 'Favoriten' : 'Jetzt läuft' ?></h2>
|
||||
@@ -19,8 +23,10 @@
|
||||
|
||||
<div class="now-grid" data-live-now-grid>
|
||||
<?php foreach ($currentProgrammes as $item): ?>
|
||||
<?php $logoUrl = LogoService::getLogoUrl($item['channel_id']); ?>
|
||||
<article class="now-card">
|
||||
<div class="now-channel">
|
||||
<img class="mini-channel-logo" src="<?= htmlspecialchars($logoUrl) ?>" alt="">
|
||||
<span><?= htmlspecialchars($item['channel_name']) ?></span>
|
||||
<?php if ($item['favorite']): ?>
|
||||
<span class="favorite-star">⭐</span>
|
||||
|
||||
Reference in New Issue
Block a user