diff --git a/.gitignore b/.gitignore old mode 100755 new mode 100644 diff --git a/config/ajaxModule.inc.php b/config/ajaxModule.inc.php old mode 100755 new mode 100644 diff --git a/config/config.php b/config/config.php old mode 100755 new mode 100644 diff --git a/config/getBasePath.inc.php b/config/getBasePath.inc.php old mode 100755 new mode 100644 diff --git a/config/getPage.inc.php b/config/getPage.inc.php old mode 100755 new mode 100644 diff --git a/config/getStation.inc.php b/config/getStation.inc.php old mode 100755 new mode 100644 diff --git a/css/animation.css b/css/animation.css old mode 100755 new mode 100644 diff --git a/css/bootstrap.css b/css/bootstrap.css old mode 100755 new mode 100644 diff --git a/css/fonts/OFL.txt b/css/fonts/OFL.txt old mode 100755 new mode 100644 diff --git a/css/fonts/Poppins-Black.ttf b/css/fonts/Poppins-Black.ttf old mode 100755 new mode 100644 diff --git a/css/fonts/Poppins-BlackItalic.ttf b/css/fonts/Poppins-BlackItalic.ttf old mode 100755 new mode 100644 diff --git a/css/fonts/Poppins-Bold.ttf b/css/fonts/Poppins-Bold.ttf old mode 100755 new mode 100644 diff --git a/css/fonts/Poppins-BoldItalic.ttf b/css/fonts/Poppins-BoldItalic.ttf old mode 100755 new mode 100644 diff --git a/css/fonts/Poppins-ExtraBold.ttf b/css/fonts/Poppins-ExtraBold.ttf old mode 100755 new mode 100644 diff --git a/css/fonts/Poppins-ExtraBoldItalic.ttf b/css/fonts/Poppins-ExtraBoldItalic.ttf old mode 100755 new mode 100644 diff --git a/css/fonts/Poppins-ExtraLight.ttf b/css/fonts/Poppins-ExtraLight.ttf old mode 100755 new mode 100644 diff --git a/css/fonts/Poppins-ExtraLightItalic.ttf b/css/fonts/Poppins-ExtraLightItalic.ttf old mode 100755 new mode 100644 diff --git a/css/fonts/Poppins-Italic.ttf b/css/fonts/Poppins-Italic.ttf old mode 100755 new mode 100644 diff --git a/css/fonts/Poppins-Light.ttf b/css/fonts/Poppins-Light.ttf old mode 100755 new mode 100644 diff --git a/css/fonts/Poppins-LightItalic.ttf b/css/fonts/Poppins-LightItalic.ttf old mode 100755 new mode 100644 diff --git a/css/fonts/Poppins-Medium.ttf b/css/fonts/Poppins-Medium.ttf old mode 100755 new mode 100644 diff --git a/css/fonts/Poppins-MediumItalic.ttf b/css/fonts/Poppins-MediumItalic.ttf old mode 100755 new mode 100644 diff --git a/css/fonts/Poppins-Regular.ttf b/css/fonts/Poppins-Regular.ttf old mode 100755 new mode 100644 diff --git a/css/fonts/Poppins-SemiBold.ttf b/css/fonts/Poppins-SemiBold.ttf old mode 100755 new mode 100644 diff --git a/css/fonts/Poppins-SemiBoldItalic.ttf b/css/fonts/Poppins-SemiBoldItalic.ttf old mode 100755 new mode 100644 diff --git a/css/fonts/Poppins-Thin.ttf b/css/fonts/Poppins-Thin.ttf old mode 100755 new mode 100644 diff --git a/css/fonts/Poppins-ThinItalic.ttf b/css/fonts/Poppins-ThinItalic.ttf old mode 100755 new mode 100644 diff --git a/css/style.css b/css/style.css old mode 100755 new mode 100644 diff --git a/data/changelog.xml b/data/changelog.xml old mode 100755 new mode 100644 diff --git a/data/radio.xml b/data/radio.xml old mode 100755 new mode 100644 diff --git a/data/tv.xml b/data/tv.xml old mode 100755 new mode 100644 diff --git a/img/RpiGroupPlay.png b/img/RpiGroupPlay.png old mode 100755 new mode 100644 diff --git a/img/RpiGroupPlay.svg b/img/RpiGroupPlay.svg old mode 100755 new mode 100644 diff --git a/img/RpiGroupPlayWHITE.png b/img/RpiGroupPlayWHITE.png old mode 100755 new mode 100644 diff --git a/img/RpiGroupPlayWhite.svg b/img/RpiGroupPlayWhite.svg old mode 100755 new mode 100644 diff --git a/img/articolo.png b/img/articolo.png old mode 100755 new mode 100644 diff --git a/img/christmascampagna.png b/img/christmascampagna.png old mode 100755 new mode 100644 diff --git a/img/christmaseboli.png b/img/christmaseboli.png old mode 100755 new mode 100644 diff --git a/img/icons/icon-128x128.png b/img/icons/icon-128x128.png old mode 100755 new mode 100644 diff --git a/img/icons/icon-144x144.png b/img/icons/icon-144x144.png old mode 100755 new mode 100644 diff --git a/img/icons/icon-152x152.png b/img/icons/icon-152x152.png old mode 100755 new mode 100644 diff --git a/img/icons/icon-192x192.png b/img/icons/icon-192x192.png old mode 100755 new mode 100644 diff --git a/img/icons/icon-384x384.png b/img/icons/icon-384x384.png old mode 100755 new mode 100644 diff --git a/img/icons/icon-512x512.png b/img/icons/icon-512x512.png old mode 100755 new mode 100644 diff --git a/img/icons/icon-72x72.png b/img/icons/icon-72x72.png old mode 100755 new mode 100644 diff --git a/img/icons/icon-96x96.png b/img/icons/icon-96x96.png old mode 100755 new mode 100644 diff --git a/img/installapp1.jpeg b/img/installapp1.jpeg old mode 100755 new mode 100644 diff --git a/img/installapp2.jpeg b/img/installapp2.jpeg old mode 100755 new mode 100644 diff --git a/img/logoapp.png b/img/logoapp.png old mode 100755 new mode 100644 diff --git a/img/logoapp_512.png b/img/logoapp_512.png old mode 100755 new mode 100644 diff --git a/img/radio.png b/img/radio.png old mode 100755 new mode 100644 diff --git a/img/tv.png b/img/tv.png old mode 100755 new mode 100644 diff --git a/index.php b/index.php old mode 100755 new mode 100644 diff --git a/js/app.js b/js/app.js old mode 100755 new mode 100644 diff --git a/manifest.json b/manifest.json old mode 100755 new mode 100644 diff --git a/pages/desktop.php b/pages/desktop.php old mode 100755 new mode 100644 diff --git a/pages/mobile.php b/pages/mobile.php old mode 100755 new mode 100644 diff --git a/pages/page/404.php b/pages/page/404.php old mode 100755 new mode 100644 diff --git a/pages/page/about.php b/pages/page/about.php old mode 100755 new mode 100644 diff --git a/pages/page/changelog.php b/pages/page/changelog.php old mode 100755 new mode 100644 diff --git a/pages/page/contact.php b/pages/page/contact.php old mode 100755 new mode 100644 diff --git a/pages/page/copyright.php b/pages/page/copyright.php old mode 100755 new mode 100644 diff --git a/pages/page/player.php b/pages/page/player.php old mode 100755 new mode 100644 diff --git a/pages/page/player_tv.php b/pages/page/player_tv.php old mode 100755 new mode 100644 diff --git a/pages/page/podcast.php b/pages/page/podcast.php new file mode 100644 index 0000000..81b4bae --- /dev/null +++ b/pages/page/podcast.php @@ -0,0 +1,203 @@ + "https://www.radiodiffusionelibera.com/podcast/feed/", 'source' => 'RDL'], + ['url' => "https://www.radiocitta105.it/podcast/feed/", 'source' => 'Radio Città 105'] +]; + +$all_items = []; +foreach ($feeds as $feed) { + // Caricamento feed con soppressione errori per non bloccare l'intera lista + $rss = @simplexml_load_file($feed['url']); + if ($rss && isset($rss->channel->item)) { + foreach ($rss->channel->item as $item) { + $all_items[] = [ + 'title' => (string)$item->title, + 'link' => (string)$item->link, + 'pubDate' => (string)$item->pubDate, + 'timestamp' => strtotime((string)$item->pubDate), + 'source' => $feed['source'] + ]; + } + } +} + +// Ordinamento cronologico decrescente (i più recenti in alto) +usort($all_items, function($a, $b) { + return $b['timestamp'] - $a['timestamp']; +}); + +function formatDateItalian($dateString) { + try { + $date = new DateTime($dateString); + $months = [ + 'January' => 'Gennaio', 'February' => 'Febbraio', 'March' => 'Marzo', + 'April' => 'Aprile', 'May' => 'Maggio', 'June' => 'Giugno', + 'July' => 'Luglio', 'August' => 'Agosto', 'September' => 'Settembre', + 'October' => 'Ottobre', 'November' => 'Novembre', 'December' => 'Dicembre' + ]; + $formatted = $date->format('j F Y'); + return strtr($formatted, $months); + } catch (Exception $e) { + return $dateString; + } +} +?> + + + +

Podcast

+ +
+ +
+
+ + +
+ + +
+
+ +
+
+
+ calendar_today + +
+
+ + +
+ rss_feed +

Impossibile caricare i podcast al momento. Riprova più tardi.

+
+ +
+ + +
+
+
+
+ arrow_back +
+ Torna ai podcast +
+
+ + +
+ +
+
+ +
+ +
+ + Torna alla Home +
+
+
+ + + diff --git a/pages/page/policyprivacy.php b/pages/page/policyprivacy.php old mode 100755 new mode 100644 diff --git a/pages/page/radio.php b/pages/page/radio.php old mode 100755 new mode 100644 diff --git a/pages/page/terminicondizioni.php b/pages/page/terminicondizioni.php old mode 100755 new mode 100644 diff --git a/pages/page/tv.php b/pages/page/tv.php old mode 100755 new mode 100644 diff --git a/readme.md b/readme.md old mode 100755 new mode 100644 diff --git a/robots.txt b/robots.txt old mode 100755 new mode 100644 diff --git a/static/footer.php b/static/footer.php old mode 100755 new mode 100644 diff --git a/static/head.php b/static/head.php old mode 100755 new mode 100644