%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( _x( '%s', 'post date', 'clean-gallery' ), '' . $time_string . '  ' ); echo '' . $posted_on . ''; } endif; if ( ! function_exists( 'cleangallery_post_comments' ) ) : /** * Prints HTML with meta information for the comments. */ function cleangallery_post_comments() { if ( comments_open() ) { echo ' '; comments_popup_link( __( 'Leave a comment', 'clean-gallery' ), __( '1 Comment', 'clean-gallery' ), __( '% Comments', 'clean-gallery' ) ); echo ''; } } endif; /** * Post meta, navigations, site titles functions * * @package Clean Gallery */ // Display Post Meta if ( ! function_exists( 'cleangallery_posted_on' ) ) : function cleangallery_posted_on() { $posted_on = sprintf( _x( ' Posted on ', 'post date', 'clean-gallery' ), esc_url( get_permalink() ), esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ) ); $byline = sprintf( _x( ' by ', 'post author', 'clean-gallery' ), esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_html( get_the_author() ) ); echo '' . $posted_on . ' ' . $byline . ''; if ( comments_open() ) { echo ' '; comments_popup_link( __( 'Leave a comment', 'clean-gallery' ), __( '1 Comment', 'clean-gallery' ), __( '% Comments', 'clean-gallery' ) ); echo ''; } } endif; if ( ! function_exists( 'cleangallery_entry_footer' ) ) : function cleangallery_entry_footer() { if ( 'post' == get_post_type() ) { $categories_list = get_the_category_list( ', ' ); if ( $categories_list ) { printf( '' . __( ' Posted in %1$s', 'clean-gallery' ) . '', $categories_list ); } $tags_list = get_the_tag_list( '', __( ', ', 'clean-gallery' ) ); if ( $tags_list ) { printf( '' . __( ' Tagged %1$s', 'clean-gallery' ) . '', $tags_list ); } } edit_post_link( __( 'Edit', 'clean-gallery' ), ' ', '' ); } endif; if ( ! function_exists( 'cleangallery_wp_pagenavi' ) ) : function cleangallery_wp_pagenavi() { ?> __( '← Older posts', 'clean-gallery' ), 'next_text' => __( 'Newer posts →', 'clean-gallery' ))); } } endif; ?>