Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * This function prints post meta data.
- *
- * Ulrich Pogson Contribution
- *
- */
- if (!function_exists('responsive_post_meta_data')) :
- function responsive_post_meta_data() {
- $time_string = ( get_the_time( 'U' ) == get_the_modified_time( 'U' ) )
- ? '<span class="timestamp updated" datetime="%3$s">%4$s</span>'
- : '<span class="timestamp updated" datetime="%5$s">%6$s</span>';
- printf( __( '<span class="%1$s">Posted on </span>%2$s<span class="%3$s"> by </span>%4$s', 'responsive' ),
- 'meta-prep meta-prep-author posted',
- sprintf( '<a href="%1$s" title="%2$s" rel="bookmark">' . $time_string . '</a>',
- esc_url( get_permalink() ),
- esc_attr( get_the_time() ),
- 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',
- sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>',
- get_author_posts_url( get_the_author_meta( 'ID' ) ),
- sprintf( esc_attr__( 'View all posts by %s', 'responsive' ), get_the_author() ),
- esc_attr( get_the_author() )
- )
- );
- }
- endif;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement