<?php if (!defined('BASEPATH')) exit('No direct script access allowed');?>
<div id="userMenu">
	<div style="padding:15px 0px;">
		<div class="usernick">
			<?= $this->aSystemVar['current_user']['Name'] ?>
		</div>
		<div style="position:absolute;top:0px;right:10px;">
			<?
				if ( !empty($this->aSystemVar['current_user']['iconUrl']) )
					echo '<img src="' . @$this->aSystemVar['current_user']['iconUrl'] . '" alt="' . @$this->aSystemVar['current_user']['Name'] . '" title="' . @$this->aSystemVar['current_user']['Name'] . '" class="icon" />';
			?>
		</div>
	</div>
	<div id="memberMenu">
		<div class="capt"></div>
		<div class="mItem"><?= anchor('', $this->lang->line('home')); ?></div>
		<? if( $this->bAdmin): ?>
			<div class="mItem"><?= anchor('admin',$this->lang->line('adm_panel')); ?></div>
		<? endif; ?>
		<div class="capt"><?=$this->lang->line('profile')?></div>
		<div class="mItem"><?= anchor('user/profile_edit/' . $this->aSystemVar['current_user']['Name'], $this->lang->line('edit_profile')); ?></div>
		<div class="mItem"><?= anchor('user/profile/' . $this->aSystemVar['current_user']['Name'], $this->lang->line('view_profile')); ?></div>

		<div class="mItem"><?= anchor('user/logout/', $this->lang->line('logout')); ?></div>
	</div>
</div>
