Channel Logos
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user