Guest User

Untitled

a guest
Jul 1st, 2015
304
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. function get_date($show_stars_on_review = true) {
  2. $buffy = '';
  3. if (td_review::has_review($this->td_review) and $show_stars_on_review === true) {
  4. //if review show stars
  5. $buffy .= '<div class="entry-review-stars">';
  6. $buffy .= td_review::render_stars($this->td_review);
  7. $buffy .= '</div>';
  8. } else {
  9. $visibility_class = '';
  10. if (td_util::get_option('tds_p_show_date') == 'hide' && !in_category('your category slug', $this->post)) {
  11. $visibility_class = ' td-visibility-hidden';
  12. }
  13. $td_article_date_unix = get_the_time('U', $this->post->ID);
  14. $buffy .= '<div class="td-post-date">';
  15. $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>';
  16. $buffy .= '<meta itemprop="interactionCount" content="UserComments:' . get_comments_number($this->post->ID) . '"/>';
  17. $buffy .= '</div>';
  18. }
  19. return $buffy;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment