%2$s'; 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() ) ); $posted_on = '' . $time_string . ''; echo '' . $posted_on . ''; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped. } endif; if ( ! function_exists( 'acumen_posted_by' ) ) : /** * Prints HTML with meta information for the current author. */ function acumen_posted_by() { $byline = ''; echo ''; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped. } endif; if ( ! function_exists( 'acumen_posted_by_outside_loop' ) ) : /** * Prints HTML with meta information for the current author. */ function acumen_posted_by_outside_loop() { $author_id = get_post_field( 'post_author', get_the_ID() ); $author = get_user_by( 'ID', $author_id ); // Get user display name $author_display_name = $author->display_name; $byline = ''; echo ''; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped. } endif; if ( ! function_exists( 'acumen_posted_cats' ) ) : /** * Prints HTML with meta information for the current post's category. */ function acumen_posted_cats() { if ( 'post' === get_post_type() ) { $separator = ' '; if( is_single() ) { /* translators: used between list items, there is a space after the comma */ $separator = esc_html__( ', ', 'acumen' ); } $categories_list = get_the_category_list( $separator ); if ( $categories_list ) { if ( is_single() ) { /* translators: 1: list of categories. */ printf( '' . esc_html__( 'Posted in %1$s', 'acumen' ) . '', $categories_list ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped. } else { echo '' . $categories_list . ''; } } } } endif; if ( ! function_exists( 'acumen_posted_tags' ) ) : /** * Prints HTML with meta information for the current post's tags. */ function acumen_posted_tags() { // Hide category and tag text for pages. if ( 'post' === get_post_type() ) { /* translators: used between list items, there is a space after the comma */ $tags_list = get_the_tag_list( '', esc_html_x( ', ', 'list item separator', 'acumen' ) ); if ( $tags_list ) { if ( is_single() ) { /* translators: 1: list of tags. */ printf( '', $tags_list ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped. } else { echo ''; } } } } endif; if ( ! function_exists( 'acumen_entry_header' ) ) : /** * Prints HTML with meta information for the categories and posted date. */ function acumen_entry_header() { acumen_posted_on(); acumen_posted_by_outside_loop(); } endif; if ( ! function_exists( 'acumen_entry_footer' ) ) : /** * Prints HTML with meta information for the tags and comments. */ function acumen_entry_footer() { if ( is_single() ) { // Show tags only on single pages. acumen_posted_tags(); } if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) { echo ''; comments_popup_link( sprintf( wp_kses( /* translators: %s: post title */ __( 'Leave a Comment on %s', 'acumen' ), array( 'span' => array( 'class' => array(), ), ) ), get_the_title() ) ); echo ''; } edit_post_link( sprintf( wp_kses( /* translators: %s: Name of current post. Only visible to screen readers */ __( 'Edit %s', 'acumen' ), array( 'span' => array( 'class' => array(), ), ) ), get_the_title() ), '', '' ); } endif; if ( ! function_exists( 'acumen_post_thumbnail' ) ) : /** * Displays an optional post thumbnail. * * Wraps the post thumbnail in an anchor element on index views, or a div * element when on single views. */ function acumen_post_thumbnail() { if ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) { return; } if ( is_singular() ) : $meta_option = get_post_meta( get_the_ID(), 'acumen-featured-image', true ); if ( empty( $meta_option) ) { $meta_option = 'default'; } if ( 'disable' === $meta_option ) { return; } ?>