%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() ) ); // Translators: %s ia a date. $posted_on = sprintf( esc_html_x( 'Posted on %s', 'post date', 'bootswatch' ), '' . $time_string . '' ); // Translators: %s ia a name. $byline = sprintf( esc_html_x( 'by %s', 'post author', 'bootswatch' ), ' ' ); echo '' . $posted_on . ' '; // WPCS: XSS OK. } endif; if ( ! function_exists( 'bootswatch_posts_navigation' ) ) { /** * Displays pagination. */ function bootswatch_posts_navigation() { $links = paginate_links( [ 'type' => 'array', ] ); if ( $links ) { foreach ( $links as $index => $link ) { $link = '
' . esc_html__( 'Posted in %s', 'bootswatch' ) . '
', $categories_list ); // WPCS: XSS OK. } /* translators: used between list items, there is a space after the comma */ $tags_list = str_replace( 'rel="tag"', 'rel="tag" class="btn btn-primary btn-xs"', get_the_tag_list( '', ' ' ) ); if ( $tags_list ) { // Translators: %s ia a tag name. printf( ' ', $tags_list ); // WPCS: XSS OK. } } if ( bootswatch_can_we_use_comments_popup_link() ) { echo ''; comments_popup_link( esc_html__( 'Leave a comment', 'bootswatch' ), esc_html__( '1 Comment', 'bootswatch' ), esc_html__( '% Comments', 'bootswatch' ) ); echo '
'; } edit_post_link( sprintf( /* translators: %s: Name of current post */ esc_html__( 'Edit %s', 'bootswatch' ), the_title( '"', '"', false ) ) , '' , '
' ); } endif; /** * Prints previous and next posts links. */ function bootswatch_post_navigation() { $replacements = [ '/