<?php if (!is_user_logged_in() ) { ?>
<form name="loginform" action="<?php bloginfo('url'); ?>/wp-login.php" method="post">
<table border="0" class="cTable" width="100%" cellspacing="1">
<tr>
<td width="31%"><div class="title-login">
نام کاربری :
</div>
</td>
<td width="66%">
<input type="text" name="log" size="19" class="Textbox" dir="ltr" maxLength="41" autocomplete="on"> </td>
</tr>
<tr>
<td width="31%"><div class="title-login">
کلمه عبور :
</div>
</td>
<td width="66%">
<input type="password" name="pwd" size="19" class="Textbox" dir="ltr" maxLength="20"> </td>
</tr>
<tr>
<td colspan="2" height="30">
<p style="margin-left:26px;"align="left">
<input type="hidden" name="redirect_to" value="<?php bloginfo('url'); ?>" />
<input type="hidden" name="testcookie" value="1" />
<input type="submit" class="feed-reg" value="ورود" />
</p>
</td>
</tr>
</table>
</form>
<?php } else { ?>
<?php $current_user = wp_get_current_user(); echo $current_user->user_firstname ?> عزیز خوش آمدی (<a href="<?php echo wp_logout_url(); ?>" title="Logout">خروج</a>)
<?php } ?>