%2$s', esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_html( get_the_author() ) ), jgtbloginn_entry_date() ); } elseif ( 'attachment' === get_post_type() ) { printf( esc_html__( 'On %s', 'bloginn' ), jgtbloginn_entry_date() ); } if ( comments_open() || get_comments_number() ) { echo ''; comments_popup_link( esc_html__( 'Leave a Reply', 'bloginn' ), esc_html__( '1 Reply', 'bloginn' ), esc_html__( '% Replies', 'bloginn' ) ); echo ''; } } endif; if ( ! function_exists( 'jgtbloginn_posted_in' ) ) : /** * Print HTML with meta information for the current post category and tag. */ function jgtbloginn_posted_in() { if ( 'post' === get_post_type() ) { echo ''; } elseif ( 'attachment' === get_post_type() ) { previous_post_link( '', '%title' ); } } endif; if ( ! function_exists( 'jgtbloginn_entry_date' ) ) : /** * Prints HTML with date information for the current post. */ function jgtbloginn_entry_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( DATE_W3C ) ), get_the_date(), esc_attr( get_the_modified_date( DATE_W3C ) ), get_the_modified_date() ); return $time_string; } endif; if ( ! function_exists( 'jgtbloginn_post_thumbnail' ) ) : /** * Display an optional post thumbnail. */ function jgtbloginn_post_thumbnail() { if ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) return; if ( is_singular() ) : ?>
get_the_title() ) ); ?> %2$s', esc_url( get_permalink( get_the_ID() ) ), esc_html__( 'Read More', 'bloginn' ) ); return ' … ' . $link; } add_filter( 'excerpt_more', 'jgtbloginn_excerpt_more' ); endif; if ( ! function_exists( 'jgtbloginn_excerpt_length' ) ) : /** * Change the excerpt length. */ function jgtbloginn_excerpt_length( $length ) { return get_theme_mod( 'jgtbloginn_excerpt_length', 55 ); } add_filter( 'excerpt_length', 'jgtbloginn_excerpt_length' ); endif; /** * Wrap "Read more" link */ function jgtbloginn_wrap_more_link( $more ) { return '' . $more . ''; } add_filter( 'the_content_more_link','jgtbloginn_wrap_more_link' ); if ( ! function_exists( 'jgtbloginn_loop_navigation' ) ) : /** * Display navigation to next/previous set of posts when applicable. */ function jgtbloginn_loop_navigation() { the_posts_pagination( array( 'prev_text' => '' . esc_html__( 'Previous', 'bloginn' ) . '', 'next_text' => '' . esc_html__( 'Next', 'bloginn' ) . '', 'before_page_number' => '' . esc_html__( 'Page', 'bloginn' ) . ' ' ) ); } endif;