Guest User

Untitled

a guest
Feb 17th, 2016
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. function get_author() {
  2. $buffy = '';
  3.  
  4. if (td_util::get_option('tds_p_show_author_name') != 'hide') {
  5. $buffy .= '<div class="td-post-author-name">';
  6. $buffy .= '<a href="' . get_author_posts_url($this->post->post_author) . '">' . get_the_author_meta('display_name', $this->post->post_author) . '</a>' ;
  7. if (td_util::get_option('tds_p_show_author_name') != 'hide' and td_util::get_option('tds_p_show_date') != 'hide') {
  8. $buffy .= ' <span>-</span> ';
  9. }
  10. $buffy .= '</div>';
  11. }
  12. return $buffy;
  13.  
  14. }
  15.  
  16.  
  17. function get_date($show_stars_on_review = true) {
  18. $visibility_class = '';
  19. if (td_util::get_option('tds_p_show_date') == 'hide') {
  20. $visibility_class = ' td-visibility-hidden';
  21. }
  22.  
  23. $buffy = '';
  24.  
  25. if (td_util::get_option('tds_p_show_date') != 'hide') {
  26. $td_article_date_unix = get_the_time('U', $this->post->ID);
  27. $buffy .= '<div class="td-post-date">';
  28. $buffy .= '<time 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>';
  29. $buffy .= '</div>';
  30. }
  31.  
  32. if ($this->is_review and $show_stars_on_review === true) {
  33. //if review show stars
  34. $buffy .= '<div class="entry-review-stars">';
  35. $buffy .= td_review::render_stars($this->td_review);
  36. $buffy .= '</div>';
  37. }
  38.  
  39. return $buffy;
  40. }
Advertisement
Add Comment
Please, Sign In to add comment