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_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 ($this->is_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 { if (td_util::get_option('tds_p_show_date') != 'hide') { $td_article_date_unix = get_the_time('U', $this->post->ID); $buffy .= '<div class="td-post-date">'; $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>'; $buffy .= '</div>'; } } return $buffy; }