<div id="footer">
    <div class="container">
        <div class="row">
            <div class="col-sm-12 text-center">
                <?php echo $settings['footer_ad']; ?>
                <p>
                    All rights reserved © <a href="/"><?php echo $settings['site_name']; ?></a> 2015<br>
                </p>
            </div>
        </div>
    </div>
</div>

<?php

if($settings['registration'] == 1){
    include( 'register-modal.php' );
}
// Modals
include( 'login-modal.php' );
include( 'profile-card-modal.php' );

if($settings['file_uploads'] == 1 || $user['mem_level'] == 2 || $user['mem_level'] == 3){
    include( 'files-modal.php' );
}
if($settings['create_polls'] == 1 || $user['mem_level'] == 2 || $user['mem_level'] == 3){
    include( 'polls-center-modal.php' );
    include( 'poll-modal.php' );
}

include( 'friends-modal.php' );

?>

<!-- Libraries -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="assets/bs/js/bootstrap.min.js"></script>
<script src="assets/bs/js/extended.min.js"></script>
<script src="assets/spectrum/spectrum.js"></script>
<script src="assets/toastr/toastr.min.js"></script>
<script src="assets/howler/howler.min.js"></script>
<script src="assets/lightbox/js/lightbox.min.js"></script>

<script>
    // initialize Kanda extended script
    extended = new Extended();
    var alertSound      =   new Howl({
        urls: ['assets/main/beep.mp3']
    });
</script>

<!-- Angular -->
<script src="assets/angular/angular.min.js"></script>
<script src="assets/angular/angular-sanitize.min.js"></script>
<script src="assets/angular/angular-ui-router.min.js"></script>
<script src="assets/angular/scrollglue.js"></script>
<script src="assets/loading-bar/loading-bar.min.js"></script>
<script src="assets/ui-bootstrap/ui-bootstrap.min.js"></script>
<script src="assets/file-upload/ng-file-upload-shim.min.js"></script> <!-- for no html5 browsers support -->
<script src="assets/file-upload/ng-file-upload.min.js"></script>
<script src="assets/angular/angular-cookies.min.js"></script>

<!-- App -->
<script src="app/app.js"></script>
<script src="app/routes.js"></script>
<script src="app/directives/file-model.js"></script>
<script src="app/controllers/register.js"></script>
<script src="app/controllers/login.js"></script>
<script src="app/controllers/search.js"></script>
<script src="app/controllers/chat.js"></script>
<script src="app/controllers/pm.js"></script>
<script src="app/controllers/edit-profile.js"></script>
<script src="app/controllers/profile.js"></script>
<script src="app/controllers/create-chat.js"></script>
<script src="app/controllers/forgot.js"></script>
<script src="app/controllers/header.js"></script>
<script src="app/controllers/files.js"></script>
<script src="app/controllers/poll-center.js"></script>
<script src="app/controllers/poll.js"></script>
<script src="app/controllers/friends.js"></script>

</body>
</html>