Advertisement
grappler

Posted functions

Sep 11th, 2012
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.88 KB | None | 0 0
  1. if ( ! function_exists( 'responsive_post_meta_data' ) ) :
  2. /**
  3.  * This function prints post meta data.
  4.  *
  5.  * Adopted from Twenty Eleven
  6.  */
  7. function responsive_post_meta_data() {
  8.     printf( __( '<span class="posted">%1$s </span><a href="%2$s" title="%3$s" rel="bookmark"><span class="timestamp" "%4$s">%5$s</span></a><span class="byline">  %6$s  <span class="author vcard"><a class="url fn n" href="%7$s" title="%8$s" rel="author">%9$s</a></span></span>', 'responsive' ),
  9.         esc_attr( sprintf( __( 'Posted on', 'responsive' ) ) ),
  10.         esc_url( get_permalink() ),
  11.         esc_attr( get_the_time() ),
  12.         esc_attr( get_the_date( 'c' ) ),
  13.         esc_html( get_the_date() ),
  14.         esc_attr( sprintf( __( 'by', 'responsive' ) ) ),
  15.         esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
  16.         esc_attr( sprintf( __( 'View all posts by %s', 'responsive' ), get_the_author() ) ),
  17.         get_the_author()
  18.     );
  19. }
  20. endif;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement