Advertisement
Happyworker

Comment code

May 11th, 2011
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. function twentyten_posted_on() {
  2. $comment_number_addon = (is_single() || is_home()) ? ', %4$s' : '';
  3. printf( __( '%2$s' , 'twentyten' ).$comment_number_addon,
  4. 'meta-prep meta-prep-author',
  5. sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><span class="entry-date">%3$s</span></a>',
  6. get_bloginfo('wpurl').'/'.get_the_date('Y/m'),
  7. esc_attr( get_the_time() ),
  8. get_the_date()
  9. ),
  10. sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>',
  11. get_author_posts_url( get_the_author_meta( 'ID' ) ),
  12. sprintf( esc_attr__( 'View all posts by %s', 'twentyten' ), get_the_author() ),
  13. get_the_author()
  14. ),
  15. sprintf( '<span class="meta-comment-count"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>',
  16. '#comments', // use #comments to jump to top of comments; use #respond to jump to comment form
  17. 'jump to comments', // link alt text
  18. (get_comments_number() != 1) ? get_comments_number().' comments' : get_comments_number().' comment' // comments number
  19. )
  20. );
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement