Turn off navbar if user not signed in
Posted: 2017-08-03 16:47
I want to turn off the navbar if the user is not signed in. What is the best way to do this?
A place where AppGini users can exchange ideas and help each other.
https://forums.appgini.com:443/phpbb/
https://forums.appgini.com:443/phpbb/viewtopic.php?f=8&t=2491
Code: Select all
<?php
$mi = getMemberInfo();
if(!$mi['username'] || $mi['username'] == 'guest'){ ?>
<style>
.navbar-fixed-top {
min-height: 0px;
display: none;
}
</style>
<?php } ?>