%2$s'; if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { $aster_vlogger_time_string = ''; } $aster_vlogger_time_string = sprintf( $aster_vlogger_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() ) ); // Get the user-selected icon from theme mod $aster_vlogger_post_date_icon = get_theme_mod('aster_vlogger_post_date_icon', 'far fa-clock'); // Output post date with dynamic icon $aster_vlogger_posted_on = ' ' . $aster_vlogger_time_string . ' '; echo $aster_vlogger_posted_on; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped return; } } endif; if ( ! function_exists( 'aster_vlogger_posted_on' ) ) : /** * Prints HTML with meta information for the current post-date/time. */ function aster_vlogger_posted_on() { if ( get_theme_mod( 'aster_vlogger_post_hide_date', true ) ) { $aster_vlogger_time_string = ''; if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { $aster_vlogger_time_string = ''; } $aster_vlogger_time_string = sprintf( $aster_vlogger_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() ) ); // Get the user-selected icon from theme mod $aster_vlogger_post_date_icon = get_theme_mod('aster_vlogger_post_date_icon', 'far fa-clock'); // Output post date with dynamic icon $aster_vlogger_posted_on = ' ' . $aster_vlogger_time_string . ' '; echo $aster_vlogger_posted_on; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped return; } } endif; if ( ! function_exists( 'aster_vlogger_posted_by_single' ) ) : /** * Prints HTML with meta information for the current author on single posts. */ function aster_vlogger_posted_by_single() { if ( get_theme_mod( 'aster_vlogger_single_post_hide_author', true ) ) { // Get the custom author icon from the Customizer $aster_vlogger_post_author_icon = get_theme_mod( 'aster_vlogger_post_author_icon', 'fas fa-user' ); $aster_vlogger_byline = ' ' . esc_html( get_the_author() ) . ' '; echo '' . $aster_vlogger_byline . ''; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped return; } } endif; if ( ! function_exists( 'aster_vlogger_posted_by' ) ) : /** * Prints HTML with meta information for the current author. */ function aster_vlogger_posted_by() { if ( get_theme_mod( 'aster_vlogger_post_hide_author', true ) ) { // Get the custom author icon from the Customizer $aster_vlogger_post_author_icon = get_theme_mod( 'aster_vlogger_post_author_icon', 'fas fa-user' ); $aster_vlogger_byline = ' ' . esc_html( get_the_author() ) . ' '; echo '' . $aster_vlogger_byline . ''; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped return; } } endif; if ( ! function_exists( 'aster_vlogger_posted_comments_single' ) ) : /** * Prints HTML with meta information for the current comment count on single posts. */ function aster_vlogger_posted_comments_single() { if ( get_theme_mod( 'aster_vlogger_single_post_hide_comments', true ) ) { $aster_vlogger_comment_count = get_comments_number(); $aster_vlogger_comment_text = sprintf( /* translators: %s: comment count */ _n( '%s Comment', '%s Comments', $aster_vlogger_comment_count, 'aster-vlogger' ), number_format_i18n( $aster_vlogger_comment_count ) ); // Get the custom comments icon from the Customizer, defaulting to 'fas fa-comments' $aster_vlogger_post_comments_icon = get_theme_mod( 'aster_vlogger_post_comments_icon', 'fas fa-comments' ); echo ' ' . esc_html( $aster_vlogger_comment_text ) . ' '; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped return; } } endif; if ( ! function_exists( 'aster_vlogger_posted_comments' ) ) : /** * Prints HTML with meta information for the current comment count. */ function aster_vlogger_posted_comments() { if ( get_theme_mod( 'aster_vlogger_post_hide_comments', true ) ) { $aster_vlogger_comment_count = get_comments_number(); $aster_vlogger_comment_text = sprintf( /* translators: %s: comment count */ _n( '%s Comment', '%s Comments', $aster_vlogger_comment_count, 'aster-vlogger' ), number_format_i18n( $aster_vlogger_comment_count ) ); // Get the custom comments icon from the Customizer, defaulting to 'fas fa-comments' $aster_vlogger_post_comments_icon = get_theme_mod( 'aster_vlogger_post_comments_icon', 'fas fa-comments' ); echo ' ' . esc_html( $aster_vlogger_comment_text ) . ' '; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped return; } } endif; if ( ! function_exists( 'aster_vlogger_posted_time_single' ) ) : /** * Prints HTML with meta information for the current post time on single posts. */ function aster_vlogger_posted_time_single() { if ( get_theme_mod( 'aster_vlogger_single_post_hide_time', true ) ) { // Get the custom post time icon from the Customizer, defaulting to 'fas fa-clock' $aster_vlogger_post_time_icon = get_theme_mod( 'aster_vlogger_post_time_icon', 'fas fa-clock' ); $aster_vlogger_posted_on = sprintf( /* translators: %s: post time */ esc_html__( 'Posted at %s', 'aster-vlogger' ), '' ); echo ' ' . $aster_vlogger_posted_on . ''; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped return; } } endif; if ( ! function_exists( 'aster_vlogger_posted_time' ) ) : /** * Prints HTML with meta information for the current post time. */ function aster_vlogger_posted_time() { if ( get_theme_mod( 'aster_vlogger_post_hide_time', true ) ) { // Get the custom post time icon from the Customizer, defaulting to 'fas fa-clock' $aster_vlogger_post_time_icon = get_theme_mod( 'aster_vlogger_post_time_icon', 'fas fa-clock' ); $aster_vlogger_posted_on = sprintf( /* translators: %s: post time */ esc_html__( 'Posted at %s', 'aster-vlogger' ), '' ); echo ' ' . $aster_vlogger_posted_on . ''; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped return; } } endif; /** * Prints HTML with meta information for the categories. */ if ( ! function_exists( 'aster_vlogger_categories_single_list' ) ) : function aster_vlogger_categories_single_list( $with_background = false ) { if ( is_singular( 'post' ) ) { $aster_vlogger_hide_category = get_theme_mod( 'aster_vlogger_single_post_hide_category', true ); if ( $aster_vlogger_hide_category ) { $aster_vlogger_categories = get_the_category(); $aster_vlogger_separator = ''; $aster_vlogger_output = ''; if ( ! empty( $aster_vlogger_categories ) ) { foreach ( $aster_vlogger_categories as $aster_vlogger_category ) { $aster_vlogger_output .= '' . esc_html( $aster_vlogger_category->name ) . '' . $aster_vlogger_separator; } echo trim( $aster_vlogger_output, $aster_vlogger_separator ); } } } } endif; if ( ! function_exists( 'aster_vlogger_categories_list' ) ) : function aster_vlogger_categories_list( $with_background = false ) { $aster_vlogger_hide_category = get_theme_mod( 'aster_vlogger_post_hide_category', true ); if ( $aster_vlogger_hide_category ) { $aster_vlogger_categories = get_the_category(); $aster_vlogger_separator = ''; $aster_vlogger_output = ''; if ( ! empty( $aster_vlogger_categories ) ) { foreach ( $aster_vlogger_categories as $aster_vlogger_category ) { $aster_vlogger_output .= '' . esc_html( $aster_vlogger_category->name ) . '' . $aster_vlogger_separator; } echo trim( $aster_vlogger_output, $aster_vlogger_separator ); } } } endif; if ( ! function_exists( 'aster_vlogger_entry_footer' ) ) : /** * Prints HTML with meta information for the tags and comments. */ function aster_vlogger_entry_footer() { // Hide category and tag text for pages. if ( 'post' === get_post_type() && is_singular() ) { $aster_vlogger_hide_tag = get_theme_mod( 'aster_vlogger_post_hide_tags', true ); if ( $aster_vlogger_hide_tag ) { /* translators: used between list items, there is a space after the comma */ $aster_vlogger_tags_list = get_the_tag_list( '', esc_html_x( ', ', 'list item separator', 'aster-vlogger' ) ); if ( $aster_vlogger_tags_list ) { /* translators: 1: list of tags. */ printf( '' . esc_html__( 'Tagged %1$s', 'aster-vlogger' ) . '', $aster_vlogger_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-vlogger' ), array( 'span' => array( 'class' => array(), ), ) ), wp_kses_post( get_the_title() ) ), '', '' ); } endif; if ( ! function_exists( 'aster_vlogger_post_thumbnail' ) ) : /** * Display the post thumbnail. */ function aster_vlogger_post_thumbnail() { // Return early if the post is password protected, an attachment, or does not have a post thumbnail. if ( post_password_required() || is_attachment() ) { return; } // Display post thumbnail for singular views. if ( is_singular() ) : // Check theme setting to hide the featured image in single posts. if ( get_theme_mod( 'aster_vlogger_single_post_hide_feature_image', false ) ) { return; } ?>
'; } ?>