%2$s'; if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { $aster_storefront_time_string = ''; } $aster_storefront_time_string = sprintf( $aster_storefront_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() ) ); $aster_storefront_posted_on = '' . $aster_storefront_time_string . ''; echo $aster_storefront_posted_on; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } endif; if ( ! function_exists( 'aster_storefront_posted_on' ) ) : /** * Prints HTML with meta information for the current post-date/time. */ function aster_storefront_posted_on() { if ( get_theme_mod( 'aster_storefront_post_hide_date', false ) ) { return; } $aster_storefront_time_string = ''; if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { $aster_storefront_time_string = ''; } $aster_storefront_time_string = sprintf( $aster_storefront_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() ) ); $aster_storefront_posted_on = '' . $aster_storefront_time_string . ''; echo $aster_storefront_posted_on; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } endif; if ( ! function_exists( 'aster_storefront_posted_by_single' ) ) : /** * Prints HTML with meta information for the current author on single posts. */ function aster_storefront_posted_by_single() { if ( get_theme_mod( 'aster_storefront_single_post_hide_author', false ) ) { return; } $aster_storefront_byline = '' . esc_html( get_the_author() ) . ''; echo ''; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } endif; if ( ! function_exists( 'aster_storefront_posted_by' ) ) : /** * Prints HTML with meta information for the current author. */ function aster_storefront_posted_by() { if ( get_theme_mod( 'aster_storefront_post_hide_author', false ) ) { return; } $aster_storefront_byline = '' . esc_html( get_the_author() ) . ''; echo ''; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } endif; if ( ! function_exists( 'aster_storefront_categories_single_list' ) ) : function aster_storefront_categories_single_list( $with_background = false ) { if ( is_singular( 'post' ) ) { $aster_storefront_hide_category = get_theme_mod( 'aster_storefront_single_post_hide_category', false ); if ( ! $aster_storefront_hide_category ) { $aster_storefront_categories = get_the_category(); $aster_storefront_separator = ''; $aster_storefront_output = ''; if ( ! empty( $aster_storefront_categories ) ) { foreach ( $aster_storefront_categories as $aster_storefront_category ) { $aster_storefront_output .= '' . esc_html( $aster_storefront_category->name ) . '' . $aster_storefront_separator; } echo trim( $aster_storefront_output, $aster_storefront_separator ); } } } } endif; if ( ! function_exists( 'aster_storefront_categories_list' ) ) : function aster_storefront_categories_list( $with_background = false ) { $aster_storefront_hide_category = get_theme_mod( 'aster_storefront_post_hide_category', true ); if ( ! $aster_storefront_hide_category ) { $aster_storefront_categories = get_the_category(); $aster_storefront_separator = ''; $aster_storefront_output = ''; if ( ! empty( $aster_storefront_categories ) ) { foreach ( $aster_storefront_categories as $aster_storefront_category ) { $aster_storefront_output .= '' . esc_html( $aster_storefront_category->name ) . '' . $aster_storefront_separator; } echo trim( $aster_storefront_output, $aster_storefront_separator ); } } } endif; if ( ! function_exists( 'aster_storefront_entry_footer' ) ) : /** * Prints HTML with meta information for the tags and comments. */ function aster_storefront_entry_footer() { // Hide category and tag text for pages. if ( 'post' === get_post_type() && is_singular() ) { $aster_storefront_hide_tag = get_theme_mod( 'aster_storefront_post_hide_tags', false ); if ( ! $aster_storefront_hide_tag ) { /* translators: used between list items, there is a space after the comma */ $aster_storefront_tags_list = get_the_tag_list( '', esc_html_x( ', ', 'list item separator', 'aster-storefront' ) ); if ( $aster_storefront_tags_list ) { /* translators: 1: list of tags. */ printf( '', $aster_storefront_tags_list ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } } } edit_post_link( sprintf( wp_kses( /* translators: %s: Name of current post. Only visible to screen readers */ __( 'Edit %s', 'aster-storefront' ), array( 'span' => array( 'class' => array(), ), ) ), wp_kses_post( get_the_title() ) ), '', '' ); } endif; if ( ! function_exists( 'aster_storefront_post_thumbnail' ) ) : function aster_storefront_post_thumbnail() { if ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) { return; } if ( is_singular() ) : if ( get_theme_mod( 'aster_storefront_single_post_hide_feature_image', false ) ) { return; } ?>