*
* @param mixed $args Arguments
* @param array $instance Instance
* @uses apply_filters() Calls 'bbp_login_widget_title' with the title
* @uses get_template_part() To get the login/logged in form
*/
function widget( $args, $instance ) {
extract( $args );
$title = apply_filters( 'bbp_login_widget_title', $instance['title'] );
$register = apply_filters( 'bbp_login_widget_register', $instance['register'] );
$lostpass = apply_filters( 'bbp_login_widget_lostpass', $instance['lostpass'] );
echo $before_widget;
if ( !empty( $title ) )
echo $before_title . $title . $after_title;
if ( !is_user_logged_in() ) : ?>