<form action="<?php echo esc_url( $current_url ); ?>" method="post" class="nd_form nd_login_form"><div class="nd_form_inner">

	<!-- Show Errors -->
	<?php
		if ( ! empty( $errors ) && $errors->get_error_code() ) {
			echo '<ul class="errors">';
			foreach ( $errors->errors as $error ) {
				echo '<li>' . esc_html( $error[0] ) . '</li>';
				break;
			}
			echo '</ul>';
		}
	?>

	<p><label for="nd_username"><?php _e('Username','Gameleon'); ?>:</label> <input type="text" class="text" name="log" id="nd_username" placeholder="<?php _e('Username', 'Gameleon'); ?>" /></p>
	<p><label for="nd_password"><?php _e('Password','Gameleon'); ?>:</label> <input type="password" class="text" name="pwd" id="nd_password" placeholder="<?php _e('Password','Gameleon'); ?>" /></p>
	<p>
		<a class="forgotten" href="#nd_lost_password_form"><?php _e('You can not login?','Gameleon'); ?></a> <input type="submit" class="button" value="<?php _e('Login &rarr;','Gameleon'); ?>" />
		<input name="nd_login" type="hidden" value="true"  />
		<input name="rememberme" type="hidden" id="rememberme" value="forever"  />
		<input name="redirect_to" type="hidden" id="redirect_to" value="<?php echo esc_url( $current_url ); ?>"  />
	</p>
</div></form>

<div class="nd_logged_in nd_online_users_off" style="display:none;">

<div class="online-users-login">

<p><?php _e('Total users online', 'Gameleon'); ?>: 
<?php $tmp = get_whos_online(); echo $tmp['total_cnt'];?>
</p>

<p><?php _e('Guests online', 'Gameleon'); ?>:
<?php $tmp = get_whos_online(); echo $tmp['guests_cnt'];?>
</p>

<p><?php _e('Registered Online', 'Gameleon'); ?>:
<?php $tmp = get_whos_online(); echo $tmp['loggedin_cnt'];?>
<?php if(get_option('tigu_whosonline_list') == 'true'): ?>
<span style="font-size:14px; font-weight:bold; color:#333">;</span><?php $tmp = get_whos_online(); echo $tmp['loggedin_list_links'];?>
<?php endif; ?>
</p>

<?php if(get_option('tigu_whosonline_avatar') == 'true'): ?>
<?php $tmp = get_whos_online(); echo $tmp['loggedin_avatars'];?>
<?php endif; ?>


</div>

</div>
