Advertisement
Guest User

Untitled

a guest
Jun 29th, 2017
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.93 KB | None | 0 0
  1. <div id="slide-panel"><!--SLIDE PANEL STARTS-->
  2.     <?php if ( ! is_user_logged_in() ){ ?>
  3.    
  4.     <div class="loginform">
  5.     <h2><?php echo get_option('wp_logintext')  ?></h2>
  6.     <div class="formdetails">
  7.     <form action="<?php echo get_option('home'); ?>/wp-login.php" method="post">
  8.     <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;
  9.     <label for="pwd">Password : </label><input type="password" name="pwd" id="pwd" size="20" />
  10.     <input type="submit" name="submit" value="Login" class="button" />
  11.     <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']; ?>" />
  12.     </form>
  13.     </div>
  14.     <div class="loginregister">
  15.     <a href="<?php echo get_option('home'); ?>/wp-register.php">Register</a> |
  16.     <a href="<?php echo get_option('home'); ?>/wp-login.php?action=lostpassword">Recover password</a>
  17.     </div>
  18.     </div><!--loginform ends-->
  19.    
  20.     <?php } else { ?>
  21.    
  22.     <div class="loginform logout">
  23.     <h2><?php echo get_option('wp_controlpaneltext')  ?></h2>
  24.     <ul>
  25.     <?php if (get_option('wp_logindashboard') == "show") { ?>
  26.         <li><a href="<?php bloginfo('url'); ?>/wp-admin/"><?php echo get_option('wp_logindashboardtext') ?></a></li> |
  27.     <?php } ?>
  28.    
  29.     <?php if (get_option('wp_loginlisting') == "show") { ?>
  30.         <li><a href="<?php bloginfo('url'); ?>/wp-admin/post-new.php?post_type=listing"><?php echo get_option('wp_loginlistingtext') ?></a></li> |
  31.     <?php } ?>
  32.    
  33.     <?php if (get_option('wp_loginpost') == "show") { ?>
  34.         <li><a href="<?php bloginfo('url'); ?>/wp-admin/post-new.php"><?php echo get_option('wp_loginposttext') ?></a></li> |
  35.     <?php } ?>
  36.    
  37.     <li><a href="<?php echo wp_logout_url( get_bloginfo('url') ); ?>" title="Logout">Logout</a></li></ul>
  38.     </div><!--loginform ends-->
  39.     <?php }?>
  40.     </div><!--SLIDE PANEL ENDS-->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement