29 lines
1.4 KiB
PHP
29 lines
1.4 KiB
PHP
<?php
|
|
$publicBasePath = isset($publicBasePath) && is_string($publicBasePath) ? rtrim($publicBasePath, '/') . '/' : '';
|
|
?>
|
|
</div><!-- /.container -->
|
|
</main>
|
|
|
|
<footer>
|
|
<div class="container">
|
|
<p>
|
|
© <?= date('Y') ?> <a href="https://www.astronomiemuseum.de" target="_blank" rel="noopener">Astronomiemuseum der Sternwarte Sonneberg</a> — Thüringens Tor zum Universum
|
|
<?php if (!empty($currentLocation)): ?>
|
|
•
|
|
<span class="footer-location-label">Standort:</span>
|
|
<span class="footer-location-value"><?= htmlspecialchars($currentLocation['name'], ENT_QUOTES, 'UTF-8') ?></span>
|
|
<span class="footer-location-coords"><?= number_format((float)$currentLocation['latitude'], 4) ?>° / <?= number_format((float)$currentLocation['longitude'], 4) ?>°</span>
|
|
<?php if ($currentLocation['elevation'] !== null): ?>
|
|
<span class="footer-location-elev"><?= number_format((float)$currentLocation['elevation'], 0) ?> m</span>
|
|
<?php endif; ?>
|
|
<?php if ($loggedIn && empty($locationIsGlobal)): ?>
|
|
<a href="<?= htmlspecialchars($publicBasePath . 'public/my_favorites.php', ENT_QUOTES, 'UTF-8') ?>" class="footer-location-link">✎</a>
|
|
<?php endif; ?>
|
|
<?php endif; ?>
|
|
</p>
|
|
</div>
|
|
</footer>
|
|
|
|
</body>
|
|
</html>
|