%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( 'aster_it_solutions_posted_on' ) ) : /** * Prints HTML with meta information for the current post-date/time. */ function aster_it_solutions_posted_on() { if ( get_theme_mod( 'aster_it_solutions_post_hide_date', false ) ) { return; } $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() ) ); $posted_on = '' . $time_string . ''; echo $posted_on; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } endif; if ( ! function_exists( 'aster_it_solutions_posted_by_single' ) ) : /** * Prints HTML with meta information for the current author on single posts. */ function aster_it_solutions_posted_by_single() { if ( get_theme_mod( 'aster_it_solutions_single_post_hide_author', false ) ) { return; } $byline = '' . esc_html( get_the_author() ) . ''; echo ''; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } endif; if ( ! function_exists( 'aster_it_solutions_posted_by' ) ) : /** * Prints HTML with meta information for the current author. */ function aster_it_solutions_posted_by() { if ( get_theme_mod( 'aster_it_solutions_post_hide_author', false ) ) { return; } $byline = '' . esc_html( get_the_author() ) . ''; echo ''; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } endif; /** * Prints HTML with meta information for the categories. */ if ( ! function_exists( 'aster_it_solutions_categories_single_list' ) ) : function aster_it_solutions_categories_single_list( $with_background = false ) { if ( is_singular( 'post' ) ) { $hide_category = get_theme_mod( 'aster_it_solutions_single_post_hide_category', false ); if ( ! $hide_category ) { $categories = get_the_category(); $separator = ''; $output = ''; if ( ! empty( $categories ) ) { foreach ( $categories as $category ) { $output .= '' . esc_html( $category->name ) . '' . $separator; } echo trim( $output, $separator ); } } } } endif; if ( ! function_exists( 'aster_it_solutions_categories_list' ) ) : function aster_it_solutions_categories_list( $with_background = false ) { $hide_category = get_theme_mod( 'aster_it_solutions_post_hide_category', true ); if ( ! $hide_category ) { $categories = get_the_category(); $separator = ''; $output = ''; if ( ! empty( $categories ) ) { foreach ( $categories as $category ) { $output .= '' . esc_html( $category->name ) . '' . $separator; } echo trim( $output, $separator ); } } } endif; if ( ! function_exists( 'aster_it_solutions_entry_footer' ) ) : /** * Prints HTML with meta information for the tags and comments. */ function aster_it_solutions_entry_footer() { // Hide category and tag text for pages. if ( 'post' === get_post_type() && is_singular() ) { $hide_tag = get_theme_mod( 'aster_it_solutions_post_hide_tags', false ); if ( ! $hide_tag ) { /* translators: used between list items, there is a space after the comma */ $tags_list = get_the_tag_list( '', esc_html_x( ', ', 'list item separator', 'aster-it-solutions' ) ); if ( $tags_list ) { /* translators: 1: list of tags. */ printf( '', $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-it-solutions' ), array( 'span' => array( 'class' => array(), ), ) ), wp_kses_post( get_the_title() ) ), '', '' ); } endif; if ( ! function_exists( 'aster_it_solutions_post_thumbnail' ) ) : function aster_it_solutions_post_thumbnail() { if ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) { return; } if ( is_singular() ) : if ( get_theme_mod( 'aster_it_solutions_single_post_hide_feature_image', false ) ) { return; } ?>