twentyeleven_posted_on

Print HTML with meta information for the current post-date/time and author.

Description

twentyeleven_posted_on(); 

Create your own twentyeleven_posted_on to override in a child theme


Usage

  1. if ( !function_exists( 'twentyeleven_posted_on' ) ) { 
  2. require_once '/functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = twentyeleven_posted_on(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/functions.php  
  1. function twentyeleven_posted_on() { 
  2. printf( __( '<span class="sep">Posted on </span><a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s" pubdate>%4$s</time></a><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' ),  
  3. esc_url( get_permalink() ),  
  4. esc_attr( get_the_time() ),  
  5. esc_attr( get_the_date( 'c' ) ),  
  6. esc_html( get_the_date() ),  
  7. esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),  
  8. sprintf( esc_attr__( 'View all posts by %s', 'twentyeleven' ), get_the_author() ),  
  9. esc_html( get_the_author() ) 
  10. );