Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Prints HTML with meta information for the current post-date/time and author.
- */
- function stag_posted_on() {
- $author = get_the_author();
- if( $author == '' ) {
- global $wp_query;
- $authordata = $GLOBALS['authordata'] = get_userdata( $wp_query->post->post_author );
- $author = $authordata->display_name;
- }
- printf( __( '<span class="posted-on">%1$s</span><span class="byline">%2$s</span>', 'stag' ),
- sprintf( '<a href="%1$s" title="%2$s" rel="bookmark">%3$s</a>',
- esc_url( get_permalink() ),
- esc_attr( get_the_time() ),
- $time_string
- ),
- sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s">%2$s</a></span><span class="author vcard"><a class="url fn n" href=""></a></span>',
- esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
- esc_html( $author )
- ),
- stag_post_reading_time()
- );
- }
- endif; // ends check for stag_posted_on()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement