';
echo '' . "\n";
if ( empty( $retina_id ) ):
echo '' . "\n";
else :
echo '
' . "\n";
endif;
echo '' . "\n";
echo '' . "\n";
// If not, then display the Site Title and Site Description.
else :
if ( is_front_page() && is_home() ) :
echo '
' . esc_attr( get_bloginfo( 'name' ) ) . '
'. "\n"; endif; endif; } endif; if ( ! function_exists( 'astroride_posted_on' ) ) : /** * Prints HTML with meta information for the current post-date/time. */ function astroride_posted_on() { $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 ) ), esc_html( get_the_date( 'M d, Y' ) ), esc_attr( get_the_modified_date( DATE_W3C ) ), esc_html( get_the_modified_date() ) ); $posted_on = '%3$s'; $posted_on = sprintf( $posted_on, esc_html__( 'Published', 'astroride' ), esc_url( get_permalink() ), $time_string ); echo '' . $posted_on . ''; // WPCS: XSS OK. } endif; if ( ! function_exists( 'astroride_posted_by' ) ) : /** * Prints HTML with meta information for the current author. */ function astroride_posted_by() { $avatar = get_avatar( get_the_author_meta( 'ID' ), 35 ); $byline = ''; $byline = sprintf( $byline, esc_html__( 'Author', 'astroride' ), esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_html( get_the_author() ) ); $author = ''; $author = sprintf( $author, $avatar, $byline ); echo ''; // WPCS: XSS OK. } endif; if ( ! function_exists( 'astroride_post_category' ) ) : /** * Prints HTML with meta information for the current categories. */ function astroride_post_category() { // Hide category for pages. if ( 'post' !== get_post_type() ) { return; } /* translators: used between list items, there is a space after the comma */ $categories_list = get_the_category_list( esc_html__( ', ', 'astroride' ) ); if ( $categories_list ) { $post_categories = '%2$s'; $post_categories = sprintf( $post_categories, esc_html__( 'Categories', 'astroride' ), $categories_list ); echo '' . $post_categories . ''; // WPCS: XSS OK. } } endif; if ( ! function_exists( 'astroride_post_tags' ) ) : /** * Prints HTML with meta information for the current tags. */ function astroride_post_tags() { // Hide category for pages. if ( 'post' !== get_post_type() ) { return; } /* translators: used between list items, there is a space after the comma */ $tags_list = get_the_tag_list( '', esc_html_x( ', ', 'list item separator', 'astroride' ) ); if ( $tags_list ) { echo ''; // WPCS: XSS OK. } } endif; if ( ! function_exists( 'astroride_post_readmore' ) ) : /** * Prints HTML with meta information for post readmore link. */ function astroride_post_readmore() { $readmore = sprintf( esc_html__( 'Continue Reading', 'astroride' ) ); echo '' . $readmore . ''; } endif; if ( ! function_exists( 'astroride_entry_footer' ) ) : /** * Prints HTML with meta information for the categories, tags and comments. */ function astroride_entry_footer() { if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) { echo ''; comments_popup_link( sprintf( wp_kses( /* translators: %s: post title */ __( 'Leave a Comment on %s', 'astroride' ), array( 'span' => array( 'class' => array(), ), ) ), get_the_title() ) ); echo ''; } } endif; if ( ! function_exists( 'astroride_post_thumbnail' ) ) : /** * Displays an optional post thumbnail. * * Wraps the post thumbnail in an anchor element on index views, or a div * element when on single views. */ function astroride_post_thumbnail( $size = 'medium' ) { if ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) { return; } if ( is_singular() ) : ?>