Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function get_date($show_stars_on_review = true) {
- $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 {
- $visibility_class = '';
- if (td_util::get_option('tds_p_show_date') == 'hide' && !in_category('your category slug', $this->post)) {
- $visibility_class = ' td-visibility-hidden';
- }
- $td_article_date_unix = get_the_time('U', $this->post->ID);
- $buffy .= '<div class="td-post-date">';
- $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>';
- $buffy .= '<meta itemprop="interactionCount" content="UserComments:' . get_comments_number($this->post->ID) . '"/>';
- $buffy .= '</div>';
- }
- return $buffy;
- }
Advertisement
Add Comment
Please, Sign In to add comment