<?php
//Which page is this footer being loaded on?
$page = !empty($page)? $page: "home"; 

#Show the other links as active if on that page
$termsLink = $page != "terms"? "<a href=\"".base_url()."/Page/terms_of_use\">Terms</a>": "<span class='label'>Terms</span>";
$privacyLink = " ".($page != "privacy"? "<a href=\"".base_url()."/Page/privacy_policy\">Privacy</a>": "<span class='label'>Privacy</span>");
$contactLink = " ".($page != "contact_us"? "<a href=\"".base_url()."/Page/contact_us\">Contact Us</a>": "<span class='label'>Contact Us</span>");
#$applyLink = " &nbsp;&nbsp;|&nbsp;&nbsp; ".($page != "new_account"? "<a href=\"".base_url()."register/step_one\">New Account</a>": "<span class='label'>New Account</span>");
?>

<footer class="px-3 py-3 bg-white border-top footer-pub">
    <div class="d-md-flex justify-content-between">
        <ul class="d-flex mb-2 mb-md-0">
            <li class="nav-item">
                <?php echo $termsLink; ?>
            </li>
            <li class="nav-item ms-3">
                <?php echo $privacyLink; ?>
            </li>
            <li class="nav-item ms-3">
                <?php echo $contactLink; ?>
            </li>
        </ul>
        &copy;<?php echo date("Y");?> MoES with support from UNESCO.
        <input type="hidden" id="layerid" name="layerid" value="" />
    </div>
</footer>