Channel Logos

This commit is contained in:
Gogs
2026-07-08 17:31:48 +02:00
parent 6f93ae60c0
commit 9831469bd0
135 changed files with 3387 additions and 26 deletions
+8
View File
@@ -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>