Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function get_author() {
- $buffy = '';
- if (td_util::get_option('tds_p_show_author_name') != 'hide') {
- $buffy .= '<div class="td-post-author-name">';
- $buffy .= '<a itemprop="author" href="' . get_author_posts_url($this->post->post_author) . '">' . get_the_author_meta('display_name', $this->post->post_author) . '</a>' ;
- if (td_util::get_option('tds_p_show_author_name') != 'hide' and td_util::get_option('tds_p_show_date') != 'hide') {
- $buffy .= ' <span>-</span> ';
- }
- $buffy .= '</div>';
- }
- 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 (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 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