Advertisement
jan_dembowski

functions.php for Twenty Eleven child theme

Jan 18th, 2012
459
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. <?php
  2.  
  3. function twentyeleven_posted_on() {
  4. printf( __( '<span class="sep">Posted on </span><time class="entry-date" datetime="%3$s" pubdate>%4$s</time><span class="by-author"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%5$s" title="%6$s" rel="author">%7$s</a></span></span>', 'twentyeleven' ),
  5. esc_url( get_permalink() ),
  6. esc_attr( get_the_time() ),
  7. esc_attr( get_the_date( 'c' ) ),
  8. esc_html( get_the_date() ),
  9. esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
  10. esc_attr( sprintf( __( 'View all posts by %s', 'twentyeleven' ), get_the_author() ) ),
  11. get_the_author()
  12. );
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement