'; if ( ! is_single() && ( 'aside' === $post_format || 'status' === $post_format ) ) { $author = get_the_author(); $date = get_the_date(); printf( /* translators: %1$s: Author, %2$s: Publish date */ '' . esc_html__( '%1$s @ %2$s', 'bidnis' ) . '', sprintf( '%3$s', esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), /* translators: %s post author */ sprintf( esc_attr__( 'Author: %s', 'bidnis' ), $author ), // phpcs:ignore WordPress.Security.EscapeOutput $author // phpcs:ignore WordPress.Security.EscapeOutput ), sprintf( '%3$s', esc_url( get_permalink() ), /* translators: %s post date */ sprintf( esc_attr__( 'Posted: %s', 'bidnis' ), $date ), // phpcs:ignore WordPress.Security.EscapeOutput $date // phpcs:ignore WordPress.Security.EscapeOutput ) ); } else { if ( get_theme_mod( 'entry_meta_author', true ) ) { $author = get_the_author(); printf( '%1$s', $author, // phpcs:ignore WordPress.Security.EscapeOutput esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), sprintf( /* translators: %s post author */ esc_attr__( 'Author: %s', 'bidnis' ), $author // phpcs:ignore WordPress.Security.EscapeOutput ) ); } if ( get_theme_mod( 'entry_meta_date', true ) ) { $date = get_the_date(); printf( '%2$s', esc_url( get_permalink() ), $date, // phpcs:ignore WordPress.Security.EscapeOutput sprintf( /* translators: %s post date */ esc_attr__( 'Posted: %s', 'bidnis' ), $date // phpcs:ignore WordPress.Security.EscapeOutput ) ); } $comment_count = get_comments_number(); if ( $comment_count && comments_open() && get_theme_mod( 'entry_meta_comments', true ) ) { printf( '%1$s', esc_html( $comment_count ), esc_url( get_permalink() ), sprintf( /* translators: %s comment count */ esc_attr( _n( '%s comment', '%s comments', $comment_count, 'bidnis' ) ), esc_attr( number_format_i18n( $comment_count ) ) ) ); } if ( wp_attachment_is_image() ) { $metadata = wp_get_attachment_metadata(); printf( '%1$s%2$sx%3$s', esc_html__( 'Attachment resolution', 'bidnis' ), absint( $metadata['width'] ), absint( $metadata['height'] ) ); } if ( has_category() && get_theme_mod( 'entry_meta_categories', true ) ) { // TODO: find a way to add aria-label or screen-reader-text for this. printf( '%s', get_the_category_list( ', ' ) // phpcs:ignore WordPress.Security.EscapeOutput ); } } echo ''; }