%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' ), '' . esc_html( get_the_author() ) . '' ); echo '' . $posted_on . ' ' . $byline . ''; // 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 = '
  • ' . $link . '
  • '; $link = str_replace( "
  • ", '
  • ', $link ); $link = str_replace( '
  • ', '', $link ); $links[ $index ] = $link; } echo ''; // XSS OK. } } } if ( ! function_exists( 'bootswatch_entry_footer' ) ) : /** * Prints HTML with meta information for the categories, tags and comments. */ function bootswatch_entry_footer() { // Hide category and tag text for pages. if ( 'post' === get_post_type() ) { /* translators: used between list items, there is a space after the comma */ $categories_list = get_the_category_list( esc_html__( ', ', 'bootswatch' ) ); if ( $categories_list && bootswatch_categorized_blog() ) { // Translators: %s ia a category name. printf( '', $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 ''; } 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 = [ '/