%4$s'; }else{ $time_string = ''; } }else{ $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() ) ); $posted_on = sprintf( '%1$s', '' . $time_string . '' ); echo '' . $posted_on . ''; // WPCS: XSS OK. } endif; if ( ! function_exists( 'blossom_pin_posted_by' ) ) : /** * Prints HTML with meta information for the current author. */ function blossom_pin_posted_by() { $byline = sprintf( /* translators: %s: post author. */ esc_html_x( 'by %s', 'post author', 'blossom-pin' ), '' . esc_html( get_the_author() ) . '' ); echo ''; } endif; if( ! function_exists( 'blossom_pin_comment_count' ) ) : /** * Comment Count */ function blossom_pin_comment_count(){ if ( ! post_password_required() && ( comments_open() || get_comments_number() ) ) { echo ''; comments_popup_link( sprintf( wp_kses( /* translators: %s: post title */ __( 'Leave a Comment on %s', 'blossom-pin' ), array( 'span' => array( 'class' => array(), ), ) ), get_the_title() ) ); echo ''; } } endif; if ( ! function_exists( 'blossom_pin_category' ) ) : /** * Prints categories */ function blossom_pin_category(){ // 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__( ' ','blossom-pin' ) ); if ( $categories_list ) { echo '' . $categories_list . ''; } } } endif; if ( ! function_exists( 'blossom_pin_tag' ) ) : /** * Prints tags */ function blossom_pin_tag(){ // Hide category and tag text for pages. if ( 'post' === get_post_type() ) { /* translators: used between list items, there is a space after the comma */ $tags_list = get_the_tag_list( '', esc_html_x( ' ', 'list item separator', 'blossom-pin' ) ); if ( $tags_list ) { /* translators: 1: list of tags. */ printf( '
', '', '', $tags_list ); } } } endif; if( ! function_exists( 'blossom_pin_get_posts_list' ) ) : /** * Returns Latest, Related & Popular Posts */ function blossom_pin_get_posts_list( $status ){ global $post; $args = array( 'post_type' => 'post', 'posts_status' => 'publish', 'ignore_sticky_posts' => true ); switch( $status ){ case 'latest': $args['posts_per_page'] = 3; $title = __( 'Recommended Articles', 'blossom-pin' ); $class = 'recommended-post'; $image_size = 'blossom-pin-related'; break; case 'related': $args['posts_per_page'] = 3; $args['post__not_in'] = array( $post->ID ); $args['orderby'] = 'rand'; $title = get_theme_mod( 'related_post_title', __( 'Recommended Articles', 'blossom-pin' ) ); $class = 'recommended-post'; $image_size = 'blossom-pin-related'; $cats = get_the_category( $post->ID ); if( $cats ){ $c = array(); foreach( $cats as $cat ){ $c[] = $cat->term_id; } $args['category__in'] = $c; } break; } $qry = new WP_Query( $args ); if( $qry->have_posts() ){ ?>
%s says:', 'blossom-pin' ), get_comment_author_link() ); ?>