/** * Post meta HTML block for single CPT's. * * @since 0.2.0 */ public function single_cpt_meta($taxonomy, $args = array()) { $args = extract($this->merge_loop_arguments($args)); if ($render_date || $render_author || $render_cats || $render_comments) { $term_list = get_the_term_list(get_the_ID(), $taxonomy, '', ', ', ''); if (empty($term_list)) { $render_cats = false; } ?> <div class="post-meta"> <?php WPGo_Hooks::wpgo_post_meta_header(); ?> <p<?php echo $header_align_meta; ?> > <?php if ($render_date) { ?> <time class="date" datetime="<?php the_date('c'); ?> " pubdate><?php the_time(get_option('date_format')); ?> </time><?php echo $date_sep; } ?> <?php if ($render_author) { ?> <span class="author"><?php echo $author_prefix; the_author_posts_link(); ?> </span><?php } ?> <?php if ($render_cats) { echo $author_sep; ?> <span class="categories"><?php echo $cat_prefix; echo $term_list; ?> </span><?php } ?> <?php if ($render_comments && comments_open()) { ?> <?php echo $cat_sep; ?> <span class="comments"><?php comments_popup_link(__('Leave Comment', 'wpgothemes'), __('1 Comment', 'wpgothemes'), __('% Comments', 'wpgothemes'), '', ''); ?> </span> <?php } ?> </p> </div><!-- .post-meta --> <?php } }