*/ if ( ! function_exists( 'clean_gallery_posted_date' ) ) : /** * Prints HTML with meta information for the current post-date. */ function clean_gallery_posted_date() { $time_string = ''; 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( /* translators: %s: post date. */ _x( 'Posted on %s', 'post date', 'clean-gallery' ), '' . $time_string . '  ' ); if ( !(clean_gallery_get_option('hide_posted_date')) ) { echo '' . $posted_on . ''; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } } endif; if ( ! function_exists( 'clean_gallery_post_comments' ) ) : /** * Prints HTML with meta information for the comments. */ function clean_gallery_post_comments() { if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) { echo ' '; comments_popup_link( sprintf( wp_kses( /* translators: %s: post title */ __( 'Leave a Comment on %s', 'clean-gallery' ), array( 'span' => array( 'class' => array(), ), ) ), get_the_title() ) ); echo ''; } } endif; if ( ! function_exists( 'clean_gallery_single_postmeta' ) ) : function clean_gallery_single_postmeta() { ?>
Posted on ', 'post date', 'clean-gallery' ), esc_url( get_permalink() ), esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ) ); $byline = sprintf( /* translators: %s: post author. */ _x( ' by ', 'post author', 'clean-gallery' ), esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_html( get_the_author() ) ); if ( !(clean_gallery_get_option('hide_posted_date')) ) { echo '' . $posted_on . ''; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } if ( !(clean_gallery_get_option('hide_post_author')) ) { echo ' ' . $byline . ''; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } if ( !(clean_gallery_get_option('hide_comments_link')) ) { if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) { echo ' '; comments_popup_link( sprintf( wp_kses( /* translators: %s: post title */ __( 'Leave a Comment on %s', 'clean-gallery' ), array( 'span' => array( 'class' => array(), ), ) ), get_the_title() ) ); echo ''; } } ?>
' . __( ' Posted in %1$s', 'clean-gallery' ) . '', $categories_list ); /* phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped */ } } if ( !(clean_gallery_get_option('hide_post_tags')) ) { /* translators: used between list items, there is a space after the comma */ $tags_list = get_the_tag_list( '', esc_html_x( ', ', 'list item separator', 'clean-gallery' ) ); if ( $tags_list ) { /* translators: 1: list of tags. */ printf( '' . __( ' Tagged %1$s', 'clean-gallery' ) . '', $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', 'clean-gallery' ), array( 'span' => array( 'class' => array(), ), ) ), get_the_title() ), '   ', '' ); } endif;