' . __( 'by', 'aari' ) . ' : %3$s ';
printf(
wp_kses_post( $authorof ),
esc_url( get_author_posts_url( $get_author_id ) ),
esc_url( $get_author_gravatar ),
esc_attr( get_the_author() )
);
$byline = sprintf(
/* translators: %s: post author. */
esc_html_x( 'by %s', 'post author', 'aari' ),
'' . esc_html( get_the_author() ) . ''
);
/* translators: used between list items, there is a space after the comma */
$categories_list = get_the_category_list( esc_html__( ', ', 'aari' ) );
if ( $categories_list ) {
/* translators: 1: list of categories. */
printf( '%1$s', wp_kses_post( $categories_list ) );
}
}
endif;
if ( ! function_exists( 'aari_entry_footer' ) ) :
/**
* Prints HTML with meta information for the categories, tags and comments.
*/
function aari_entry_footer() {
if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) {
echo '';
}
edit_post_link(
sprintf(
wp_kses(
/* translators: %s: Name of current post. Only visible to screen readers */
__( 'Edit %s', 'aari' ),
array(
'span' => array(
'class' => array(),
),
)
),
get_the_title()
),
'',
''
);
}
endif;
if ( ! function_exists( 'aari_single_post_header' ) ) :
/**
* Prints HTML with meta information for the current post-date/time and author.
*/
function aari_single_post_header() {
/* translators: used between list items, there is a space after the comma */
$categories_list = get_the_category_list( esc_html__( ', ', 'aari' ) );
if ( ! is_attachment() ) :
echo ( 1 === get_theme_mod( 'disable_post_breadcrumbs' ) ? '' : wp_kses_post( aari_breadcrumbs() ) );
endif;
the_title( '', '
' );
$time_string = '';
if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {
$time_string = ' ';
}
$time_string = sprintf(
$time_string,
esc_attr( get_the_date( DATE_W3C ) ),
esc_html( get_the_date() ),
esc_attr( get_the_modified_date( DATE_W3C ) ),
esc_html( get_the_modified_date() )
);
$get_author_id = get_the_author_meta( 'ID' );
if ( ! get_theme_mod( 'disable_post_details' ) ) {
if ( ! is_page() ) :
printf( '', wp_kses_post( get_day_link( get_post_time( 'Y' ), get_post_time( 'm' ), get_post_time( 'j' ) ) ), wp_kses_post( $time_string ), esc_url( get_author_posts_url( $get_author_id ) ), esc_attr( get_the_author() ) );
endif;
}
}
endif;
if ( ! function_exists( 'aari_single_tags_cloud' ) ) :
/**
* Prints HTML with meta information for the current post-date/time and author.
*/
function aari_single_tags_cloud() {
$categories_list = get_the_category_list( esc_html__( ',', 'aari' ) );
if ( $categories_list ) {
/* translators: 1: list of categories. */
if ( ! get_theme_mod( 'disable_category_cloud' ) ) {
printf( '%1$s %2$s', esc_html_x( 'Post Categories: ', 'aari', 'aari' ), wp_kses_post( $categories_list ) );
}
}
/* translators: used between list items, there is a space after the comma */
$tags_list = get_the_tag_list( '', ',' );
if ( $tags_list && ! is_wp_error( $tags_list ) && ! get_theme_mod( 'disable_tag_cloud' ) ) {
printf(
'%1$s %2$s',
esc_html_x( 'Tags: ', 'Used before tag names.', 'aari' ),
wp_kses_post( $tags_list )
);
}
}
endif;
if ( ! function_exists( 'aari_post_footer_author' ) ) :
/**
* Prints HTML with meta information for the current post-date/time and author.
*/
function aari_post_footer_author() {
$get_author_id = get_the_author_meta( 'ID' );
$get_author_gravatar = get_avatar_url( $get_author_id );
$time_string = '';
if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {
$time_string = '';
}
$time_string = sprintf(
$time_string,
esc_attr( get_the_date( 'c' ) ),
esc_html( get_the_date() )
);
$author_details = '';
printf(
wp_kses_post( $author_details ),
esc_url( $get_author_gravatar ),
esc_url( get_author_posts_url( $get_author_id ) ),
esc_attr( get_the_author() ),
wp_kses_post( $time_string )
);
}
endif;
if ( ! function_exists( 'aari_related_post_ext' ) ) :
function aari_related_post_ext() {
/* translators: used between list items, there is a space after the comma */
$categories_list = get_the_category_list( esc_html__( ', ', 'aari' ) );
if ( $categories_list ) {
/* translators: 1: list of categories. */
$cats = sprintf( '%1$s', $categories_list ); // WPCS: XSS OK.
}
$time_string = '';
if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {
$time_string = '';
}
$time_string = sprintf(
$time_string,
esc_attr( get_the_date( 'c' ) ),
esc_html( get_the_date() )
);
$cats .= sprintf( '%2$s ', get_day_link( get_post_time( 'Y' ), get_post_time( 'm' ), get_post_time( 'j' ) ), $time_string );
return $cats;
}
endif;
/**
* Retrive post date
*/
if ( ! function_exists( 'aari_post_date' ) ) :
function aari_post_date() {
$time_string = '';
if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {
$time_string = '';
}
$time_string = sprintf(
$time_string,
esc_attr( get_the_date( 'c' ) ),
esc_html( get_the_date() )
);
echo wp_kses_post( $time_string );
}
endif;