/** * Single post type information box */ function pp_single_post_type_info() { if (!(is_singular('post') || is_singular('series'))) { return; } ?> <aside class="box <?php echo get_post_type(); ?> -info"> <p> <span>Posted On</span> <?php if ('series' == get_post_type() || 'post' == get_post_type()) { ?> <?php printf('<time datetime="%1$s">%2$s</time>', esc_attr(get_the_date('c')), esc_html(get_the_date())); ?> <?php } ?> </p> <?php if (in_array('doc_category', get_object_taxonomies(get_post_type())) && affwp_categorized_blog()) { ?> <p><span>Categories</span> <?php echo get_the_term_list(get_the_ID(), 'doc_category', '', '<br/>'); ?> </p> <?php } ?> <?php if (in_array('category', get_object_taxonomies(get_post_type())) && affwp_categorized_blog()) { ?> <p><span>Categories</span> <?php echo get_the_term_list(get_the_ID(), 'category', '', '<br/>'); ?> </p> <?php } ?> <?php if ('post' == get_post_type()) { ?> <?php the_tags('<p><span>Tags</span> ', ', ', '</p>'); ?> <p> <span>Comments</span> <?php comments_popup_link(__('Leave a comment', 'pp'), __('1', 'pp'), __('%', 'pp')); ?> </p> <?php } ?> </aside> <?php }
the_author(); ?> </span> <?php if ('post' == get_post_type()) { ?> <?php printf('<time datetime="%1$s">%2$s</time>', esc_attr(get_the_date('c')), esc_html(get_the_date())); ?> <?php } ?> </p> <?php if (in_array('category', get_object_taxonomies(get_post_type())) && affwp_categorized_blog()) { ?> <p><span>Categories</span> <?php echo get_the_category_list(_x(', ', 'Used between list items, there is a space after the comma.', 'affwp')); ?> </p> <?php } ?> <?php the_tags('<p><span>Tags</span> ', ', ', '</p>'); ?> <p> <span>Comments</span>
<div class="item left bdr"> <p> <span>Published</span> <?php if ('docs' == get_post_type()) { ?> <?php printf('<time datetime="%1$s">%2$s</time>', esc_attr(get_the_date('c')), esc_html(get_the_date())); ?> <?php } ?> </p> <?php if (in_array('doc_category', get_object_taxonomies(get_post_type())) && affwp_categorized_blog() && has_term('', 'doc_category')) { ?> <p><span>Categories</span> <?php echo get_the_term_list(get_the_ID(), 'doc_category', '', '<br/>'); ?> </p> <?php } ?> </div> <div class="primary item"> <?php while (have_posts()) { the_post();