Add configurable legal pages and admin settings
This commit is contained in:
+11
-1
@@ -1,9 +1,19 @@
|
||||
<?php
|
||||
$langCode = (isset($lang) && $lang === 'de') ? 'de' : 'en';
|
||||
$langSuffix = $langCode === 'de' ? '?lang=de' : '';
|
||||
$settings = function_exists('load_site_settings') ? load_site_settings() : null;
|
||||
$contactEmail = $settings['imprint'][$langCode]['email'] ?? 'contact@flixcooks.at';
|
||||
?>
|
||||
<footer class="site-footer">
|
||||
<div class="footer-meta">
|
||||
<p>Cook or get cooked.</p>
|
||||
<a class="contact-link" href="mailto:contact@flixcooks.at">Contact me</a>
|
||||
<a class="contact-link" href="mailto:<?php echo e($contactEmail); ?>">Contact me</a>
|
||||
<small>© <?php echo date('Y'); ?> FlixCooks</small>
|
||||
</div>
|
||||
<div class="footer-links">
|
||||
<a href="/impressum.php<?php echo $langSuffix; ?>"><?php echo $langCode === 'de' ? 'Impressum' : 'Imprint'; ?></a>
|
||||
<a href="/datenschutz.php<?php echo $langSuffix; ?>"><?php echo $langCode === 'de' ? 'Datenschutz' : 'Privacy'; ?></a>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<button id="backToTop" aria-label="Back to top">↑ Back to top</button>
|
||||
|
||||
Reference in New Issue
Block a user