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
+7 -1
View File
@@ -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>