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:
1 parent
0ee93d3b75
commit
24391c49ac
58 files changed
+5226
-16550
No files matched your search
+50
-73
@@ -1,73 +1,50 @@
|
||||
<?php header('Content-Type: text/html; charset=UTF-8'); ?>
|
||||
|
||||
<?php
|
||||
|
||||
header('X-Content-Type-Options: nosniff');
|
||||
header('X-Frame-Options: SAMEORIGIN');
|
||||
header('X-XSS-Protection: 1; mode=block');
|
||||
header('Referrer-Policy: strict-origin-when-cross-origin');
|
||||
|
||||
?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="it">
|
||||
<head>
|
||||
<title><?php echo $title_site; ?></title>
|
||||
<meta name="description" content="<?php echo $description_site; ?>">
|
||||
<meta name="application-name" content="<?php echo $title_site; ?>">
|
||||
<link rel="icon" type="image/png" href="<?php echo $logo_site; ?>">
|
||||
<meta charset="utf-8">
|
||||
<meta name="msapplication-tap-highlight" content="no">
|
||||
<meta name="HandheldFriendly" content="True">
|
||||
<meta name="MobileOptimized" content="320"/>
|
||||
<meta name="viewport" content="minimal-ui, width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||
<meta name="robots" content="index, follow">
|
||||
<meta name="mobile-web-app-capable" content="yes">
|
||||
<meta name="application-name" content="<?php echo $title_site; ?>">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
||||
<meta name="apple-mobile-web-app-title" content="<?php echo $title_site; ?>">
|
||||
<meta name="theme-color" content="#2a377e">
|
||||
<link rel="apple-touch-icon" href="<?=$base_path?>/img/logoapp.png">
|
||||
<link rel="apple-touch-icon" sizes="152x152" href="<?=$base_path?>/img/icons/icon-152x152.png">
|
||||
<link rel="apple-touch-icon" sizes="192x192" href="<?=$base_path?>/img/icons/icon-192x192.png">
|
||||
<meta name="screen-orientation" content="portrait">
|
||||
<meta name="x5-orientation" content="portrait">
|
||||
<meta name="x5-fullscreen" content="true">
|
||||
<meta name="apple-mobile-web-app-orientations" content="portrait">
|
||||
<meta name="browsermode" content="application">
|
||||
<link rel="manifest" href="<?=$base_path?>/manifest.json?v=<?=$version_app?>">
|
||||
<link rel="stylesheet" href="<?=$base_path?>/css/bootstrap.css">
|
||||
<link rel="stylesheet" href="<?=$base_path?>/css/style.css?v=<?=$version_app?>">
|
||||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
||||
<link rel="stylesheet" href="<?=$base_path?>/css/animation.css?v=<?=$version_app?>">
|
||||
<script src="https://code.jquery.com/jquery-2.2.4.js?v=<?=$version_app?>"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/hls.js@latest"></script>
|
||||
<script src="<?=$base_path?>/js/bootstrap.js?v=<?=$version_app?>"></script>
|
||||
<script>
|
||||
// Passa il percorso base a JavaScript
|
||||
var BASE_PATH = "<?=$base_path?>";
|
||||
|
||||
// Forza l'orientamento portrait
|
||||
if (window.screen && window.screen.orientation) {
|
||||
// Tenta di bloccare l'orientamento in portrait
|
||||
window.addEventListener('load', function() {
|
||||
if (screen.orientation && screen.orientation.lock) {
|
||||
screen.orientation.lock('portrait').catch(function(error) {
|
||||
console.log('Orientation lock not supported or failed:', error);
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// Fallback per dispositivi che non supportano l'API
|
||||
// Mostra un avviso se l'utente ruota il dispositivo
|
||||
window.addEventListener('orientationchange', function() {
|
||||
if (window.orientation !== 0 && window.orientation !== 180) {
|
||||
// Il dispositivo è in landscape, ma non possiamo forzarlo
|
||||
console.log('Si prega di tenere il dispositivo in posizione verticale');
|
||||
}
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body class="<?php echo $show_app ? 'appBody' : 'desktopBody'; ?>">
|
||||
<?php header('Content-Type: text/html; charset=UTF-8'); ?>
|
||||
|
||||
<?php
|
||||
|
||||
header('X-Content-Type-Options: nosniff');
|
||||
header('X-Frame-Options: SAMEORIGIN');
|
||||
header('X-XSS-Protection: 1; mode=block');
|
||||
header('Referrer-Policy: strict-origin-when-cross-origin');
|
||||
|
||||
?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="it" data-theme="dark">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title><?php echo $title_site; ?></title>
|
||||
<meta name="description" content="<?php echo $description_site; ?>">
|
||||
<meta name="application-name" content="<?php echo $title_site; ?>">
|
||||
<!-- App, non sito: niente zoom con le dita, la pagina riempie anche le aree con la tacca (viewport-fit) -->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover">
|
||||
<meta name="msapplication-tap-highlight" content="no">
|
||||
<meta name="HandheldFriendly" content="True">
|
||||
<meta name="robots" content="index, follow">
|
||||
<meta name="mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
||||
<meta name="apple-mobile-web-app-title" content="<?php echo $title_site; ?>">
|
||||
<meta name="theme-color" content="#1c2555">
|
||||
<meta name="color-scheme" content="dark">
|
||||
<link rel="icon" type="image/png" href="<?=$base_path?>/img/logoapp.png">
|
||||
<link rel="apple-touch-icon" href="<?=$base_path?>/img/logoapp.png">
|
||||
<link rel="apple-touch-icon" sizes="152x152" href="<?=$base_path?>/img/icons/icon-152x152.png">
|
||||
<link rel="apple-touch-icon" sizes="192x192" href="<?=$base_path?>/img/icons/icon-192x192.png">
|
||||
<link rel="manifest" href="<?=$base_path?>/manifest.json?v=<?=$version_app?>">
|
||||
|
||||
<!-- Caratteri del tema RPIGroup, ospitati dall'app (funzionano anche offline): Bricolage Grotesque per i titoli,
|
||||
Plus Jakarta Sans per il testo. Partono subito, insieme all'HTML -->
|
||||
<link rel="preload" href="<?=$base_path?>/css/fonts/plus-jakarta-sans-latin-wght-normal.woff2" as="font" type="font/woff2" crossorigin>
|
||||
<link rel="preload" href="<?=$base_path?>/css/fonts/bricolage-grotesque-latin-wght-normal.woff2" as="font" type="font/woff2" crossorigin>
|
||||
<link rel="stylesheet" href="<?=$base_path?>/css/style.css?v=<?=$version_app?>">
|
||||
|
||||
<!-- hls.js (flussi HLS di radio e TV su Chrome, Firefox, Edge; Safari li legge da solo). Versione 1.x fissata -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/hls.js@1/dist/hls.min.js"></script>
|
||||
<script>
|
||||
// Percorso base dell'app, letto dagli script
|
||||
var BASE_PATH = "<?=$base_path?>";
|
||||
var APP_VERSION = "<?=$version_app?>";
|
||||
</script>
|
||||
</head>
|
||||
<body class="app-body">
|
||||
Reference in new issue
Block a user