<!--header start-->
<header class="header fixed-top">

	<div class="navbar-header">
        <button type="button" class="navbar-toggle hr-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="fa fa-bars"></span>
        </button>
	
        <!--logo start-->
        <div class="brand ">
            <a href="<?php echo Uri::root() ?>" class="logo" style="color: white; font-weigh:bold">
                Newark Granite Gallery
            </a>
        </div>
        <!--logo end-->
        
        <div class="horizontal-menu navbar-collapse collapse ">
            <?php if ($this->isUserAdmin()): ?>

                <ul class="nav navbar-nav">
                    <li class="<?php if (!($this->view == "users" || $this->view == "edituser" || $this->view == "profile")) echo 'active' ?>"><a href="<?php echo HelperAdmin::getUrlView() ?>">Galleries</a></li>
                    <li class="<?php if ($this->view == "users" || $this->view == "edituser") echo 'active' ?>"><a href="<?php echo HelperAdmin::getUrlView("users") ?>">User Manager</a></li>
                </ul>
            <?php endif ?>

        </div>
        <div class="top-nav hr-top-nav">
            <ul class="nav pull-right top-menu">               
                <!-- user login dropdown start-->
                <li class="dropdown">
                    <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                        <span class="username"><?php echo $this->user["name"] ? $this->user["name"] : $this->user["username"] ?></span>
                        <b class="caret"></b>
                    </a>
                    <ul class="dropdown-menu extended logout">
                        <li><a href="<?php echo HelperAdmin::getUrlView("profile") ?>"><i class=" fa fa-suitcase"></i>Profile</a></li>
                        <?php if ($this->isUserAdmin()) { ?>
                            <li><a href="<?php echo HelperAdmin::getUrlView("users") ?>"><i class="fa fa-users"></i> Users</a></li>                        
                        <?php } ?>
                        <li><a href="<?php echo HelperAdmin::getUrlView("logout") ?>"><i class="fa fa-key"></i> Log Out</a></li>
                    </ul>
                </li>
                <!-- user login dropdown end -->
            </ul>
        </div>

    </div>

</header>
<!--header end--> 