38394-vm/includes/footer.php
2026-02-15 05:48:33 +00:00

58 lines
2.0 KiB
PHP

'''<footer class="text-center footer-light">
<div class="container">
<?php if (!empty($profile['logo_url'])):
?>
<img src="<?= htmlspecialchars($profile['logo_url']) ?>" class="footer-logo" alt="Logo">
<?php endif; ?>
<p class="text-muted small">&copy; <?= date('Y') ?> <?= htmlspecialchars($lang === 'en' ? ($profile['name_en'] ?? 'Organization') : ($profile['name_ar'] ?? 'المؤسسة')) ?>. All rights reserved.</p>
<?php if (!empty($profile['address'])):
?>
<p class="text-muted small mb-1"><?= htmlspecialchars($profile['address']) ?></p>
<?php endif; ?>
<?php if (!empty($profile['phone']) || !empty($profile['email'])): ?>
<p class="text-muted small mb-0">
<?php if (!empty($profile['phone'])):
?>
<span><i class="bi bi-telephone"></i> <?= htmlspecialchars($profile['phone']) ?></span>
<?php endif; ?>
<?php if (!empty($profile['phone']) && !empty($profile['email'])):
?>
<span class="mx-2">|</span>
<?php endif; ?>
<?php if (!empty($profile['email'])):
?>
<span><i class="bi bi-envelope"></i> <a href="mailto:<?= htmlspecialchars($profile['email']) ?>"><?= htmlspecialchars($profile['email']) ?></a></span>
<?php endif; ?>
</p>
<?php endif; ?>
</div>
</footer>
<style>
.footer-light {
padding: 2.5rem 0;
background-color: #f8f9fa;
border-top: 1px solid #e9ecef;
}
.footer-logo {
max-height: 45px;
margin-bottom: 1.25rem;
}
.footer-light .text-muted {
color: #6c757d !important;
margin-bottom: 0.5rem;
}
.footer-light a {
color: #495057;
text-decoration: none;
transition: color 0.2s;
}
.footer-light a:hover {
color: var(--primary-color);
}
.footer-light .small {
font-size: 0.9rem;
}
</style>'''