%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 = '' . esc_html( get_the_author() ) . ''; echo '' . $byline . ''; // 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 = '' . esc_html( $author_display_name ) . ''; echo '' . $byline . ''; // 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( '' . esc_html__( 'Tagged %1$s', 'acumen' ) . '', $tags_list ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped. } else { echo '' . $tags_list . ''; } } } } 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; } ?>
' . esc_html__( '%1$sPosted in%2$s %3$s', 'acumen' ) . '', '', '', $categories_list ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } } elseif ( 'product' === get_post_type() ) { $terms = get_the_terms( get_the_ID() , 'product_cat' ); if ( $terms ) { $output ='
'; foreach ( $terms as $term ) { $output .= '' . esc_html( $term->name ) . ''; } $output .='
'; } } return $output; } endif; if ( ! function_exists( 'acumen_featured_content_meta' ) ) : /** * Prints HTML with meta information for the categories, tags and comments. */ function acumen_featured_content_meta() { echo '
'; if ( 'post' === get_post_type() ) { if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) { echo ''; comments_popup_link(); echo ''; } } elseif ( 'product' === get_post_type() ) { if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) { echo ''; comments_popup_link( esc_html__( 'No Reviews', 'acumen' ), esc_html__( '1 Review', 'acumen' ), esc_html__( '% Reviews', 'acumen' ), 'reviews-link', esc_html__( 'Reviews are off for this product', 'acumen' ) ); echo ''; } } acumen_posted_on(); echo '
'; } endif; if ( ! function_exists( 'acumen_section_title' ) ) : /** * Prints HTML with Top Title, Title and Subtitle */ function acumen_section_title( $section ) { $top_subtitle = acumen_gtm( 'acumen_' . $section . '_section_top_subtitle' ); $title = acumen_gtm( 'acumen_' . $section . '_section_title' ); $subtitle = acumen_gtm( 'acumen_' . $section . '_section_subtitle' ); if ( $top_subtitle || $title || $subtitle ) : ?>

'. esc_html( get_bloginfo( 'name', 'display' ) ) . '', esc_url( get_the_privacy_policy_link() ) ) . ' | ' . esc_html__( ' Acumen by', 'acumen' ). ' Firefly Themes'; } add_action( 'acumen_footer', 'acumen_footer', 10 );