<?php
/**
 * @package 	JF Login Pro
 * @author		JoomForest.com
 * @email		support@joomforest.com
 * @website		http://www.joomforest.com
 * @copyright	Copyright (C) 2011-2016 JoomForest.com, All rights reserved.
 * @license		http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
**/
// no direct access
defined('_JEXEC') or die('Restricted access');
require_once JPATH_SITE . '/components/com_users/helpers/route.php';
JHtml::_('behavior.keepalive');
?> 
<div id="<?php echo $jf_l_pro_ID; ?>" class="jf_l_pro jf_l_pro_guest <?php echo $moduleclass_sfx; ?>">
	<a id="<?php echo $jf_l_pro_ID; ?>_btn" class="myjf_l_pro_open_btn" title="<?php echo JText::_('MOD_JF_LOGIN_PRO_CLICK_TO_LOGIN'); ?>"><svg style="color:green;width:25px;" aria-hidden="true" focusable="false" data-prefix="fal" data-icon="user-plus" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512" class="svg-inline--fa fa-user-plus fa-w-20"><path fill="currentColor" d="M632 224h-88v-88c0-4.4-3.6-8-8-8h-16c-4.4 0-8 3.6-8 8v88h-88c-4.4 0-8 3.6-8 8v16c0 4.4 3.6 8 8 8h88v88c0 4.4 3.6 8 8 8h16c4.4 0 8-3.6 8-8v-88h88c4.4 0 8-3.6 8-8v-16c0-4.4-3.6-8-8-8zm-318.4 64c-28.7 0-42.5 16-89.6 16-47.1 0-60.8-16-89.6-16C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4zM416 464c0 8.8-7.2 16-16 16H48c-8.8 0-16-7.2-16-16v-41.6C32 365.9 77.9 320 134.4 320c19.6 0 39.1 16 89.6 16 50.4 0 70-16 89.6-16 56.5 0 102.4 45.9 102.4 102.4V464zM224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm0-224c52.9 0 96 43.1 96 96s-43.1 96-96 96-96-43.1-96-96 43.1-96 96-96z" class=""></path></svg><span style="padding-right: 6px;color: green;font-size: 12px;">ثبت نام / ورود</span></a>
	<div id="<?php echo $jf_l_pro_ID; ?>_backout" class="jf_l_pro_backout"></div>
	<div id="<?php echo $jf_l_pro_ID; ?>_popup" class="jf_l_pro_popup">
		<form  action="<?php echo JRoute::_(htmlspecialchars(JUri::getInstance()->toString()), true, $params->get('usesecure')); ?>" method="post" id="jf_l_pro_login_form">
			<div  class="jf_l_pro_title"><?php echo JText::_('MOD_JF_LOGIN_PRO_AUTHORIZATION') ?></div>
			<div class="jf_l_pro_inputwrapper">
				<!--<label class="jf_l_pro_icon mdl-textfield__label" for="jf_l_pro_input_username"><span class="jf_user"></span></label>-->
				
				<input id="jf_l_pro_input_username" type="text" name="username" class="jf_l_pro_input mdl-textfield__input" tabindex="0" size="18" placeholder="<?php echo JText::_('MOD_JF_LOGIN_PRO_VALUE_USERNAME') ?>" />
				<svg style="width:30px;color:green;" aria-hidden="true" focusable="false" data-prefix="fal" data-icon="user" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" class="svg-inline--fa fa-user fa-w-14"><path fill="currentColor" d="M313.6 288c-28.7 0-42.5 16-89.6 16-47.1 0-60.8-16-89.6-16C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4zM416 464c0 8.8-7.2 16-16 16H48c-8.8 0-16-7.2-16-16v-41.6C32 365.9 77.9 320 134.4 320c19.6 0 39.1 16 89.6 16 50.4 0 70-16 89.6-16 56.5 0 102.4 45.9 102.4 102.4V464zM224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm0-224c52.9 0 96 43.1 96 96s-43.1 96-96 96-96-43.1-96-96 43.1-96 96-96z" class=""></path></svg>
			</div>
			<div class="jf_l_pro_inputwrapper">
				<!--<label class="jf_l_pro_icon" for="jf_l_pro_input_passwd"><span class="jf_pass"></span></label>-->
				<input id="jf_l_pro_input_passwd" type="password" name="password" class="jf_l_pro_input" tabindex="0" size="18" placeholder="<?php echo JText::_('JGLOBAL_PASSWORD') ?>" />
				<svg style="width:30px;color:green;" aria-hidden="true" focusable="false" data-prefix="fal" data-icon="lock" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" class="svg-inline--fa fa-lock fa-w-14"><path fill="currentColor" d="M400 224h-16v-62.5C384 73.1 312.9.3 224.5 0 136-.3 64 71.6 64 160v64H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zM96 160c0-70.6 57.4-128 128-128s128 57.4 128 128v64H96v-64zm304 320H48c-8.8 0-16-7.2-16-16V272c0-8.8 7.2-16 16-16h352c8.8 0 16 7.2 16 16v192c0 8.8-7.2 16-16 16z" class=""></path></svg>
			</div>
			<?php if (count($twofactormethods) > 1): ?> 
			<div class="jf_l_pro_inputwrapper">
				<label class="jf_l_pro_icon" for="jf_l_pro_secretkey"><span class="jf_secret"></span></label>
				<input id="jf_l_pro_secretkey" autocomplete="off" type="text" name="secretkey" class="jf_l_pro_input" tabindex="0" size="18" placeholder="<?php echo JText::_('JGLOBAL_SECRETKEY') ?>" />
			</div>
			<?php endif; ?>
			
			<div style="clear:both;height:10px"></div>
			
			
		
			<div><button  type="submit" tabindex="0" name="Submit" class="jf_l_pro_authoriz_btn"><?php echo JText::_('JLOGIN') ?></button></div>
			<?php if (JPluginHelper::isEnabled('system', 'remember')) : ?>
			<div class="jf_l_pro_rememberwrap">
				<label for="jf_l_pro_remember"><?php echo JText::_('MOD_JF_LOGIN_PRO_VALUE_REMEMBER_ME') ?></label>
				<label class="jf_l_pro_checkbox"><input id="jf_l_pro_remember" type="checkbox" name="remember" class="jf_l_pro_checkbox_input" value="yes"/><i></i></label>
			</div>
			<?php endif; ?>
			
			<input type="hidden" name="option" value="com_users" />
			<input type="hidden" name="task" value="user.login" />
			<input type="hidden" name="return" value="<?php echo $return; ?>" />
			<?php echo JHtml::_('form.token'); ?>
			<div style="clear:both"></div>
			
			<div class="jf_l_pro_pos_wrapper"></div>
			<div style="clear:both"></div>
			
			<ul class="jf_l_pro_forgot">
				<li class="first">
					<a href="<?php echo JRoute::_('index.php?option=com_users&view=reset&Itemid=' . UsersHelperRoute::getResetRoute()); ?>">
						<?php echo JText::_('MOD_JF_LOGIN_PRO_VALUE_FORGOT_YOUR_PASSWORD'); ?>
					</a>
				</li>
				<li class="last">
					<a href="<?php echo JRoute::_('index.php?option=com_users&view=remind&Itemid=' . UsersHelperRoute::getRemindRoute()); ?>">
						<?php echo JText::_('MOD_JF_LOGIN_PRO_VALUE_FORGOT_YOUR_USERNAME'); ?>
					</a>
				</li>
				<div style="clear:both"></div>
			</ul>
			
			<?php $usersConfig = JComponentHelper::getParams('com_users'); ?>
			<?php if ($usersConfig->get('allowUserRegistration')) : ?>
				<div class="jf_l_pro_register">
					<a href="<?php echo JRoute::_('index.php?option=com_users&view=registration&Itemid=' . UsersHelperRoute::getRegistrationRoute()); ?>">
						<?php echo JText::_('MOD_JF_LOGIN_PRO_VALUE_REGISTER'); ?>
					</a>
				</div>
			<?php endif; ?>
		</form>
		<?php if($jf_l_pro_preloader) { ?><div class="jf_l_pro_loader"><div class="blue"></div><div class="red"></div><div class="yellow"></div><div class="green"></div></div><?php } ?>
		<div class="jf_close"></div>
	</div>
</div>