function get_date($show_stars_on_review = true) { $visibility_class = ''; if (td_util::get_option('tds_p_show_date') == 'hide') { $visibility_class = ' td-visibility-hidden'; } $buffy = ''; if (td_review::has_review($this->td_review) and $show_stars_on_review === true) { //if review show stars $buffy .= '<div class="entry-review-stars">'; $buffy .= td_review::render_stars($this->td_review); $buffy .= '</div>'; } else { $td_article_date_unix = get_the_time('U', $this->post->ID); $buffy .= '<time itemprop="dateCreated" class="entry-date updated' . $visibility_class . '" datetime="' . date(DATE_W3C, $td_article_date_unix) . '" >' . get_the_time(get_option('date_format'), $this->post->ID) . '</time>'; $buffy .= '<meta itemprop="interactionCount" content="UserComments:' . get_comments_number($this->post->ID) . '"/>'; } return $buffy; }
function get_review() { if (!$this->is_single) { return; } if (td_review::has_review($this->td_review)) { //print_r($this->td_review); $buffy = ''; $buffy .= td_review::render_table($this->td_review); return $buffy; } }