vers. 3.0.0 - nuova interfaccia app per mobile e desktop

Nuova UI disegnata sul tema RPIGroup Radio Theme dei siti del gruppo:
guscio unico responsive (sidebar e player in basso da 900px, topbar e
tab bar su telefono), player della radio persistente nel dock con
now playing, HLS/MP3, volume e Media Session; pagine radio, tv,
podcast (copertine e programma dal feed), player e pagine di testo
rifatte; icone SVG inline al posto di Bootstrap, jQuery e Material
Icons; font Bricolage Grotesque e Plus Jakarta Sans in locale;
service worker v5, manifest con orientamento libero, icone PWA 192 e
384 rigenerate.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
alexspeakerandClaude Fable 5.1 committed 2026-11-06 14:56:08 +01:00
1 parent 0ee93d3b75
commit 24391c49ac
58 files changed
+5226 -16550

No files matched your search

+47 -50
View File
@@ -1,50 +1,47 @@
<?php
// Assicurati che $station sia definito (dovrebbe essere passato da mobile.php)
if (!isset($station) || empty($station)) {
echo '<div class="alert alert-danger">Errore: Stazione TV non trovata.</div>';
return;
}
$station_id = (string)$station->id;
$station_name = (string)$station->name;
$station_logo = (string)$station->logo;
$station_stream = (string)$station->stream;
$station_poster = isset($station->poster) ? (string)$station->poster : '';
?>
<!-- Container player con sfondo bianco -->
<div class="tv-player-container" style="background-color: #ffffff;height: calc(100% - <?php if($is_mobile){ echo "232px"; }else{ echo "217px"; } ?>);position: absolute;left: calc(50%);display: flex;flex-direction: column;max-width: 750px;transform: translateX(-50%);width: 100%;">
<!-- Header semplice con pulsante indietro e nome -->
<div class="tv-header" style="padding: 20px; border-bottom: 1px solid #eee; display: flex; align-items: center; justify-content: space-between;">
<div class="left-controls" style="display: flex; align-items: center;">
<a href="<?php echo $base_path; ?>/tv" data-page="tv" class="linkBox" style="color: #333; display: flex; align-items: center; text-decoration: none;">
<span class="material-icons" style="font-size: 28px;">arrow_back</span>
</a>
<span style="font-size: 18px; font-weight: 600; color: #333; margin-left: 15px;"><?php echo $station_name; ?></span>
</div>
<?php if(!empty($station_logo)): ?>
<div class="right-controls">
<img src="<?php echo $station_logo; ?>" alt="Logo" style="height: 30px; width: auto;">
</div>
<?php endif; ?>
</div>
<!-- Area Video -->
<div class="video-wrapper" style="flex: 1; display: flex; align-items: center; justify-content: center; background-color: #000;">
<video id="tvVideoPlayer"
class="video-js"
controls
playsinline
data-src="<?php echo $station_stream; ?>"
poster="<?php echo $station_poster; ?>"
style="width: 100%; max-width: 100%; max-height: 100vh; aspect-ratio: 16/9;">
<p class="vjs-no-js">
To view this video please enable JavaScript, and consider upgrading to a web browser that
<a href="https://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a>
</p>
</video>
</div>
</div>
<?php
// Vista di una web TV: barra con "torna a TV" e nome, poi il video (flusso HLS, js/app.js lo avvia).
if (!isset($station) || empty($station)) {
include './pages/page/404.php';
return;
}
$station_name = (string)$station->name;
$station_logo = (string)$station->logo;
$station_stream = (string)$station->stream;
$station_poster = isset($station->poster) ? (string)$station->poster : '';
?>
<section class="tv-view fill-view" aria-label="<?= htmlspecialchars($station_name) ?>">
<div class="view-bar">
<?= rpi_back_pill('tv', 'TV') ?>
<div class="view-title">
<strong><?= htmlspecialchars($station_name) ?></strong>
<span>Web TV in diretta</span>
</div>
<span class="chip chip-live"><span class="live-dot"></span> Live</span>
</div>
<div class="tv-stage">
<div class="tv-player">
<video id="tvVideoPlayer"
controls
playsinline
preload="none"
data-src="<?= htmlspecialchars($station_stream) ?>"
<?php if ($station_poster !== ''): ?>poster="<?= htmlspecialchars($station_poster) ?>"<?php endif; ?>
aria-label="Video di <?= htmlspecialchars($station_name) ?>"></video>
<p class="tv-error" role="status" hidden></p>
</div>
<?php if ($station_logo !== ''): ?>
<div class="tv-caption">
<img src="<?= htmlspecialchars($station_logo) ?>" alt="" width="40" height="40">
<div>
<strong><?= htmlspecialchars($station_name) ?></strong>
<span>La diretta video del canale. Mentre guardi la TV la radio si mette in pausa.</span>
</div>
</div>
<?php endif; ?>
</div>
</section>