daily pastebin goal
62%
SHARE
TWEET

HTML for Login Panel

tzvij Nov 6th, 2013 2,197 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <div id="slide-panel"><!--SLIDE PANEL STARTS-->
  2. <?php if ( ! is_user_logged_in() ){ ?>
  3. <h2>Login</h2>
  4. <div class="loginform">
  5. <div class="formdetails">
  6. <form action="<?php echo get_option('home'); ?>/wp-login.php" method="post">
  7. <label for="log">Username : </label><input type="text" name="log" id="log" value="<?php echo wp_specialchars(stripslashes($user_login), 1) ?>" size="20" />&nbsp;&nbsp;&nbsp;&nbsp;
  8. <label for="pwd">Password : </label><input type="password" name="pwd" id="pwd" size="20" />
  9. <input type="submit" name="submit" value="Login" class="button" />
  10. <label for="rememberme"><input name="rememberme" id="rememberme" type="checkbox" checked="checked" value="forever" /> Remember me</label><input type="hidden" name="redirect_to" value="<?php echo $_SERVER['REQUEST_URI']; ?>" />
  11. </form>
  12. </div>
  13. <div class="loginregister">
  14. <a href="<?php echo get_option('home'); ?>/wp-register.php">Register</a> |
  15. <a href="<?php echo get_option('home'); ?>/wp-login.php?action=lostpassword">Recover password</a>
  16. </div>
  17. </div><!--loginform ends-->
  18. <?php } else { ?>
  19. <div class="loginform">
  20. <h2>Control Panel</h2><ul>
  21. <li><a href="<?php echo get_option('home'); ?>/wp-admin/">Dashboard</a></li> |
  22. <li><a href="<?php echo get_option('home'); ?>/wp-admin/post-new.php">Write new Post</a></li> |
  23. <li><a href="<?php echo get_option('home'); ?>/wp-admin/page-new.php">Write new Page</a></li> |
  24. <li><a href="<?php echo wp_logout_url( get_bloginfo('url') ); ?>" title="Logout">Logout</a></li></ul>
  25. </div><!--loginform ends-->
  26. <?php }?>
  27. </div><!--SLIDE PANEL ENDS-->
  28. <div class="slide"><a href="#" class="btn-slide"><?php if ( ! is_user_logged_in() ){ ?>Login<?php } else { ?>Logout<?php }?></a></div><!--LOGIN BUTTON TEXT-->
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top