</main>
<?php
// Dynamic footer (columns + bottom) — admin controlled
if (file_exists(__DIR__ . '/footer_dynamic.php')) {
    include __DIR__ . '/footer_dynamic.php';
} else {
?>
<footer class="site-footer">
    <div class="footer-inner container">
        <p>&copy; <?php echo date('Y'); ?> <?php echo htmlspecialchars(getSetting('site_name', 'CRIMSON')); ?>. All rights reserved.</p>
    </div>
</footer>
<?php } ?>
<?php $fb = (BASE_URL && BASE_URL !== '/') ? rtrim(BASE_URL, '/') . '/' : ''; ?>
<script src="<?php echo htmlspecialchars($fb); ?>assets/js/main.js?v=2"></script>
</body>
</html>
