onetone_posted_on

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

Description

onetone_posted_on(); 

Usage

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

Defined (1)

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

/includes/theme-functions.php  
  1. function onetone_posted_on() { 
  2.  
  3. $return = ''; 
  4. $display_post_meta = onetone_option('display_post_meta', 'yes'); 
  5.  
  6. if( $display_post_meta == 'yes' ) { 
  7.  
  8. $display_meta_author = onetone_option('display_meta_author', 'yes'); 
  9. $display_meta_date = onetone_option('display_meta_date', 'yes'); 
  10. $display_meta_categories = onetone_option('display_meta_categories', 'yes'); 
  11. $display_meta_comments = onetone_option('display_meta_comments', 'yes'); 
  12. $display_meta_readmore = onetone_option('display_meta_readmore', 'yes'); 
  13. $display_meta_tags = onetone_option('display_meta_tags', 'yes'); 
  14.  
  15.  
  16. $return .= '<ul class="entry-meta">'; 
  17. if( $display_meta_date == 'yes' ) 
  18. $return .= '<li class="entry-date"><i class="fa fa-calendar"></i>'. get_the_date( ).'</li>'; 
  19. if( $display_meta_author == 'yes' ) 
  20. $return .= '<li class="entry-author"><i class="fa fa-user"></i>'.get_the_author_link().'</li>'; 
  21. if( $display_meta_categories == 'yes' )  
  22. $return .= '<li class="entry-catagory"><i class="fa fa-file-o"></i>'.get_the_category_list(', ').'</li>'; 
  23. if( $display_meta_comments == 'yes' )  
  24. $return .= '<li class="entry-comments pull-right">'.onetone_get_comments_popup_link('', __( '<i class="fa fa-comment"></i> 1 ', 'onetone'), __( '<i class="fa fa-comment"></i> % ', 'onetone'), 'read-comments', '').'</li>'; 
  25. $return .= '</ul>'; 
  26.  
  27. echo $return; 
  28.