Skip to content
Commits on Source (2)
......@@ -5,6 +5,11 @@ require_once($_SERVER["DOCUMENT_ROOT"]."/include/donate.php");
/* Menus */
function draw_menus( $nobanner, $alternate_lang, $imgSrc, $b_show_donate )
{
global $sponsor;
if (function_exists('geoip_db_avail') && (geoip_db_avail(GEOIP_COUNTRY_EDITION) &&
geoip_country_code_by_name($_SERVER['REMOTE_ADDR']) == 'SG' )) {
$b_show_donate = false;
}
?>
<nav id="nav" class="navbar navbar-default navbar-fixed-top">
<div class="container">
......@@ -99,6 +104,13 @@ function draw_menus( $nobanner, $alternate_lang, $imgSrc, $b_show_donate )
</li>
</ul>
<?php } ?>
<?php if (isset($sponsor) && !$b_show_donate) { ?>
<div class="navbar-header pull-right">
<div id="sponsor">
<?php echo $sponsor ?>
</div>
</div>
<?php } ?>
</div>
</div>
</nav>
......