' . $content); } else { $content.= display_author_box(); } } If(is_page() && get_option('bio_on_page')) { If (get_option('bio_on_top')) { $content = (display_author_box() . '
' . $content); } else { $content.= display_author_box(); } } } return $content; } function author_description() { global $post; $source = get_post_meta($post->ID, 'author_desc', true); if (get_option('custom_profile_field')) { $customprofilefield = get_the_author_meta( get_option('custom_profile_field'), $user->ID ); } if ($source) { return $source; } elseif ($customprofilefield) { return $customprofilefield; } else { return get_the_author_description(); } } function author_box_display_status() { global $post; $source = get_post_meta($post->ID, 'author_disp', true); if (strtolower($source) == 'no') { return false; } else { return true; } } function display_author_box() { $author_post_line='

'.get_the_author_meta('display_name').' – who has written posts on '.get_bloginfo("name").'.

'; If (!get_option('email_on_profile')) { If (get_option('images_on_profile')) { $display_author_email='Email'; } else { $display_author_email='Email'; } } $author_title = get_option('ab_box_title'); $author_box='

'.get_avatar(get_the_author_id() ).'

' .$author_title. '

'.author_description().'

'.$author_post_line.'
'; //Fetch the User Social Contact Infomation $twitter = get_the_author_meta( 'twitter' ); $facebook = get_the_author_meta( 'facebook' ); $google_profile = get_the_author_meta( 'google_profile' ); $youtube_profile = get_the_author_meta('youtube_profile'); $linkedin_profile = get_the_author_meta('linkedin_profile'); $pinterest_profile = get_the_author_meta('pinterest_profile'); if($google_profile){ If (get_option('images_on_profile')) { $display_google_profile=' Google Plus'; } else { $display_google_profile=' • Google +'; } } if($facebook){ If (get_option('images_on_profile')) { $display_facebook_profile=' Facebook'; } else { $display_facebook_profile=' • Facebook '; } } if($twitter){ If (get_option('images_on_profile')) { $display_twitter_profile=' Twitter'; } else { $display_twitter_profile=' • Twitter'; } } if($youtube_profile){ If (get_option('images_on_profile')) { $display_youtube_profile=' YouTube'; } else { $display_youtube_profile=' • YouTube'; } } if($linkedin_profile){ If (get_option('images_on_profile')) { $display_linkedin_profile=' Linkedin'; } else { $display_linkedin_profile=' • LinkedIn'; } } if($pinterest_profile){ If (get_option('images_on_profile')) { $display_pinterest_profile=' Pinterest'; } else { $display_pinterest_profile=' • Pinterest'; } } $author_box_content = $author_box.'
'; //Dynamic Output of the Author Box (Show Info you've set) return $author_box_content; } ?>