Guest User

Untitled

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