update files

This commit is contained in:
2026-04-02 01:30:54 +02:00
parent 34405b90c3
commit 9d64cdc4e8
73 changed files with 203 additions and 203 deletions

0
.gitignore vendored Normal file → Executable file
View File

0
config/ajaxModule.inc.php Normal file → Executable file
View File

0
config/config.php Normal file → Executable file
View File

0
config/getBasePath.inc.php Normal file → Executable file
View File

0
config/getPage.inc.php Normal file → Executable file
View File

0
config/getStation.inc.php Normal file → Executable file
View File

0
css/animation.css Normal file → Executable file
View File

0
css/bootstrap.css vendored Normal file → Executable file
View File

0
css/fonts/OFL.txt Normal file → Executable file
View File

0
css/fonts/Poppins-Black.ttf Normal file → Executable file
View File

0
css/fonts/Poppins-BlackItalic.ttf Normal file → Executable file
View File

0
css/fonts/Poppins-Bold.ttf Normal file → Executable file
View File

0
css/fonts/Poppins-BoldItalic.ttf Normal file → Executable file
View File

0
css/fonts/Poppins-ExtraBold.ttf Normal file → Executable file
View File

0
css/fonts/Poppins-ExtraBoldItalic.ttf Normal file → Executable file
View File

0
css/fonts/Poppins-ExtraLight.ttf Normal file → Executable file
View File

0
css/fonts/Poppins-ExtraLightItalic.ttf Normal file → Executable file
View File

0
css/fonts/Poppins-Italic.ttf Normal file → Executable file
View File

0
css/fonts/Poppins-Light.ttf Normal file → Executable file
View File

0
css/fonts/Poppins-LightItalic.ttf Normal file → Executable file
View File

0
css/fonts/Poppins-Medium.ttf Normal file → Executable file
View File

0
css/fonts/Poppins-MediumItalic.ttf Normal file → Executable file
View File

0
css/fonts/Poppins-Regular.ttf Normal file → Executable file
View File

0
css/fonts/Poppins-SemiBold.ttf Normal file → Executable file
View File

0
css/fonts/Poppins-SemiBoldItalic.ttf Normal file → Executable file
View File

0
css/fonts/Poppins-Thin.ttf Normal file → Executable file
View File

0
css/fonts/Poppins-ThinItalic.ttf Normal file → Executable file
View File

0
css/style.css Normal file → Executable file
View File

0
data/changelog.xml Normal file → Executable file
View File

0
data/radio.xml Normal file → Executable file
View File

0
data/tv.xml Normal file → Executable file
View File

0
img/RpiGroupPlay.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 31 KiB

0
img/RpiGroupPlay.svg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

0
img/RpiGroupPlayWHITE.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

0
img/RpiGroupPlayWhite.svg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

0
img/articolo.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 750 KiB

After

Width:  |  Height:  |  Size: 750 KiB

0
img/christmascampagna.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 2.1 MiB

After

Width:  |  Height:  |  Size: 2.1 MiB

0
img/christmaseboli.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 1.5 MiB

After

Width:  |  Height:  |  Size: 1.5 MiB

0
img/icons/icon-128x128.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 9.5 KiB

After

Width:  |  Height:  |  Size: 9.5 KiB

0
img/icons/icon-144x144.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

0
img/icons/icon-152x152.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

0
img/icons/icon-192x192.png Normal file → Executable file
View File

0
img/icons/icon-384x384.png Normal file → Executable file
View File

0
img/icons/icon-512x512.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 25 KiB

0
img/icons/icon-72x72.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 5.2 KiB

After

Width:  |  Height:  |  Size: 5.2 KiB

0
img/icons/icon-96x96.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 6.4 KiB

After

Width:  |  Height:  |  Size: 6.4 KiB

0
img/installapp1.jpeg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 51 KiB

After

Width:  |  Height:  |  Size: 51 KiB

0
img/installapp2.jpeg Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 51 KiB

After

Width:  |  Height:  |  Size: 51 KiB

0
img/logoapp.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 53 KiB

After

Width:  |  Height:  |  Size: 53 KiB

0
img/logoapp_512.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 28 KiB

0
img/radio.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 259 KiB

After

Width:  |  Height:  |  Size: 259 KiB

0
img/tv.png Normal file → Executable file
View File

Before

Width:  |  Height:  |  Size: 402 KiB

After

Width:  |  Height:  |  Size: 402 KiB

0
index.php Normal file → Executable file
View File

0
js/app.js Normal file → Executable file
View File

0
manifest.json Normal file → Executable file
View File

0
pages/desktop.php Normal file → Executable file
View File

0
pages/mobile.php Normal file → Executable file
View File

0
pages/page/404.php Normal file → Executable file
View File

0
pages/page/about.php Normal file → Executable file
View File

0
pages/page/changelog.php Normal file → Executable file
View File

0
pages/page/contact.php Normal file → Executable file
View File

0
pages/page/copyright.php Normal file → Executable file
View File

0
pages/page/player.php Normal file → Executable file
View File

0
pages/page/player_tv.php Normal file → Executable file
View File

406
pages/page/podcast.php Normal file → Executable file
View File

@@ -1,203 +1,203 @@
<?php <?php
header('Content-Type: text/html; charset=UTF-8'); header('Content-Type: text/html; charset=UTF-8');
// Feeds configuration // Feeds configuration
$feeds = [ $feeds = [
['url' => "https://www.radiodiffusionelibera.com/podcast/feed/", 'source' => 'RDL'], ['url' => "https://www.radiodiffusionelibera.com/podcast/feed/", 'source' => 'RDL'],
['url' => "https://www.radiocitta105.it/podcast/feed/", 'source' => 'Radio Città 105'] ['url' => "https://www.radiocitta105.it/podcast/feed/", 'source' => 'Radio Città 105']
]; ];
$all_items = []; $all_items = [];
foreach ($feeds as $feed) { foreach ($feeds as $feed) {
// Caricamento feed con soppressione errori per non bloccare l'intera lista // Caricamento feed con soppressione errori per non bloccare l'intera lista
$rss = @simplexml_load_file($feed['url']); $rss = @simplexml_load_file($feed['url']);
if ($rss && isset($rss->channel->item)) { if ($rss && isset($rss->channel->item)) {
foreach ($rss->channel->item as $item) { foreach ($rss->channel->item as $item) {
$all_items[] = [ $all_items[] = [
'title' => (string)$item->title, 'title' => (string)$item->title,
'link' => (string)$item->link, 'link' => (string)$item->link,
'pubDate' => (string)$item->pubDate, 'pubDate' => (string)$item->pubDate,
'timestamp' => strtotime((string)$item->pubDate), 'timestamp' => strtotime((string)$item->pubDate),
'source' => $feed['source'] 'source' => $feed['source']
]; ];
} }
} }
} }
// Ordinamento cronologico decrescente (i più recenti in alto) // Ordinamento cronologico decrescente (i più recenti in alto)
usort($all_items, function($a, $b) { usort($all_items, function($a, $b) {
return $b['timestamp'] - $a['timestamp']; return $b['timestamp'] - $a['timestamp'];
}); });
function formatDateItalian($dateString) { function formatDateItalian($dateString) {
try { try {
$date = new DateTime($dateString); $date = new DateTime($dateString);
$months = [ $months = [
'January' => 'Gennaio', 'February' => 'Febbraio', 'March' => 'Marzo', 'January' => 'Gennaio', 'February' => 'Febbraio', 'March' => 'Marzo',
'April' => 'Aprile', 'May' => 'Maggio', 'June' => 'Giugno', 'April' => 'Aprile', 'May' => 'Maggio', 'June' => 'Giugno',
'July' => 'Luglio', 'August' => 'Agosto', 'September' => 'Settembre', 'July' => 'Luglio', 'August' => 'Agosto', 'September' => 'Settembre',
'October' => 'Ottobre', 'November' => 'Novembre', 'December' => 'Dicembre' 'October' => 'Ottobre', 'November' => 'Novembre', 'December' => 'Dicembre'
]; ];
$formatted = $date->format('j F Y'); $formatted = $date->format('j F Y');
return strtr($formatted, $months); return strtr($formatted, $months);
} catch (Exception $e) { } catch (Exception $e) {
return $dateString; return $dateString;
} }
} }
?> ?>
<style> <style>
.podcast-container { .podcast-container {
position: relative; position: relative;
padding-bottom: 20px; padding-bottom: 20px;
} }
.podcast-item { .podcast-item {
background: #ffffff; background: #ffffff;
border-left: 5px solid #2a377e; border-left: 5px solid #2a377e;
border-radius: 12px; border-radius: 12px;
padding: 16px; padding: 16px;
margin-bottom: 15px; margin-bottom: 15px;
transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
cursor: pointer; cursor: pointer;
box-shadow: 0 4px 12px rgba(0,0,0,0.08); box-shadow: 0 4px 12px rgba(0,0,0,0.08);
border-top: 1px solid #f0f0f0; border-top: 1px solid #f0f0f0;
border-right: 1px solid #f0f0f0; border-right: 1px solid #f0f0f0;
border-bottom: 1px solid #f0f0f0; border-bottom: 1px solid #f0f0f0;
} }
.podcast-item:hover { .podcast-item:hover {
/*transform: translateY(-4px);*/ /*transform: translateY(-4px);*/
/*box-shadow: 0 12px 20px rgba(42, 55, 126, 0.15);*/ /*box-shadow: 0 12px 20px rgba(42, 55, 126, 0.15);*/
background: #f8faff; background: #f8faff;
} }
.podcast-source { .podcast-source {
display: inline-block; display: inline-block;
padding: 2px 10px; padding: 2px 10px;
border-radius: 50px; border-radius: 50px;
font-size: 0.7rem; font-size: 0.7rem;
font-weight: 800; font-weight: 800;
margin-bottom: 8px; margin-bottom: 8px;
text-transform: uppercase; text-transform: uppercase;
letter-spacing: 0.5px; letter-spacing: 0.5px;
} }
.source-rdl { .source-rdl {
background: #eef1ff; background: #eef1ff;
color: #2a377e; color: #2a377e;
border: 1px solid #2a377e30; border: 1px solid #2a377e30;
} }
.source-rc105 { .source-rc105 {
background: #fff4e5; background: #fff4e5;
color: #e65100; color: #e65100;
border: 1px solid #e6510030; border: 1px solid #e6510030;
} }
.podcast-title { .podcast-title {
font-weight: 700; font-weight: 700;
color: #333; color: #333;
font-size: 1.05rem; font-size: 1.05rem;
line-height: 1.4; line-height: 1.4;
margin-bottom: 8px; margin-bottom: 8px;
} }
.podcast-date { .podcast-date {
font-size: 0.8rem; font-size: 0.8rem;
color: #777; color: #777;
display: flex; display: flex;
align-items: center; align-items: center;
text-transform: uppercase; text-transform: uppercase;
letter-spacing: 0.5px; letter-spacing: 0.5px;
} }
.podcast-date .material-icons { .podcast-date .material-icons {
font-size: 14px; font-size: 14px;
margin-right: 6px; margin-right: 6px;
color: #f7b835; color: #f7b835;
} }
#podcast-detail { #podcast-detail {
display: none; display: none;
animation: slideIn 0s ease-out; animation: slideIn 0s ease-out;
position: fixed;background: #ffffff;top: 148px;left: 0;width: 100%; position: fixed;background: #ffffff;top: 148px;left: 0;width: 100%;
} }
@keyframes slideIn { @keyframes slideIn {
from { opacity: 0; transform: translateX(0); } from { opacity: 0; transform: translateX(0); }
to { opacity: 1; transform: translateX(0); } to { opacity: 1; transform: translateX(0); }
} }
.podcast-header-nav { .podcast-header-nav {
display: flex; display: flex;
align-items: center; align-items: center;
padding: 10px 0 20px; padding: 10px 0 20px;
margin-bottom: 10px; margin-bottom: 10px;
} }
.podcast-iframe { .podcast-iframe {
width: 100%; width: 100%;
height: calc(100vh - 227px); height: calc(100vh - 227px);
border: none; border: none;
box-shadow: 0 10px 30px rgba(0,0,0,0.1); box-shadow: 0 10px 30px rgba(0,0,0,0.1);
background: #f9f9f9; background: #f9f9f9;
} }
.error-msg { .error-msg {
text-align: center; text-align: center;
padding: 40px 20px; padding: 40px 20px;
color: #666; color: #666;
} }
.error-msg i { .error-msg i {
font-size: 48px; font-size: 48px;
color: #ccc; color: #ccc;
margin-bottom: 15px; margin-bottom: 15px;
} }
</style> </style>
<h1 class="titlePage">Podcast</h1> <h1 class="titlePage">Podcast</h1>
<hr> <hr>
<div class="tec"> <div class="tec">
<div id="podcast-container" class="podcast-container"> <div id="podcast-container" class="podcast-container">
<!-- Podcast List --> <!-- Podcast List -->
<div id="podcast-list"> <div id="podcast-list">
<?php if (!empty($all_items)): ?> <?php if (!empty($all_items)): ?>
<?php foreach ($all_items as $item): ?> <?php foreach ($all_items as $item): ?>
<div class="podcast-item" onclick="openPodcast('<?php echo addslashes($item['link']); ?>', '<?php echo addslashes($item['title']); ?>')"> <div class="podcast-item" onclick="openPodcast('<?php echo addslashes($item['link']); ?>', '<?php echo addslashes($item['title']); ?>')">
<div class="podcast-source <?php echo $item['source'] === 'RDL' ? 'source-rdl' : 'source-rc105'; ?>"> <div class="podcast-source <?php echo $item['source'] === 'RDL' ? 'source-rdl' : 'source-rc105'; ?>">
<?php echo $item['source']; ?> <?php echo $item['source']; ?>
</div> </div>
<div class="podcast-title"><?php echo $item['title']; ?></div> <div class="podcast-title"><?php echo $item['title']; ?></div>
<div class="podcast-date"> <div class="podcast-date">
<span class="material-icons">calendar_today</span> <span class="material-icons">calendar_today</span>
<?php echo formatDateItalian($item['pubDate']); ?> <?php echo formatDateItalian($item['pubDate']); ?>
</div> </div>
</div> </div>
<?php endforeach; ?> <?php endforeach; ?>
<?php else: ?> <?php else: ?>
<div class="error-msg"> <div class="error-msg">
<span class="material-icons">rss_feed</span> <span class="material-icons">rss_feed</span>
<p>Impossibile caricare i podcast al momento. Riprova più tardi.</p> <p>Impossibile caricare i podcast al momento. Riprova più tardi.</p>
</div> </div>
<?php endif; ?> <?php endif; ?>
</div> </div>
<!-- Podcast Detail (Iframe) --> <!-- Podcast Detail (Iframe) -->
<div id="podcast-detail"> <div id="podcast-detail">
<div class="radio-header" style="padding: 20px; border-bottom: 1px solid #eee; display: flex; align-items: center; justify-content: space-between;"> <div class="radio-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;"> <div class="left-controls" style="display: flex; align-items: center;">
<div class="back-to-list" onclick="closePodcast()" class="linkBox" style="color: #333; display: flex; align-items: center; text-decoration: none; cursor: pointer;"> <div class="back-to-list" onclick="closePodcast()" class="linkBox" style="color: #333; display: flex; align-items: center; text-decoration: none; cursor: pointer;">
<span class="material-icons" style="font-size: 28px;">arrow_back</span> <span class="material-icons" style="font-size: 28px;">arrow_back</span>
</div> </div>
<span style="font-size: 18px; font-weight: 600; color: #333; margin-left: 15px;">Torna ai podcast</span> <span style="font-size: 18px; font-weight: 600; color: #333; margin-left: 15px;">Torna ai podcast</span>
</div> </div>
</div> </div>
<iframe id="podcast-iframe" class="podcast-iframe" src="about:blank"></iframe> <iframe id="podcast-iframe" class="podcast-iframe" src="about:blank"></iframe>
</div> </div>
</div> </div>
</div> </div>
<div id="home-navigation"> <div id="home-navigation">
<a href="<?php echo $base_path; ?>/home" data-page="home" class="linkBox mt-3"> <a href="<?php echo $base_path; ?>/home" data-page="home" class="linkBox mt-3">
<div class="clickBox mt-5 mb-4"> <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> <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 Torna alla Home
</div> </div>
</a> </a>
</div> </div>

0
pages/page/policyprivacy.php Normal file → Executable file
View File

0
pages/page/radio.php Normal file → Executable file
View File

0
pages/page/terminicondizioni.php Normal file → Executable file
View File

0
pages/page/tv.php Normal file → Executable file
View File

0
readme.md Normal file → Executable file
View File

0
robots.txt Normal file → Executable file
View File

0
static/footer.php Normal file → Executable file
View File

0
static/head.php Normal file → Executable file
View File