' . get_the_title() . '' ) ); $more = sprintf( '
', esc_url( get_permalink() ), get_the_ID(), $text ); return $more; } add_filter( 'the_content_more_link', 'business_lander_content_more' ); /** * Prints HTML with meta information for the current post-date/time. */ function business_lander_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( 'c' ) ), esc_html( get_the_date() ), esc_attr( get_the_modified_date( 'c' ) ), esc_html( get_the_modified_date() ) ); $byline = ''; echo '' . $time_string . ''; // WPCS: XSS OK. } /** * Prints HTML with meta information for author */ function business_lander_show_author() { $author_name = get_the_author(); echo ''; } /** * Prints HTML with meta information for the categories, tags and comments. */ function business_lander_entry_footer() { // 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__( ', ', 'business-lander' ) ); if ( $categories_list ) { /* translators: 1: list of categories. */ printf( '' . esc_html__( '%1$s', 'business-lander' ) . '', $categories_list ); // WPCS: XSS OK. } /* translators: used between list items, there is a space after the comma */ $tags_list = get_the_tag_list( '', esc_html_x( ', ', 'list item separator', 'business-lander' ) ); if ( $tags_list ) { /* translators: 1: list of tags. */ printf( '' . esc_html__( '%1$s', 'business-lander' ) . '', $tags_list ); // WPCS: XSS OK. } } }