<?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 = " &nbsp;&nbsp;|&nbsp;&nbsp; ".($page != "privacy"? "<a href=\"".base_url()."/Page/privacy_policy\">Privacy</a>": "<span class='label'>Privacy</span>");
$contactLink = " &nbsp;&nbsp;|&nbsp;&nbsp; ".($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>");
?>
<tr>
    <td colspan="2" class="whitebg footer">
<?php echo $termsLink.$privacyLink.$contactLink;?><br><br><input type="hidden" id="layerid" name="layerid" value="" />&copy;<?php echo date("Y");?> MoES with support from UNESCO.</td>
  </tr>
