%2$s'; if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { $appointment_management_time_string = ''; } $appointment_management_time_string = sprintf( $appointment_management_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 $appointment_management_post_date_icon = get_theme_mod('appointment_management_post_date_icon', 'far fa-clock'); // Output post date with dynamic icon $appointment_management_posted_on = ' ' . $appointment_management_time_string . ' '; echo $appointment_management_posted_on; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped return; } } endif; if ( ! function_exists( 'appointment_management_posted_on' ) ) : /** * Prints HTML with meta information for the current post-date/time. */ function appointment_management_posted_on() { if ( get_theme_mod( 'appointment_management_post_hide_date', true ) ) { $appointment_management_time_string = ''; if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { $appointment_management_time_string = ''; } $appointment_management_time_string = sprintf( $appointment_management_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 $appointment_management_post_date_icon = get_theme_mod('appointment_management_post_date_icon', 'far fa-clock'); // Output post date with dynamic icon $appointment_management_posted_on = ' ' . $appointment_management_time_string . ' '; echo $appointment_management_posted_on; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped return; } } endif; if ( ! function_exists( 'appointment_management_posted_by_single' ) ) : /** * Prints HTML with meta information for the current author on single posts. */ function appointment_management_posted_by_single() { if ( get_theme_mod( 'appointment_management_single_post_hide_author', true ) ) { // Get the custom author icon from the Customizer $appointment_management_post_author_icon = get_theme_mod( 'appointment_management_post_author_icon', 'fas fa-user' ); $appointment_management_byline = ' ' . esc_html( get_the_author() ) . ' '; echo '' . $appointment_management_byline . ''; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped return; } } endif; if ( ! function_exists( 'appointment_management_posted_by' ) ) : /** * Prints HTML with meta information for the current author. */ function appointment_management_posted_by() { if ( get_theme_mod( 'appointment_management_post_hide_author', true ) ) { // Get the custom author icon from the Customizer $appointment_management_post_author_icon = get_theme_mod( 'appointment_management_post_author_icon', 'fas fa-user' ); $appointment_management_byline = ' ' . esc_html( get_the_author() ) . ' '; echo '' . $appointment_management_byline . ''; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped return; } } endif; if ( ! function_exists( 'appointment_management_posted_comments_single' ) ) : /** * Prints HTML with meta information for the current comment count on single posts. */ function appointment_management_posted_comments_single() { if ( get_theme_mod( 'appointment_management_single_post_hide_comments', true ) ) { $appointment_management_comment_count = get_comments_number(); $appointment_management_comment_text = sprintf( /* translators: %s: comment count */ _n( '%s Comment', '%s Comments', $appointment_management_comment_count, 'appointment-management' ), number_format_i18n( $appointment_management_comment_count ) ); // Get the custom comments icon from the Customizer, defaulting to 'fas fa-comments' $appointment_management_post_comments_icon = get_theme_mod( 'appointment_management_post_comments_icon', 'fas fa-comments' ); echo ' ' . esc_html( $appointment_management_comment_text ) . ' '; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped return; } } endif; if ( ! function_exists( 'appointment_management_posted_comments' ) ) : /** * Prints HTML with meta information for the current comment count. */ function appointment_management_posted_comments() { if ( get_theme_mod( 'appointment_management_post_hide_comments', true ) ) { $appointment_management_comment_count = get_comments_number(); $appointment_management_comment_text = sprintf( /* translators: %s: comment count */ _n( '%s Comment', '%s Comments', $appointment_management_comment_count, 'appointment-management' ), number_format_i18n( $appointment_management_comment_count ) ); // Get the custom comments icon from the Customizer, defaulting to 'fas fa-comments' $appointment_management_post_comments_icon = get_theme_mod( 'appointment_management_post_comments_icon', 'fas fa-comments' ); echo ' ' . esc_html( $appointment_management_comment_text ) . ' '; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped return; } } endif; if ( ! function_exists( 'appointment_management_posted_time_single' ) ) : /** * Prints HTML with meta information for the current post time on single posts. */ function appointment_management_posted_time_single() { if ( get_theme_mod( 'appointment_management_single_post_hide_time', true ) ) { // Get the custom post time icon from the Customizer, defaulting to 'fas fa-clock' $appointment_management_post_time_icon = get_theme_mod( 'appointment_management_post_time_icon', 'fas fa-clock' ); $appointment_management_posted_on = sprintf( /* translators: %s: post time */ esc_html__( 'Posted at %s', 'appointment-management' ), '' ); echo ' ' . $appointment_management_posted_on . ''; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped return; } } endif; if ( ! function_exists( 'appointment_management_posted_time' ) ) : /** * Prints HTML with meta information for the current post time. */ function appointment_management_posted_time() { if ( get_theme_mod( 'appointment_management_post_hide_time', true ) ) { // Get the custom post time icon from the Customizer, defaulting to 'fas fa-clock' $appointment_management_post_time_icon = get_theme_mod( 'appointment_management_post_time_icon', 'fas fa-clock' ); $appointment_management_posted_on = sprintf( /* translators: %s: post time */ esc_html__( 'Posted at %s', 'appointment-management' ), '' ); echo ' ' . $appointment_management_posted_on . ''; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped return; } } endif; if ( ! function_exists( 'appointment_management_categories_single_list' ) ) : function appointment_management_categories_single_list( $with_background = false ) { if ( is_singular( 'post' ) ) { $appointment_management_hide_category = get_theme_mod( 'appointment_management_single_post_hide_category', true ); if ( $appointment_management_hide_category ) { $appointment_management_categories = get_the_category(); $appointment_management_separator = ''; $appointment_management_output = ''; if ( ! empty( $appointment_management_categories ) ) { foreach ( $appointment_management_categories as $appointment_management_category ) { $appointment_management_output .= '' . esc_html( $appointment_management_category->name ) . '' . $appointment_management_separator; } echo trim( $appointment_management_output, $appointment_management_separator ); } } } } endif; if ( ! function_exists( 'appointment_management_categories_list' ) ) : function appointment_management_categories_list( $with_background = false ) { $appointment_management_hide_category = get_theme_mod( 'appointment_management_post_hide_category', true ); if ( $appointment_management_hide_category ) { $appointment_management_categories = get_the_category(); $appointment_management_separator = ''; $appointment_management_output = ''; if ( ! empty( $appointment_management_categories ) ) { foreach ( $appointment_management_categories as $appointment_management_category ) { $appointment_management_output .= '' . esc_html( $appointment_management_category->name ) . '' . $appointment_management_separator; } echo trim( $appointment_management_output, $appointment_management_separator ); } } } endif; if ( ! function_exists( 'appointment_management_entry_footer' ) ) : /** * Prints HTML with meta information for the tags and comments. */ function appointment_management_entry_footer() { // Hide category and tag text for pages. if ( 'post' === get_post_type() && is_singular() ) { $appointment_management_hide_tag = get_theme_mod( 'appointment_management_post_hide_tags', true ); if ( $appointment_management_hide_tag ) { /* translators: used between list items, there is a space after the comma */ $appointment_management_tags_list = get_the_tag_list( '', esc_html_x( ', ', 'list item separator', 'appointment-management' ) ); if ( $appointment_management_tags_list ) { /* translators: 1: list of tags. */ printf( '' . esc_html__( 'Tagged %1$s', 'appointment-management' ) . '', $appointment_management_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', 'appointment-management' ), array( 'span' => array( 'class' => array(), ), ) ), wp_kses_post( get_the_title() ) ), '', '' ); } endif; if ( ! function_exists( 'appointment_management_post_thumbnail' ) ) : /** * Display the post thumbnail. */ function appointment_management_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( 'appointment_management_single_post_hide_feature_image', false ) ) { return; } ?>
'; } ?>