%s', esc_url( get_author_posts_url( $sabox_author_id ) ), esc_html( get_the_author_meta( 'display_name', $sabox_author_id ) ) ); if ( get_the_author_meta( 'description' ) != '' || '0' == $sabox_options['sab_no_description'] ) { // hide the author box if no description is provided echo '
'; // start saboxplugin-wrap div // author box gravatar echo '
'; $custom_profile_image = get_the_author_meta( 'sabox-profile-image', $sabox_author_id ); if ( '' != $custom_profile_image ) { echo ''; } else { echo get_avatar( get_the_author_meta( 'user_email', $sabox_author_id ), '100' ); } echo '
'; // author box name echo '
'; echo apply_filters( 'sabox_author_html', $sab_author_link, $sabox_options, $sabox_author_id ); if ( is_user_logged_in() && get_current_user_id() == $sabox_author_id ) { echo ' ' . __( 'Edit profile', 'saboxplugin' ) . ''; } echo '
'; // author box description echo '
'; echo '
'; $description = get_the_author_meta( 'description', $sabox_author_id ); $description = wptexturize( $description ); $description = wpautop( $description ); echo wp_kses_post( $description ); echo '
'; echo '
'; if ( is_single() ) { if ( get_the_author_meta( 'user_url' ) != '' && '1' == $sabox_options['sab_web'] ) { // author website on single echo '
'; echo '' . esc_html( get_the_author_meta( 'user_url', $sabox_author_id ) ) . ''; echo '
'; } } if ( is_author() or is_archive() ) { if ( get_the_author_meta( 'user_url' ) != '' ) { // force show author website on author.php or archive.php echo '
'; echo '' . esc_html( get_the_author_meta( 'user_url', $sabox_author_id ) ) . ''; echo '
'; } } // author box clearfix echo '
'; // author box social icons $author = get_userdata( $sabox_author_id ); $show_social_icons = apply_filters( 'sabox_hide_social_icons', true, $author ); if ( is_user_logged_in() && current_user_can( 'manage_options' ) ) { echo '
'; echo '' . __( 'Settings', 'saboxplugin' ) . ''; echo '
'; } $show_email = '0' == $sabox_options['sab_email'] ? false : true; $social_links = Simple_Author_Box_Helper::get_user_social_links( $sabox_author_id, $show_email ); if ( '0' == $sabox_options['sab_hide_socials'] && $show_social_icons && ! empty( $social_links ) ) { // hide social icons div option echo '
'; foreach ( $social_links as $social_platform => $social_link ) { if ( 'user_email' == $social_platform ) { $social_link = 'mailto:' . antispambot( $social_link ); } if ( ! empty( $social_link ) ) { echo Simple_Author_Box_Helper::get_sabox_social_icon( $social_link, $social_platform ); } } echo '
'; } // end of social icons echo '
'; // end of saboxplugin-wrap div }