%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() ) ); $posted_on = '' . $time_string . ''; $byline = sprintf( '' . esc_html_x( '%s', 'post author', 'authorpreneur' ), '' . esc_html( get_the_author() ) . '' ); echo '' . $posted_on . ' ' . $byline . ''; // WPCS: XSS OK. $categories_list = get_the_category_list( esc_html__( ', ', 'authorpreneur' ) ); if ( $categories_list ) { echo '' . $categories_list . ''; } } endif; if ( ! function_exists( 'authorpreneur_posted_on_new' ) ) : /** * Prints HTML with meta information for the current post-date/time and author. */ function authorpreneur_posted_on_new() { $categories_list = get_the_category_list( esc_html__( ', ', 'authorpreneur' ) ); if ( $categories_list ) { echo '' . $categories_list . ''; } $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' ) ), esc_html( get_the_date() ), esc_attr( get_the_modified_date( 'c' ) ), esc_html( get_the_modified_date() ) ); $posted_on = '' . $time_string . ''; echo '' . $posted_on . ''; // WPCS: XSS OK. } endif; if ( ! function_exists( 'authorpreneur_entry_footer' ) ) : /** * Prints HTML with meta information for the categories, tags and comments. */ function authorpreneur_entry_footer() { // Hide category and tag text for pages. if ( 'post' === get_post_type() ) { echo "
"; $byline = '' . esc_html( get_the_author() ) . ''; $categories_list = get_the_category_list( esc_html__( ', ', 'authorpreneur' ) ); echo "Posted By".$byline.''; if ( $categories_list ) { echo 'Posted In' . $categories_list . ''; } $tags_list = get_the_tag_list( '', esc_html_x( ', ', 'list item separator', 'authorpreneur' ) ); if ( $tags_list ) { /* translators: 1: list of tags. */ printf( '' . esc_html__( 'Tagged %1$s', 'authorpreneur' ) . '', $tags_list ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } echo "
"; } } endif; add_filter('loop_shop_columns', 'loop_columns', 999); if (!function_exists('loop_columns')) { function loop_columns() { return 4; // 3 products per row } }