>

{
//Get args and output the title
extract( $args );
echo $before_widget;
$title = apply_filters(‘widget_title’, $instance[‘title’]);
if( $title ) echo $before_title . $title . $after_title;

//If logged in, show “Welcome, User!”
if( is_user_logged_in() ):
?>

< ?php $userdata = wp_get_current_user(); echo __('Welcome') . ', ' . $userdata->display_name;
?>!

|

< ?php //Otherwise, show the login form (with Facebook Connect button) else: ?>

/wp-login.php’ method=’post’>




“;?>
< ?php echo wp_register('',''); ?>
‘ />