Guest User

Untitled

a guest
Jun 23rd, 2015
272
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 KB | None | 0 0
  1. function get_author() {
  2. $buffy = '';
  3.  
  4.  
  5. if (td_util::get_option('tds_p_show_author_name') != 'hide') {
  6. $buffy .= '<div class="td-post-author-name">';
  7. $buffy .= '<a itemprop="author" href="' . get_author_posts_url($this->post->post_author) . '">' . get_the_author_meta('display_name', $this->post->post_author) . '</a>' ;
  8. if (td_util::get_option('tds_p_show_author_name') != 'hide' and td_util::get_option('tds_p_show_date') != 'hide') {
  9. $buffy .= ' <span>-</span> ';
  10. }
  11. $buffy .= '</div>';
  12. }
  13.  
  14.  
  15. return $buffy;
  16.  
  17. }
  18.  
  19.  
  20. function get_date($show_stars_on_review = true) {
  21. $visibility_class = '';
  22. if (td_util::get_option('tds_p_show_date') == 'hide') {
  23. $visibility_class = ' td-visibility-hidden';
  24. }
  25.  
  26. $buffy = '';
  27.  
  28. if (td_util::get_option('tds_p_show_date') != 'hide') {
  29. $td_article_date_unix = get_the_time('U', $this->post->ID);
  30. $buffy .= '<div class="td-post-date">';
  31. $buffy .= '<time itemprop="dateCreated" class="entry-date updated td-module-date' . $visibility_class . '" datetime="' . date(DATE_W3C, $td_article_date_unix) . '" >' . get_the_time(get_option('date_format'), $this->post->ID) . '</time>';
  32. $buffy .= '<meta itemprop="interactionCount" content="UserComments:' . get_comments_number($this->post->ID) . '"/>';
  33. $buffy .= '</div>';
  34. }
  35.  
  36.  
  37. return $buffy;
  38. }
Advertisement
Add Comment
Please, Sign In to add comment