80 lines
3.8 KiB
PHP
80 lines
3.8 KiB
PHP
<!-- Footer -->
|
|
<div class="footer">
|
|
<div class="footer-header">
|
|
<div class="footer-logo">
|
|
<img src="img/logo.png" alt="kaubuntu.re">
|
|
</div>
|
|
|
|
<div class="footer-contact-info">
|
|
<div class="footer-contact">CONTACT</div>
|
|
<div class="footer-email"><a href="mailto:<?php echo LEGAL_CONTACT_EMAIL; ?>"><?php echo LEGAL_CONTACT_EMAIL; ?></a></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="footer-columns">
|
|
<div class="footer-column">
|
|
<h3 class="footer-title">Catégories</h3>
|
|
<div>
|
|
<ul class="footer-links">
|
|
<li><a href="index.php" <?php echo ($currentPage === 'index.php') ? 'class="active"' : ''; ?>>Accueil</a></li>
|
|
<li><a href="direct.php" <?php echo ($currentPage === 'direct.php') ? 'class="active"' : ''; ?>>Direct</a></li>
|
|
|
|
<?php
|
|
if (defined('PRIORITY_CATEGORIES') && !empty(PRIORITY_CATEGORIES)) {
|
|
foreach (PRIORITY_CATEGORIES as $id => $name) {
|
|
$isActive = ($currentPage === 'categories.php' && $currentCategoryId === $id);
|
|
echo '<li><a href="categories.php?id=' . $id . '"' . ($isActive ? ' class="active"' : '') . '>' . htmlspecialchars($name) . '</a></li>';
|
|
}
|
|
}
|
|
?>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="footer-column">
|
|
<h3 class="footer-title">Hashtags</h3>
|
|
<div>
|
|
<ul class="footer-links">
|
|
<?php
|
|
if (defined('IMPORTANT_TAGS') && !empty(IMPORTANT_TAGS)):
|
|
foreach (IMPORTANT_TAGS as $tag):
|
|
$encodedTag = urlencode('#' . $tag);
|
|
$isActive = ($isTagSearch && strtolower($currentTag) === strtolower($tag));
|
|
?>
|
|
<li><a href="recherche.php?q=<?php echo $encodedTag; ?>" <?php echo $isActive ? 'class="active"' : ''; ?>><?php echo htmlspecialchars($tag); ?></a></li>
|
|
<?php
|
|
endforeach;
|
|
endif;
|
|
?>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="footer-column">
|
|
<h3 class="footer-title">Informations légales</h3>
|
|
<div>
|
|
<ul class="footer-links">
|
|
<li><a href="mentions-legales.php" <?php echo ($currentPage === 'mentions-legales.php') ? 'class="active"' : ''; ?>>Mentions légales</a></li>
|
|
<li>
|
|
<a href="<?php echo LEGAL_SOURCE_CODE_URL; ?>" target="_blank" rel="noopener noreferrer">
|
|
<i class="fab fa-git-alt"></i> Code source
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="footer-social">
|
|
<a target="_blank" rel="noreferrer" href="<?php echo FACEBOOK_URL; ?>"><i class="fab fa-facebook icon-facebook"></i></a>
|
|
<a target="_blank" rel="noreferrer" href="<?php echo YOUTUBE_URL; ?>"><i class="fab fa-youtube icon-youtube"></i></a>
|
|
<a target="_blank" rel="noreferrer" href="<?php echo INSTAGRAM_URL; ?>"><i class="fab fa-instagram icon-instagram"></i></a>
|
|
<a target="_blank" rel="noreferrer" href="<?php echo X_URL; ?>"><i class="fab fa-x-twitter icon-x"></i></a>
|
|
<a target="_blank" rel="noreferrer" href="<?php echo TIKTOK_URL; ?>"><i class="fab fa-tiktok icon-tiktok"></i></a>
|
|
</div>
|
|
|
|
<div class="footer-copyright">
|
|
<?php echo LEGAL_COPYRIGHT; ?> <?php echo date('Y'); ?> - Licence libre <a href="<?php echo LEGAL_LICENSE_URL; ?>" target="_blank" rel="noopener noreferrer">GNU AGPL-V3</a>
|
|
</div>
|
|
</div>
|