Advertisement
grappler

Posted on translatable

Feb 16th, 2013
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.75 KB | None | 0 0
  1. if (!function_exists('responsive_post_meta_data')) :
  2.  
  3. function responsive_post_meta_data() {
  4.  
  5.     printf( __( '<span class="%1$s">Posted on </span>%2$s<span class="%3$s"> by </span>%4$s', 'responsive' ),
  6.  
  7.     'meta-prep meta-prep-author posted',
  8.  
  9.     sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><span class="timestamp">%3$s</span></a>',
  10.  
  11.         get_permalink(),
  12.  
  13.         esc_attr( get_the_time() ),
  14.  
  15.         get_the_date( __('F j, Y', 'text-domain'))
  16.  
  17.     ),
  18.  
  19.     'byline',
  20.  
  21.     sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s">%3$s</a></span>',
  22.  
  23.         get_author_posts_url( get_the_author_meta( 'ID' ) ),
  24.  
  25.         sprintf( esc_attr__( 'View all posts by %s', 'responsive' ), get_the_author() ),
  26.  
  27.         get_the_author()
  28.  
  29.         )
  30.  
  31.     );
  32.  
  33. }
  34.  
  35. endif;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement