Code: Select all
<div= style="float:right;">
<?php if (is_user_logged_in()) { ?>
Welcome <strong><?php echo $user_identity ?></strong>.
<?php ?>
<form name="loginform" id="loginform" action="<?php echo wp_logout_url(); ?>" method="post">
<input type="submit" name="wp-submit" id="wp-submit" value="LOG OUT" />
<a href="http://www.mymontage.net/wp-admin/">EDIT YOUR PROFILE</a>
<input type="hidden" name="redirect_to" value="<?php bloginfo('url'); ?>" />
</form>
<!-- If User Is NOT Logged In Display This -->
<? } else { ?>
<form name="loginform" id="loginform" action="<?php bloginfo('url'); ?>/wp-login.php" method="post">
<label for="log">Username</label> <input type="text" name="log" id="user_login" class="input" value="" size="20" tabindex="10" /></p>
<label for="pwd">Password</label> <input type="password" name="pwd" id="user_pass" class="input" value="" size="20" tabindex="20" /></p>
<input type="submit" name="wp-submit" id="wp-submit" value="LOG IN" /> <input type="button" value="SIGNUP" onClick="parent.location='<?php bloginfo('url'); ?>/wp-login.php?action=register'" />
<a href="<?php bloginfo('url'); ?>/wp-login.php?action=lostpassword">Lost your password?</a>
<input type="hidden" name="redirect_to" value="<?php bloginfo('url'); ?>/members" />
<input type="hidden" name="testcookie" value="1" />
</form>
<? } ?>