<div class="author-wrap col-md-8 col-md-offset-2"> <p class="author-avatar"><?php echo get_avatar($user_id, 125); ?> </p> <?php do_action('franz_author_top'); ?> <div class="author-bio"> <h1 class="entry-title"><?php echo $userdata->display_name; ?> </h1> <?php franz_author_details($user_id); franz_author_social_links($user_id); ?> <?php if ($usermeta['description'][0]) { ?> <div class="bio-text"> <h2 class="section-title-sm"><?php _e('About', 'franz-josef'); ?> </h2> <?php echo wpautop($usermeta['description'][0]); ?> </div> <?php
/** * Print out author's bio */ function franz_single_author_bio() { global $franz_settings; if (!is_singular() || $franz_settings['hide_author_bio']) { return; } ?> <div class="entry-author"> <div class="row"> <div class="author-avatar col-sm-2"> <a href="<?php $author_id = get_the_author_meta('ID'); echo esc_url(get_author_posts_url($author_id)); ?> " rel="author"> <?php echo get_avatar($author_id, 125); ?> </a> </div> <div class="author-bio col-sm-10"> <h3 class="section-title-sm"><?php echo get_the_author_meta('display_name'); ?> </h3> <?php echo wpautop(get_the_author_meta('description')); franz_author_social_links($author_id); ?> </div> </div> </div> <?php }