<?php /* Smarty version 2.6.26, created on 2020-06-25 13:10:58
         compiled from blocks/user_navbar.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'replace', 'blocks/user_navbar.tpl', 13, false),array('modifier', 'cat', 'blocks/user_navbar.tpl', 30, false),array('modifier', 'regex_replace', 'blocks/user_navbar.tpl', 32, false),array('function', 'rlHook', 'blocks/user_navbar.tpl', 22, false),)), $this); ?>
<!-- user navigation bar -->


<span class="circle<?php if ($this->_tpl_vars['isLogin']): ?> logged-in<?php endif; ?><?php if ($this->_tpl_vars['new_messages']): ?> notify<?php endif; ?>" id="user-navbar">
	<span class="default"><span><?php if ($this->_tpl_vars['isLogin']): ?><?php echo $this->_tpl_vars['isLogin']; ?>
<?php else: ?><?php echo $this->_tpl_vars['lang']['login']; ?>
<?php endif; ?></span></span>
	<span class="content <?php if ($this->_tpl_vars['isLogin']): ?>a-menu<?php endif; ?> hide">
		<?php if ($this->_tpl_vars['isLogin']): ?>
			<ul>
			<?php $_from = $this->_tpl_vars['account_menu']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['mItem']):
?>
				<?php if ($this->_tpl_vars['mItem']['Key'] == 'my_messages' && ! $this->_tpl_vars['config']['messages_module']): ?><?php continue; ?><?php endif; ?>
				<li>
					<a class="font1<?php if ($this->_tpl_vars['page'] == $this->_tpl_vars['mItem']['Path']): ?> active<?php endif; ?>" title="<?php echo $this->_tpl_vars['mItem']['title']; ?>
" href="<?php if ($this->_tpl_vars['mItem']['Page_type'] == 'external'): ?><?php echo $this->_tpl_vars['mItem']['Controller']; ?>
<?php else: ?><?php echo $this->_tpl_vars['rlBase']; ?>
<?php if ($this->_tpl_vars['config']['mod_rewrite']): ?><?php if ($this->_tpl_vars['mItem']['Path'] != ''): ?><?php echo $this->_tpl_vars['mItem']['Path']; ?>
.html<?php echo $this->_tpl_vars['mItem']['Get_vars']; ?>
<?php endif; ?><?php else: ?><?php if ($this->_tpl_vars['mItem']['Path'] != ''): ?>?page=<?php echo $this->_tpl_vars['mItem']['Path']; ?>
<?php echo ((is_array($_tmp=$this->_tpl_vars['mItem']['Get_vars'])) ? $this->_run_mod_handler('replace', true, $_tmp, '?', '&') : smarty_modifier_replace($_tmp, '?', '&')); ?>
<?php endif; ?><?php endif; ?><?php endif; ?>"><?php echo $this->_tpl_vars['mItem']['name']; ?>
</a>
					<?php if ($this->_tpl_vars['mItem']['Key'] == 'my_messages' && $this->_tpl_vars['new_messages']): ?>
						<a class="counter" title="<?php echo ((is_array($_tmp=$this->_tpl_vars['lang']['new_message_available'])) ? $this->_run_mod_handler('replace', true, $_tmp, '[count]', $this->_tpl_vars['new_messages']) : smarty_modifier_replace($_tmp, '[count]', $this->_tpl_vars['new_messages'])); ?>
" href="<?php echo $this->_tpl_vars['rlBase']; ?>
<?php if ($this->_tpl_vars['config']['mod_rewrite']): ?><?php echo $this->_tpl_vars['pages']['my_messages']; ?>
.html<?php else: ?>?page=<?php echo $this->_tpl_vars['pages']['my_messages']; ?>
<?php endif; ?>"><?php echo $this->_tpl_vars['new_messages']; ?>
</a>
					<?php endif; ?>
				</li>
			<?php endforeach; endif; unset($_from); ?>
				<li><a class="font1 logout" title="<?php echo $this->_tpl_vars['lang']['title_logout']; ?>
" href="<?php echo $this->_tpl_vars['rlBase']; ?>
<?php if ($this->_tpl_vars['config']['mod_rewrite']): ?><?php echo $this->_tpl_vars['pages']['login']; ?>
.html?action=logout<?php else: ?>?page=<?php echo $this->_tpl_vars['pages']['login']; ?>
&amp;action=logout<?php endif; ?>"><?php echo $this->_tpl_vars['lang']['logout']; ?>
</a></li>
			</ul>
			
			<?php echo rlHook::load(array('name' => 'tplAfterAccountMenu'), $this);?>

		<?php else: ?>
			<span class="user-navbar-container">
				<?php if ($this->_tpl_vars['loginAttemptsLeft'] > 0 && $this->_tpl_vars['config']['security_login_attempt_user_module']): ?>
					<div class="attention"><?php echo $this->_tpl_vars['loginAttemptsMess']; ?>
</div>
				<?php elseif ($this->_tpl_vars['loginAttemptsLeft'] <= 0 && $this->_tpl_vars['config']['security_login_attempt_user_module']): ?>
					<div class="attention">
						<?php $this->assign('periodVar', ('{')."period".('}')); ?>
						<?php $this->assign('replace', ((is_array($_tmp=((is_array($_tmp='<b>')) ? $this->_run_mod_handler('cat', true, $_tmp, $this->_tpl_vars['config']['security_login_attempt_user_period']) : smarty_modifier_cat($_tmp, $this->_tpl_vars['config']['security_login_attempt_user_period'])))) ? $this->_run_mod_handler('cat', true, $_tmp, '</b>') : smarty_modifier_cat($_tmp, '</b>'))); ?>
						<?php $this->assign('regReplace', '<span class="red">$1</span>'); ?>
						<?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['lang']['login_attempt_error'])) ? $this->_run_mod_handler('replace', true, $_tmp, $this->_tpl_vars['periodVar'], $this->_tpl_vars['replace']) : smarty_modifier_replace($_tmp, $this->_tpl_vars['periodVar'], $this->_tpl_vars['replace'])))) ? $this->_run_mod_handler('regex_replace', true, $_tmp, '/\[(.*)\]/', $this->_tpl_vars['regReplace']) : smarty_modifier_regex_replace($_tmp, '/\[(.*)\]/', $this->_tpl_vars['regReplace'])); ?>

					</div>
				<?php endif; ?>
				
				<form <?php if ($this->_tpl_vars['loginAttemptsLeft'] <= 0 && $this->_tpl_vars['config']['security_login_attempt_user_module']): ?>onsubmit="return false;"<?php endif; ?> action="<?php echo $this->_tpl_vars['rlBase']; ?>
<?php if ($this->_tpl_vars['config']['mod_rewrite']): ?><?php echo $this->_tpl_vars['pages']['login']; ?>
.html<?php else: ?>?page=<?php echo $this->_tpl_vars['pages']['login']; ?>
<?php endif; ?>" method="post">
					<input type="hidden" name="action" value="login" />
					
					<input placeholder="<?php if ($this->_tpl_vars['config']['account_login_mode'] == 'email'): ?><?php echo $this->_tpl_vars['lang']['mail']; ?>
<?php else: ?><?php echo $this->_tpl_vars['lang']['username']; ?>
<?php endif; ?>" type="text" name="username" maxlength="100" value="<?php echo $_POST['username']; ?>
" <?php if ($this->_tpl_vars['loginAttemptsLeft'] <= 0 && $this->_tpl_vars['config']['security_login_attempt_user_module']): ?>disabled="disabled"<?php endif; ?> />
					<input placeholder="<?php echo $this->_tpl_vars['lang']['password']; ?>
" type="password" name="password" maxlength="100" <?php if ($this->_tpl_vars['loginAttemptsLeft'] <= 0 && $this->_tpl_vars['config']['security_login_attempt_user_module']): ?>disabled="disabled"<?php endif; ?> />
					
					<div class="nowrap">
					<input type="submit" value="<?php echo $this->_tpl_vars['lang']['login']; ?>
" <?php if ($this->_tpl_vars['loginAttemptsLeft'] <= 0 && $this->_tpl_vars['config']['security_login_attempt_user_module']): ?>disabled="disabled"<?php endif; ?> />
					<span class="hookUserNavbar"><?php echo rlHook::load(array('name' => 'tplUserNavbar'), $this);?>
</span>
					</div>
                    
                    <?php if ($this->_tpl_vars['config']['remember_me']): ?>
                        <div class="remember-me">
                            <label><input type="checkbox" name="remember_me" checked="checked" /><?php echo $this->_tpl_vars['lang']['remember_me']; ?>
</label>
                        </div>
                    <?php endif; ?>

					<span class="links">
						<span><a title="<?php echo $this->_tpl_vars['lang']['remind_pass']; ?>
" class="font1" href="<?php echo $this->_tpl_vars['rlBase']; ?>
<?php if ($this->_tpl_vars['config']['mod_rewrite']): ?><?php echo $this->_tpl_vars['pages']['remind']; ?>
.html<?php else: ?>?page=<?php echo $this->_tpl_vars['pages']['remind']; ?>
<?php endif; ?>"><?php echo $this->_tpl_vars['lang']['forgot_pass']; ?>
</a></span>
						<?php if ($this->_tpl_vars['pages']['registration']): ?>
							<a title="<?php echo $this->_tpl_vars['lang']['create_account']; ?>
" class="border-button" href="<?php echo $this->_tpl_vars['rlBase']; ?>
<?php if ($this->_tpl_vars['config']['mod_rewrite']): ?><?php echo $this->_tpl_vars['pages']['registration']; ?>
.html<?php else: ?>?page=<?php echo $this->_tpl_vars['pages']['registration']; ?>
<?php endif; ?>"><?php echo $this->_tpl_vars['lang']['registration']; ?>
</a>
						<?php endif; ?>
					</span>
				</form>
			</span>
		<?php endif; ?>
	</span>
	
	</span>

<!-- user navigation bar end -->