function p2_user_identity() { echo p2_get_user_identity(); }
<h3> <?php _e('Reply', 'p2'); ?> <small id="cancel-comment-reply"> <?php echo cancel_comment_reply_link(); ?> <?php if (is_user_logged_in()) { ?> (<?php printf(__('Logged in as <a href="%1$s">%2$s</a>.', 'p2'), site_url('/wp-admin/profile.php'), p2_get_user_identity()); ?> <a href="<?php echo wp_logout_url(get_permalink()); ?> " title="<?php echo attribute_escape(__('Log out of this account', 'p2')); ?> "> <?php _e('Log out →', 'p2'); ?> </a>) <?php