{%header_content_searcharea%}
{%main_navigation%}

<?php if( $this->user->is_logged ) { ?>
	<div id="user-navigation">	
		
		<div class="user-notifications">
			<div class="dropdown">
				<a class="notifications-counter menu-btn {%header_notification_counter_full%}" id="ctl00_uxHeader_hlNotifications"><span class="bkg" id="ctl00_uxHeader_lblTotalCount">{%header_notification_counter%}</span></a>
				<ul class="menu-options">
					<li class="title"><?= $this->page->lang('global_header_notifs_name') ?></li>
                   	<li><a href="<?= $C->SITE_URL ?>privatemessages"><?= $this->page->lang('global_header_pm_name') ?><span class="items-count" id="ctl00_uxHeader_lblPrivateCount" {%header_notification_privmsg_visibility%}>{%header_notification_privmsg_cnt%}</span></a></li>            
					<li><a href="<?= $C->SITE_URL ?>notifications"><?= $this->page->lang('global_header_notifs_name') ?><span class="items-count" id="ctl00_uxHeader_lblNotifCount" {%header_notification_notifs_visibility%}>{%header_notification_notifs_cnt%}</span></a></li>
				</ul>
			</div>
        </div>
		
		<div class="user-options dropdown">
			<a href="<?= $C->SITE_URL ?><?= $this->user->info->username ?>" class="arrow menu-btn"><span class="plain-avatar"><img src="<?= $C->STORAGE_URL ?>avatars/thumbs3/<?= $this->user->info->avatar ?>" alt="" /></span></a>
		
			<ul class="menu-options">
				<li><a href="<?= $C->SITE_URL ?>settings"><span><?= $this->page->lang('hdr_nav_settings') ?></span></a></li>
				<?php if( $this->user->is_logged && $this->user->info->is_network_admin == 1 ) { ?>
					<li><a href="<?= $C->SITE_URL ?>admin" class="item-btn <?= $this->page->request[0]=='admin'?'active':'' ?>"><span><?= $this->page->lang('hdr_nav_admin') ?></span></a></li>
				<?php } ?>	
				<li><a href="<?= $C->SITE_URL ?>signout"><span><?= $this->page->lang('hdr_nav_signout') ?></span></a></li>
			</ul>
		</div>
		<a href="<?= $C->SITE_URL ?><?= $this->user->info->username ?>" class="username"><?= $this->user->getCommunityName() ?></a>
		
        
        <div class="clear"></div>
		
	</div>		
<?php } else { ?>
	<ul class="signup-navigation">
		<li><a href="<?= $C->SITE_URL ?>signin"><?= $this->page->lang('hdr_nav_signin') ?></a></li>
		<li><a href="<?= $C->SITE_URL ?>signup"><?= $this->page->lang('hdr_nav_signup') ?></a></li>
	</ul>
<?php } ?>