/** * Prints HTML with meta information for the categories, tags and comments. */ function blue_planet_entry_footer() { // Hide category and tag text for pages. if ('post' === get_post_type()) { /* translators: used between list items, there is a space after the comma */ $categories_list = get_the_category_list(esc_html__(', ', 'blue-planet')); if ($categories_list && blue_planet_categorized_blog()) { printf('<span class="cat-links">%s</span>', $categories_list); // WPCS: XSS OK. } /* translators: used between list items, there is a space after the comma */ $tags_list = get_the_tag_list('', esc_html__(', ', 'blue-planet')); if ($tags_list) { printf('<span class="tags-links">%s</span>', $tags_list); // WPCS: XSS OK. } } edit_post_link(sprintf(esc_html__('Edit %s', 'blue-planet'), the_title('<span class="screen-reader-text">"', '"</span>', false)), '<span class="edit-link">', '</span>'); }
</div><!-- .entry-content --> <?php } ?> <footer class="entry-meta"> <?php if ('post' === get_post_type()) { // Hide category and tag text for pages on Search. ?> <?php /* translators: used between list items, there is a space after the comma */ $categories_list = get_the_category_list(__(', ', 'blue-planet')); if ($categories_list && blue_planet_categorized_blog()) { ?> <?php if (!empty($categories_list)) { echo '<span class="bp-category">' . $categories_list . '</span>'; // WPCS: XSS OK. } ?> <?php } // End if categories. ?> <?php /* translators: used between list items, there is a space after the comma */