42 lines
2.2 KiB
PHP
42 lines
2.2 KiB
PHP
<?php header('Content-Type: text/html; charset=UTF-8'); ?>
|
|
|
|
<div class="radio-header" style="padding: 20px; margin: 0 0 20px 0; border-bottom: 1px solid #eee; display: flex; align-items: center; justify-content: space-between;position: sticky;top: 0px;background: white; z-index: 2;">
|
|
<div class="left-controls" style="display: flex; align-items: center;">
|
|
<a href="<?php echo $base_path; ?>/home" data-page="home" 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;">Changelog</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="px-4">
|
|
|
|
<p class="text-center" style="font-size: 0.9rem; font-weight: 300;">Codice dell'app visionabile su <a href="https://git.asv.ovh/asvstudiosapps/rpigroupplay" target="_blank" style="font-weight: 500;">ASV Git</a></p>
|
|
|
|
<?php
|
|
// Verifica che $changelog sia stato caricato correttamente in getStation.inc.php
|
|
if (isset($changelog) && $changelog !== false && isset($changelog->version)) {
|
|
// Itera attraverso le versioni
|
|
foreach($changelog->version as $version) {
|
|
echo "<hr>";
|
|
echo "<p class=\"changelogTitle\">Versione " . htmlspecialchars((string)$version->number) . "</p>";
|
|
|
|
// Verifica che esistano i log prima di iterare
|
|
if (isset($version->logs) && isset($version->logs->log)) {
|
|
foreach($version->logs->log as $log_print) {
|
|
echo "<p class=\"changelogList\">• " . htmlspecialchars((string)$log_print) . "</p>";
|
|
}
|
|
} else {
|
|
echo "<p class=\"changelogList\" style=\"font-style: italic; color: #999;\">Nessun dettaglio disponibile per questa versione.</p>";
|
|
}
|
|
}
|
|
} else {
|
|
// Messaggio di errore se il changelog non è disponibile
|
|
echo "<hr>";
|
|
echo "<div style=\"padding: 20px; background: #fff3cd; border: 1px solid #ffc107; border-radius: 5px; margin: 20px 0;\">";
|
|
echo "<p style=\"margin: 0; color: #856404;\"><strong>Attenzione:</strong> Impossibile caricare il changelog. Il file potrebbe essere mancante o corrotto.</p>";
|
|
echo "</div>";
|
|
}
|
|
?>
|
|
|
|
</div>
|