function theme11_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(__(', ', 'greenlake')); if ($categories_list && greenlake_categorized_blog()) { printf('<span class="cat-links">' . __('Posted in %1$s ', 'greenlake') . '</span>', $categories_list); } /* translators: used between list items, there is a space after the comma */ $tags_list = get_the_tag_list('', __(', ', 'greenlake')); if ($tags_list) { printf('<span class="tags-links">' . __('Tagged %1$s ', 'greenlake') . '</span>', $tags_list); } } if (!is_single() && !post_password_required() && (comments_open() || get_comments_number())) { echo '<span class="comments-link">'; comments_popup_link(__('Leave a comment ', 'greenlake'), __('1 Comment', 'greenlake'), __('% Comments', 'greenlake')); echo '</span>'; } edit_post_link(__('Edit', 'greenlake'), '<span class="edit-link">', '</span>'); }
/** * Prints HTML with meta information for the categories, tags and comments. */ function greenlake_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 */ echo "<span class='ct_section'>"; if (get_the_category() && greenlake_categorized_blog()) { // printf( '<span class="cat-links">' . __( 'Posted in %1$s ', 'greenlake' ) . '</span>', $categories_list ); echo "Category: "; } foreach (get_the_category() as $category) { echo "<span class='ct_2'>"; echo $category->cat_name . ' '; echo "</span>"; } $categories_list = get_the_category_list(__(', ', 'greenlake')); if ($categories_list && greenlake_categorized_blog()) { // printf( '<span class="cat-links">' . __( 'Posted in %1$s ', 'greenlake' ) . '</span>', $categories_list ); } echo "</span>"; /* translators: used between list items, there is a space after the comma */ $tags_list = get_the_tag_list('', __(', ', 'greenlake')); if ($tags_list) { echo "<span class='tg_section'>"; echo "Tagged: "; // echo get_the_tag_list(); $posttags = get_the_tags(); if ($posttags) { foreach ($posttags as $tag) { echo "<span class='tg_2'>"; echo $tag->name . ' '; echo "</span>"; } } echo "</span>"; // printf( '<span class="tags-links">' . __( 'Tagged %1$s ', 'greenlake' ) . '</span>', $tags_list ); } } if (!is_single() && !post_password_required() && (comments_open() || get_comments_number())) { echo '<span class="comments-link">'; comments_popup_link(__('Leave a comment ', 'greenlake'), __('1 Comment', 'greenlake'), __('% Comments', 'greenlake')); echo '</span>'; } edit_post_link(__('Edit', 'greenlake'), '<span class="edit-link">', '</span>'); }