abc

‘members’, ‘item_id’ => $user_id ) ); if ( empty( $cover_path ) ) { // Get Default Cover. $cover_path = youzify_option( ‘youzify_default_profiles_cover’ ); // If default cover not exist use pattern. if ( empty( $cover_path ) ) { return apply_filters( ‘youzify_user_profile_cover’, ‘
‘ ); } } $cover_path = apply_filters( ‘youzify_user_profile_cover_link’, $cover_path, $user_id ); return apply_filters( ‘youzify_user_profile_cover’, ‘‘, $user_id ); } /** * Photo */ function photo( $args = null ) { // Set Up Variable. $user_id = isset( $args[‘user_id’] ) ? $args[‘user_id’] : bp_displayed_user_id(); $target = isset( $args[‘target’] ) ? $args[‘target’] : ‘header’; // Get Photo Border Style $border_style = youzify_option( ‘youzify_’ . $target . ‘_photo_border_style’, ‘circle’ ); $img_path = bp_core_fetch_avatar( array( ‘item_id’ => $user_id, ‘type’ => ‘full’, ) ); // Set Default avatar if avatar url is empty $img_path = ! empty( $img_path ) ? $img_path : youzify_get_avatar_img_by_url( bp_core_avatar_default() ); // Prepare Photo Class $photo_class = array( ‘youzify-profile-photo’, “youzify-photo-$border_style” ); if ( ‘on’ == apply_filters( ‘youzify_enable_’ . $target . ‘_photo_border’, ‘on’ ) ) { $photo_class[] = ‘youzify-photo-border’; } if ( ‘circle’ == $border_style && ‘on’ == youzify_option( ‘youzify_profile_photo_effect’, ‘on’ ) ) { $photo_class[] = ‘youzify-profile-photo-effect’; } // $upload_img = bp_is_my_profile() ? ‘‘ : ”; $upload_img = ”; // Get Profile Url $profile_url = bp_core_get_user_domain( $user_id ); echo ““; } /** * Username. */ function name( $user_id = null ) { // Get User ID. $user_id = ! empty( $user_id ) ? $user_id : bp_displayed_user_id(); echo “

“. apply_filters( ‘youzify_user_profile_username’, bp_core_get_user_displayname( $user_id ) ) . “

“; } /** * Get a unique instance of Youzify Users. */ function youzify_users() { return Youzify_User::get_instance(); } /** * Launch Youzify Users! */ youzify_users();