Advertisement
Guest User

add the date

a guest
Apr 3rd, 2012
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.28 KB | None | 0 0
  1.     <footer class="entry-meta">
  2.         <?php
  3.             /* translators: used between list items, there is a space after the comma */
  4.             $categories_list = get_the_category_list( __( ', ', 'twentyeleven' ) );
  5.  
  6.             /* translators: used between list items, there is a space after the comma */
  7.             $tag_list = get_the_tag_list( '', __( ', ', 'twentyeleven' ) );
  8.             if ( '' != $tag_list ) {
  9.                 $utility_text = __( 'This entry was posted on %7$s in %1$s and tagged %2$s by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' );
  10.             } elseif ( '' != $categories_list ) {
  11.                 $utility_text = __( 'This entry was posted on %7$s in %1$s by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' );
  12.             } else {
  13.                 $utility_text = __( 'This entry was posted on %7$s by <a href="%6$s">%5$s</a>. Bookmark the <a href="%3$s" title="Permalink to %4$s" rel="bookmark">permalink</a>.', 'twentyeleven' );
  14.             }
  15.  
  16.             printf(
  17.                 $utility_text,
  18.                 $categories_list,
  19.                 $tag_list,
  20.                 esc_url( get_permalink() ),
  21.                 the_title_attribute( 'echo=0' ),
  22.                 get_the_author(),
  23.                 esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
  24.                 esc_html( get_the_date() )
  25.             );
  26.         ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement