%2$s'; if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { $time_string = ''; } $time_string = sprintf( $time_string, esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ), esc_attr( get_the_modified_date( 'c' ) ), esc_html( get_the_modified_date() ) ); $posted_on = sprintf( '' . $time_string . '' ); $byline = sprintf( esc_html_x( 'by %s', 'post author', 'deejay' ), '' . esc_html( get_the_author() ) . '' ); echo $posted_on . ' ' . $byline; // WPCS: XSS OK. } } if ( ! function_exists( 'deejay_entry_footer' ) ) { /** * Prints HTML with meta information for the categories, tags and comments. */ function deejay_entry_footer() { // Hide category and tag text for pages. // Icons representing text needs to have a fallback for screen readers. if ( 'post' === get_post_type() ) { $categories_list = get_the_category_list( '·' ); if ( $categories_list ) { echo '' . esc_html__( 'Categories: ', 'deejay' ) . $categories_list . ''; // WPCS: XSS OK. } $tags_list = get_the_tag_list( '', '·' ); if ( $tags_list ) { echo '' . esc_html__( 'Tags: ', 'deejay' ) . $tags_list . ''; // WPCS: XSS OK. } } /* Display Jetpack's share if it's active. */ if ( function_exists( 'sharing_display' ) ) { echo sharing_display(); } /* Display Jetpack's like if it's active. */ if ( class_exists( 'Jetpack_Likes' ) ) { $deejay_custom_likes = new Jetpack_Likes; echo $deejay_custom_likes->post_likes( '' ); } /* Display Jetpack's related posts if it's active. */ if ( class_exists( 'Jetpack_RelatedPosts' ) ) { echo do_shortcode( '[jetpack-related-posts]' ); } } } if ( ! function_exists( 'deejay_post_title' ) ) { /** * Add a title to posts that are missing titles. */ function deejay_post_title( $title ) { if ( $title == '' ) { return esc_html__( '(Untitled)', 'deejay' ); } else { return $title; } } add_filter( 'the_title', 'deejay_post_title' ); } /** * Add screen reader text to the image attachment navigation. */ if ( ! function_exists( 'deejay_prev_img_nav' ) ) { function deejay_prev_img_nav( $img_link ) { return str_replace( '', '' . esc_html__( 'Previous image', 'deejay' ) . '', $img_link ); } add_filter( 'previous_image_link', 'deejay_prev_img_nav' ); } if ( ! function_exists( 'deejay_next_img_nav' ) ) { function deejay_next_img_nav( $img_link ) { return str_replace( '', '' . esc_html__( 'Next image', 'deejay' ) . '', $img_link ); } add_filter( 'next_image_link', 'deejay_next_img_nav' ); }