<?php $front_required = __('front_required', true); ?>
<div class="heading"><?php __('front_label_login');?></div>
<div class="body">	
	<form action="" method="post" name="ml_login_form" class="ml-form">
		<p>
			<label class="title"><?php __('front_label_email');?></label>
			<span class="form-field"> 
				<input type="text" name="email" class="ml-text" lang="<?php echo htmlspecialchars($front_required['email']); ?>" />
			</span>
		</p>
		<p>
			<label class="title"><?php __('front_label_password');?></label>
			<span class="form-field"> 
				<input type="password" name="password" class="ml-text" lang="<?php echo htmlspecialchars($front_required['password']); ?>" />
			</span>
		</p>
		<ul class="ml-error-container ml-login-error-container" style="display: none;"></ul>
		<p class="ml-message-container ml-lobin-message-container" style="display: none;"></p>
		<p>
			<label class="title empty">&nbsp;</label>
			<input type="button" value="<?php __('front_button_login'); ?>" name="ml_login_form_login" class="ml-button" />
			<a href="javascript:void(0);" class="ml-forgot-password"><?php __('front_label_forgot_password');?></a>
		</p>
		
		<?php
		if($tpl['option_arr']['o_facebook_allow'] == 'Yes' && $tpl['option_arr']['o_google_allow'] == 'Yes') 
		{
			?>
			<p>
				<label class="title">&nbsp;</label>
				<label class="content">
					<a id="pjMlFacebookLogin" href="<?php echo $tpl['loginUrl'];?>" class="ml-forgot-password"><?php __('front_login_with_facebook');?></a>
					&nbsp;&nbsp;|&nbsp;&nbsp;
					<a id="pjMlGoogleLogin" href="<?php echo $tpl['authUrl'];?>" class="ml-forgot-password"><?php __('front_login_with_google');?></a>
				</label>
			</p>
			<?php
		}else if($tpl['option_arr']['o_facebook_allow'] == 'Yes' && $tpl['option_arr']['o_google_allow'] == 'No'){
			?>
			<p>
				<label class="title">&nbsp;</label>
				<label class="content">
					<a id="pjMlFacebookLogin" href="<?php echo $tpl['loginUrl'];?>" class="ml-forgot-password"><?php __('front_login_with_facebook');?></a>
				</label>
			</p>
			<?php
		}else if($tpl['option_arr']['o_facebook_allow'] == 'No' && $tpl['option_arr']['o_google_allow'] == 'Yes'){
			?>
			<p>
				<label class="title">&nbsp;</label>
				<label class="content">
					<a id="pjMlGoogleLogin" href="<?php echo $tpl['authUrl'];?>" class="ml-forgot-password"><?php __('front_login_with_google');?></a>
				</label>
			</p>
			<?php
		} 
		?>
				
	</form>
</div>