Advertisement
Guest User

Untitled

a guest
Jul 25th, 2014
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. <section class="comment-content comment">
  2. <?php comment_text(); ?>
  3. <?php edit_comment_link( __( 'Edit', 'techism' ), '<p class="edit-link">', '</p>' ); ?>
  4. </section><!-- .comment-content -->
  5.  
  6. <div class="reply">
  7. <?php comment_reply_link( array_merge( $args, array( 'reply_text' => __( 'Reply', 'techism' ), 'after' => ' <span>&darr;</span>', 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
  8. </div><!-- .reply -->
  9. </article><!-- #comment-## -->
  10. <?php
  11. break;
  12. endswitch; // end comment_type check
  13.  
  14. // Translators: used between list items, there is a space after the comma.
  15. $tag_list = get_the_tag_list( '', __( ', ', 'techism' ) );
  16.  
  17. $date = sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a>',
  18. esc_url( get_permalink() ),
  19. esc_attr( get_the_time() ),
  20. esc_attr( get_the_date( 'c' ) ),
  21. esc_html( get_the_date() )
  22. );
  23.  
  24. $author = sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s" rel="author">%3$s</a></span>',
  25. esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
  26. esc_attr( sprintf( __( 'View all posts by %s', 'techism' ), get_the_author() ) ),
  27. get_the_author()
  28. );
  29.  
  30. // Translators: 1 is category, 2 is tag, 3 is the date and 4 is the author's name.
  31. if ( $tag_list ) {
  32. $utility_text = __( 'This entry was posted in %1$s and tagged %2$s on %3$s<span class="by-author"> by %4$s</span>.', 'techism' );
  33. } elseif ( $categories_list ) {
  34. $utility_text = __( 'This entry was posted in %1$s on %3$s<span class="by-author"> by %4$s</span>.', 'techism' );
  35. } else {
  36. $utility_text = __( 'This entry was posted on %3$s<span class="by-author"> by %4$s</span>.', 'techism' );
  37. }
  38.  
  39. printf(
  40. $utility_text,
  41. $categories_list,
  42. $tag_list,
  43. $date,
  44. $author
  45. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement