vers. 2.5.0
This commit is contained in:
0
pages/desktop.php
Normal file → Executable file
0
pages/desktop.php
Normal file → Executable file
8
pages/mobile.php
Normal file → Executable file
8
pages/mobile.php
Normal file → Executable file
@@ -11,7 +11,7 @@
|
||||
<a href="<?php echo $base_path; ?>/" data-page="home" class="navLink <?php echo $page == 'home' ? 'active' : ''; ?>">Home</a>
|
||||
<a href="<?php echo $base_path; ?>/radio" data-page="radio" class="navLink <?php echo ($page == 'radio' || $page == 'play') ? 'active' : ''; ?>">Radio</a>
|
||||
<a href="<?php echo $base_path; ?>/tv" data-page="tv" class="navLink <?php echo ($page == 'tv' || $page == 'playtv') ? 'active' : ''; ?>">TV</a>
|
||||
<a href="<?php echo $base_path; ?>/page/addradio" data-page="page/addradio" class="navLink <?php echo ($page == 'page' && $param == 'addradio') ? 'active' : ''; ?>">Add Radio</a>
|
||||
<a href="<?php echo $base_path; ?>/podcast" data-page="podcast" class="navLink <?php echo ($page == 'page' && $param == 'addradio') ? 'active' : ''; ?>">Podcast</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -56,6 +56,9 @@
|
||||
include './pages/page/home.php';
|
||||
}
|
||||
break;
|
||||
case 'podcast':
|
||||
include './pages/page/podcast.php';
|
||||
break;
|
||||
case 'page':
|
||||
if (!empty($param)) {
|
||||
switch ($param) {
|
||||
@@ -65,9 +68,6 @@
|
||||
case 'copyright':
|
||||
include './pages/page/copyright.php';
|
||||
break;
|
||||
case 'addradio':
|
||||
include './pages/page/addradio.php';
|
||||
break;
|
||||
case 'contact':
|
||||
include './pages/page/contact.php';
|
||||
break;
|
||||
|
||||
0
pages/page/404.php
Normal file → Executable file
0
pages/page/404.php
Normal file → Executable file
0
pages/page/about.php
Normal file → Executable file
0
pages/page/about.php
Normal file → Executable file
@@ -1,17 +0,0 @@
|
||||
<?php header('Content-Type: text/html; charset=UTF-8'); ?>
|
||||
|
||||
<h1 class="titlePage">Aggiungi la tua radio</h1>
|
||||
|
||||
<hr>
|
||||
|
||||
<div class="tec">
|
||||
<p>Al momento, il modulo è temporaneamente chiuso</p>
|
||||
<p>Ti invitiamo a controllare più tardi oppure, attendi l'uscita di un prossimo aggiornamento!</p>
|
||||
</div>
|
||||
|
||||
<a href="<?php echo $base_path; ?>/home" data-page="home" class="linkBox mt-3">
|
||||
<div class="clickBox mt-5 mb-4">
|
||||
<svg class="w-6 h-6 text-gray-800 dark:text-white" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 12h14M5 12l4-4m-4 4 4 4"/></svg>
|
||||
Torna alla Home
|
||||
</div>
|
||||
</a>
|
||||
0
pages/page/changelog.php
Normal file → Executable file
0
pages/page/changelog.php
Normal file → Executable file
0
pages/page/contact.php
Normal file → Executable file
0
pages/page/contact.php
Normal file → Executable file
0
pages/page/copyright.php
Normal file → Executable file
0
pages/page/copyright.php
Normal file → Executable file
@@ -20,6 +20,13 @@
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<a href="<?php echo $base_path; ?>/podcast" data-page="podcast" class="linkBox">
|
||||
<div class="clickBox Squared">
|
||||
<p class="m-0 p-0">PODCAST</p>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
@@ -63,13 +70,6 @@
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<a href="<?php echo $base_path; ?>/page/addradio" data-page="page/addradio" class="linkBox">
|
||||
<div class="clickBox p-2">
|
||||
Aggiungi la tua radio
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
<div class="col-4">
|
||||
<a href="<?php echo $base_path; ?>/page/about" data-page="page/about" class="linkBox">
|
||||
<div class="clickBox">
|
||||
|
||||
0
pages/page/player.php
Normal file → Executable file
0
pages/page/player.php
Normal file → Executable file
100
pages/page/player_tv.php
Normal file → Executable file
100
pages/page/player_tv.php
Normal file → Executable file
@@ -1,50 +1,50 @@
|
||||
<?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
|
||||
// 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>
|
||||
|
||||
0
pages/page/policyprivacy.php
Normal file → Executable file
0
pages/page/policyprivacy.php
Normal file → Executable file
0
pages/page/radio.php
Normal file → Executable file
0
pages/page/radio.php
Normal file → Executable file
0
pages/page/terminicondizioni.php
Normal file → Executable file
0
pages/page/terminicondizioni.php
Normal file → Executable file
0
pages/page/tv.php
Normal file → Executable file
0
pages/page/tv.php
Normal file → Executable file
Reference in New Issue
Block a user