%1$s%3$s', sprintf( '%s ', _x( 'Format', 'Used before post format.', 'techsmart' ) ), esc_url( get_post_format_link( $format ) ), get_post_format_string( $format ) ); } if ( 'post' === get_post_type() ) { techsmart_entry_taxonomies(); } if ( ! is_singular() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) { echo ''; comments_popup_link( sprintf( __( 'Leave a comment on %s', 'techsmart' ), get_the_title() ) ); echo ''; } } endif; if ( ! function_exists( 'techsmart_entry_date' ) ) : /** * Prints HTML with date information for current post. * * Create your own techsmart_entry_date() function to override in a child theme. */ function techsmart_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( 'c' ) ), get_the_date(), esc_attr( get_the_modified_date( 'c' ) ), get_the_modified_date() ); printf( '%1$s %3$s', _x( 'Posted on', 'Used before publish date.', 'techsmart' ), esc_url( get_permalink() ), $time_string ); } endif; if ( ! function_exists( 'techsmart_entry_date_homepage' ) ) : /** * Prints HTML with date information for homepage posts. * * Create your own techsmart_entry_date() function to override in a child theme. */ function techsmart_entry_date_homepage( $id ) { $time_string = ''; $time_string = sprintf( $time_string, esc_attr( get_the_date( '', $id ) ), esc_html(get_the_date( '', $id ) ) ); printf( '%1$s %2$s', _x( 'Posted on', 'Used before publish date.', 'techsmart' ), $time_string ); } endif; if ( ! function_exists( 'techsmart_entry_taxonomies' ) ) : /** * Prints HTML with category and tags for current post. * * Create your own techsmart_entry_taxonomies() function to override in a child theme. */ function techsmart_entry_taxonomies() { $categories_list = get_the_category_list( _x( ', ', 'Used between list items, there is a space after the comma.', 'techsmart' ) ); if ( $categories_list && techsmart_categorized_blog() ) { printf( '%1$s %2$s', _x( 'Categories', 'Used before category names.', 'techsmart' ), $categories_list ); } $tags_list = get_the_tag_list( '', _x( ', ', 'Used between list items, there is a space after the comma.', 'techsmart' ) ); if ( $tags_list ) { printf( ' ', _x( 'Tags', 'Used before tag names.', 'techsmart' ), $tags_list ); } } endif; if ( ! function_exists( 'techsmart_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. * * Create your own techsmart_post_thumbnail() function to override in a child theme. */ function techsmart_post_thumbnail() { if ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) { return; } if ( is_singular() ) : ?>