Advertisement
alchymyth

twenty eleven posted on without author

Oct 31st, 2011
992
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.53 KB | None | 0 0
  1. /**
  2.  * Prints HTML with meta information for the current post-date/time and author.
  3.  * Create your own twentyeleven_posted_on to override in a child theme
  4.  *
  5.  * @since Twenty Eleven 1.0
  6.  */
  7. function twentyeleven_posted_on() {
  8.     printf( __( '<span class="sep">Posted on </span><a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s" pubdate>%4$s</time></a>', 'twentyeleven' ),
  9.         esc_url( get_permalink() ),
  10.         esc_attr( get_the_time() ),
  11.         esc_attr( get_the_date( 'c' ) ),
  12.         esc_html( get_the_date() )
  13.     );
  14. }
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement