Files

29 lines
1.4 KiB
PHP

<?php
$publicBasePath = isset($publicBasePath) && is_string($publicBasePath) ? rtrim($publicBasePath, '/') . '/' : '';
?>
</div><!-- /.container -->
</main>
<footer>
<div class="container">
<p>
&copy; <?= date('Y') ?> <a href="https://www.astronomiemuseum.de" target="_blank" rel="noopener">Astronomiemuseum der Sternwarte Sonneberg</a> &mdash; Thüringens Tor zum Universum
<?php if (!empty($currentLocation)): ?>
&nbsp;&bull;&nbsp;
<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) ?>&deg;&nbsp;/&nbsp;<?= number_format((float)$currentLocation['longitude'], 4) ?>&deg;</span>
<?php if ($currentLocation['elevation'] !== null): ?>
<span class="footer-location-elev"><?= number_format((float)$currentLocation['elevation'], 0) ?>&nbsp;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">&#9998;</a>
<?php endif; ?>
<?php endif; ?>
</p>
</div>
</footer>
</body>
</html>