Login header code

WordPress Plugins and good code samples

April 2007

<div id=”login” >
<p>
<?php
echo(‘Welcome to ‘);
global  $user_identity;
if ( $user_identity != ”) {
echo( bloginfo(‘name’).’,   ‘. $user_identity. ‘ | ‘ );
}
else { echo( bloginfo(‘name’).’, Guest  | ‘  );}?>
<?php wp_loginout(); ?>
|
<?php wp_register(); ?>
</div>