%3$s',
get_avatar( get_the_author_meta( 'ID' ), 55 ),
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
get_the_author()
);
endif;
if ( get_post_type() === 'post' && $blog_date_show =='yes') {
echo '
'. get_the_date() .
'';
}
$category_list = get_the_category_list( ', ' );
if ( $category_list && $blog_category_show =='yes') {
echo '
'. $category_list .'
';
}
if(is_single()):
?>
%3$s',
get_avatar( get_the_author_meta( 'ID' ), 55 ),
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
get_the_author()
);
endif;
if ( get_post_type() === 'post' && $blog_date_show =='yes') {
echo '
'. get_the_date() .
'';
}
$category_list = get_the_category_list( ', ' );
if ( $category_list && $blog_category_show =='yes') {
echo '
'. $category_list .'
';
}
if(is_single() && $blog_details_Comments_show == 'yes'):
?>
'. get_the_date( 'm F Y' ) .'';
}
}
// comment walker
// ----------------------------------------------------------------------------------------
function bajaar_comment_style( $comment, $args, $depth ) {
if ( 'div' === $args[ 'style' ] ) {
$tag = 'div';
$add_below = 'comment';
} else {
$tag = 'li ';
$add_below = 'div-comment';
}
?>
'comment-avatar pull-left' ) );
}
?>
< id="comment-">
';
echo '
';
echo '' . esc_html__( 'Tags: ', 'bajaar' ) . '';
echo bajaar_kses( $tag_list );
echo '
';
echo '
';
}
}
/*
*
* product category
**/
function bajaar_product_category($cat){
if(!class_exists('woocommerce')){
return [];
}
$tax_terms = get_terms($cat, array('hide_empty' => false));
$category_list = [];
foreach($tax_terms as $term_single) {
$category_list[$term_single->term_id] = [$term_single->name];
}
return $category_list;
}