<?php
global $pageInfo;
if (file_exists($_SERVER['DOCUMENT_ROOT'] . '/rss/js/' . $pageInfo['template'] . '.js')) {
    echo '<script src="/rss/js/' . $pageInfo['template'] . '.js"></script>';
}
?>

<footer>
    <div class="container">
        <div class="row">
            <div class="col-sm-12 col-md-3 d-flex align-center">
                <a href="/"><img src="/rss/img/logo-light.png" class="logo"></a>
            </div>
            <div class="col-sm-12 col-md-3">
                <h4>Links</h4>
                <ul>
                    <?php foreach ($links as $label => $url): ?>
                        <li class="mb-2"><a href="<?php echo $url; ?>" class="menu-item<?php echo $label === $currentPage ? ' active" aria-current="page' : ''; ?>"><?php echo htmlspecialchars($label, ENT_QUOTES, 'UTF-8'); ?></a></li>
                    <?php endforeach; ?>
                </ul>
            </div>
            <div class="col-sm-12 col-md-3">
                <h4>Contact</h4>
                <ul>
                    <li><a href="mailto:info@stellaamor.com">info@stellaamor.com</a></li>
                    <li><a href="mailto:support@stellaamor.com">support@stellaamor.com</a></li>
                </ul>
            </div>
        </div>
    </div>
</footer>
</body>
</html>