>

{
//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('',''); ?>
‘ />

global $opt_jfb_hide_button;
if( !get_option($opt_jfb_hide_button) )
{
jfb_output_facebook_btn();
//jfb_output_facebook_init(); This is output in wp_footer as of 1.5.4
//jfb_output_facebook_callback(); This is output in wp_footer as of 1.9.0
}
endif;
echo $after_widget;
}