post_author); if ( ! is_array($args) ) { $args = array(); } $avatar = false; //To show author Avater $author_pub_name = false; //To show author name $avatar_size = 40; $author_description = false; $class = $author_prefix = $author_wrapper_class = ''; $show_date = false; $show_time = false; $author_name = $post_author->display_name; $and_text = ''; $and_text = ampforwp_translation($redux_builder_amp['amp-translator-and-text'], 'and' ); if ( function_exists('coauthors') ) { $author_name = coauthors($and_text,$and_text,null,null,false); } $author_link = get_author_posts_url($post_author->ID); if ( function_exists('coauthors_posts_links') ) { $author_link = coauthors_posts_links($and_text,$and_text,null,null,false); } $author_image_wrapper = ''; if ( isset($args['author_pub_name']) ) { $author_pub_name = $args['author_pub_name']; } if ( isset($args['avatar']) ) { $avatar = $args['avatar']; } if ( isset($args['avatar_size']) ) { $avatar_size = $args['avatar_size']; } if ( isset($args['class']) ) { $class = $args['class']; } if ( isset($args['author_description']) ) { $author_description = $args['author_description']; } if ( isset( $args['author_prefix']) ) { $author_prefix = $args['author_prefix']; } //$author_prefix = ampforwp_translation($redux_builder_amp['amp-translator-by-text'] , $author_prefix ); if ( isset( $args['author_link']) ) { $author_link = $args['author_link']; } if ( isset( $args['author_wrapper_class']) ) { $author_wrapper_class = $args['author_wrapper_class']; } if ( isset($args['author_image_wrapper']) ) { $author_image_wrapper = $args['author_image_wrapper']; } if ( isset($args['show_date']) ) { $show_date = $args['show_date']; } if ( isset($args['show_time']) ) { $show_time = $args['show_time']; } ?>
ID, array( 'size' => $avatar_size ) ); } ?>
data-block-on-consent src="" width="" height="" layout="fixed">
'; if ( true == ampforwp_get_setting('ampforwp-author-page-url') ){ if ( function_exists('coauthors_posts_links') ) { if( $author_pub_name ){ echo '' .esc_html($author_prefix) . esc_url($author_link) . ' '; echo ampforwp_yoast_twitter_handle(); } } else { if( $author_pub_name ){ echo '' .esc_html($author_prefix) . ' ' .esc_html( $author_name ).''; echo ampforwp_yoast_twitter_handle(); } } } else{ if( $author_pub_name ){ echo '' . esc_html($author_prefix) . esc_html( $author_name ) . ''; echo ampforwp_yoast_twitter_handle(); } } //to show date and time if ( $show_date || $show_time ) { echo ' '; if ( $show_date ) { echo esc_html( get_the_date() ) . ' '; } if ( $show_time ) { echo esc_html( get_the_time()); } echo ''; } if ( $author_description ) { if( true == ampforwp_get_setting('amp-author-box-description') ){ $allowed_tags = '