<?php
/**
* Author bio box
*
* @package BoldWP WordPress Theme
* @copyright Copyright (C) 2025 ThemesDNA
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or later
* @author ThemesDNA <themesdna@gmail.com>
*/

// Author bio box
function boldwp_add_author_bio_box() {
    $content='';
    if (is_single()) {
        $content .= '
            <div class="boldwp-author-bio">
            <div class="boldwp-author-bio-inside">
            <div class="boldwp-author-bio-top">
            <span class="boldwp-author-bio-gravatar">
                '. get_avatar( get_the_author_meta('email') , 80 ) .'
            </span>
            <div class="boldwp-author-bio-text">
                <div class="boldwp-author-bio-name">'.esc_html__( 'Author: ', 'boldwp' ).'<span>'. get_the_author_link() .'</span></div><div class="boldwp-author-bio-text-description">'. get_the_author_meta('description',get_query_var('author') ) .'</div>
            </div>
            </div>
            </div>
            </div>
        ';
    }
    return apply_filters( 'boldwp_add_author_bio_box', $content );
}