responsive_mobile_post_meta_data

The Responsive Mobile responsive mobile post meta data function.

Description

responsive_mobile_post_meta_data(); 

Usage

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

Defined (1)

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

/includes/functions-template-tags.php  
  1. function responsive_mobile_post_meta_data() { 
  2.  
  3. // Apply filter to get by_line_date option working. 
  4. $by_line_date = apply_filters( 'responsive_mobile_by_line_date', '1' ); 
  5. if( $by_line_date ) { 
  6. printf( 
  7. /** Translators: (Posted on )(Date) */ 
  8. __( '%1$s %2$s', 'responsive-mobile' ),  
  9. '<span class="meta-prep meta-prep-author posted">' . __( 'Posted on', 'responsive-mobile' ) . ' </span>',  
  10. sprintf( 
  11. '<a href="%1$s" title="%2$s" rel="bookmark"><time class="timestamp updated" itemprop="datePublished" datetime="%3$s">%4$s</time></a>',  
  12. esc_url( get_permalink() ),  
  13. esc_attr( get_the_time() ),  
  14. esc_html( get_the_date('c')),  
  15. esc_html( get_the_date() ) 
  16. ); 
  17.  
  18. // Apply filter to get by_line_author option working. 
  19. $by_line_author = apply_filters( 'responsive_mobile_by_line_author', '1' ); 
  20. if( $by_line_author ) { 
  21. printf( 
  22. /** Translators: ( by )(Author) */ 
  23. __( '%1$s %2$s', 'responsive-mobile' ),  
  24. '<span class="byline"> ' . __( 'by', 'responsive-mobile' ) . ' </span>',  
  25. sprintf( 
  26. '<span class="author vcard" itemprop="author" itemscope="itemscope" itemtype="http://schema.org/Person"><a class="url fn n" href="%1$s" title="%2$s" itemprop="url" rel="author"><span itemprop="name">%3$s</span></a></span>',  
  27. get_author_posts_url( get_the_author_meta( 'ID' ) ),  
  28. sprintf( esc_attr__( 'View all posts by %s', 'responsive-mobile' ), get_the_author() ),  
  29. esc_attr( get_the_author() ) 
  30. );