$category_list = get_the_category_list(__(', ', 'clearly')); ?> <ul> <li class="date"><a href="<?php the_permalink(); ?> "><?php echo get_the_date(); ?> </a></li> <li class="comments"><?php comments_number(__('No Comments', 'clearly'), __('One Comment', 'clearly'), __('% Comments', 'clearly')); ?> </li> <?php if (clearly_categorized_blog() && !empty($category_list)) { ?> <li class="categories"><?php echo $category_list; ?> </li> <?php } ?> </ul> </div> <div class="entry-summary"> <h1 class="entry-title"><a href="<?php the_permalink(); ?>
/** * Get the post meta. * * @since clearly 1.0 */ function clearly_get_post_meta() { /* translators: used between list items, there is a space after the comma */ $category_list = get_the_category_list(__(', ', 'clearly')); /* translators: used between list items, there is a space after the comma */ $tag_list = get_the_tag_list('', __(', ', 'clearly')); if (!clearly_categorized_blog()) { // This blog only has 1 category so we just need to worry about tags in the meta text if ('' != $tag_list) { $meta_text = __('This entry was tagged %2$s.', 'clearly'); } else { $meta_text = ''; } } else { // But this blog has loads of categories so we should probably display them here if ('' != $tag_list) { $meta_text = __('This entry was posted in %1$s and tagged %2$s.', 'clearly'); } else { $meta_text = __('This entry was posted in %1$s.', 'clearly'); } } // end check for categories on this blog $meta = sprintf($meta_text, $category_list, $tag_list, get_permalink(), the_title_attribute('echo=0')); return apply_filters('clearly_post_meta', $meta); }