×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Joseph Riviello
Added: Feb 10, 2013 4:55 PM
Views: 24
Tags: wordpress
  1. <div class="header-login">
  2.         <?php if(is_user_logged_in()): ?>
  3.         <a href="<?php echo wp_logout_url( get_permalink() ); ?>" title="Logout">Logout</a>
  4.         <?php endif; ?>
  5.         <?php if(!is_user_logged_in()): ?>
  6.         <a href="<?php echo wp_login_url(); ?>" title="Login">Login</a> | <a href="http://www.optionmillionaires.com/subscribe/">Register</a>
  7.         <?php endif; ?>