<footer class="footer">
    <div class="navbar navbar-inverse navbar-fixed-bottom footer-navbar">
        <div class="container-fluid">
            <div id="footer-body">
                <div class="col-md-offset-1 col-md-2">
                    <ul class="nav navbar-nav">
                        <li><a class="footer-info" href="#">Copyright <?=date("Y");?> Nooreed</a></li>
                    </ul>
                </div>
                <div class="col-md-offset-1 col-md-8">
                    <ul class="nav navbar-nav">
                        <li><a class="footer-links footer-faq" href="<?php echo base_url(); ?>faq">Questions?</a></li>
                        <li><a class="footer-links footer-about" href="<?php echo base_url(); ?>about">Meet Nooreed</a></li>
                        <li><a class="footer-links footer-privacy" href="<?php echo base_url(); ?>privacy">Privacy</a></li>
                        <li><a class="footer-links footer-terms" href="<?php echo base_url(); ?>terms">The legal stuff</a></li>
                        <li><a class="footer-links footer-contact" href="<?php echo base_url(); ?>contact">Get in touch</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
</footer>
<script src="//code.jquery.com/jquery-3.2.1.min.js" type="text/javascript"></script>
<script src="dist/js/bootstrap/bootstrap.min.js" type="text/javascript"></script>
<script src="dist/js/application/video-listing.js" type="text/javascript"></script>
<script src="dist/js/application/login.js" type="text/javascript"></script>

<?php
if(!empty($alerts)){
    echo "<script src=\"dist/js/sweetalert.min.js\" type=\"text/javascript\"></script>";
    echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"dist/css/sweetalert.css\">";
    ?>
    <script>
        $(function() {
            <?php
            foreach ($alerts as $alert) {
            ?>
            swal("<?php echo $alert['title']; ?>", "<?php echo $alert['text']; ?>", "<?php echo $alert['type']; ?>")
            <?php
            echo "\r\n";
            }
            foreach ($alerts as $alert) {
                if(isset($alert['redirect'])){
                    echo "window.location.replace('{$alert['redirect']}');";
                }
            }

            ?>
        });

    </script>
    <?php
}
?>
</body>

</html>
