/** * Create the taxonomy list for the post footer * * Lists categories, tags, and custom taxonomies * * Override: childtheme_override_postfooter_posttax <br> * Filter: thematic_postfooter_posttax */ function thematic_postfooter_posttax() { $post_type_tax = get_post_taxonomies(); $post_tax_list = ''; if (isset($post_type_tax) && $post_type_tax) { foreach ($post_type_tax as $tax) { if ($tax == 'category') { $post_tax_list .= thematic_postfooter_postcategory(); } elseif ($tax == 'post_tag') { $post_tax_list .= thematic_postfooter_posttags(); } else { $post_tax_list .= thematic_postfooter_postterms($tax); } } } return apply_filters('thematic_postfooter_posttax', $post_tax_list); // Filter for default post terms }
function thematic_postfooter() { global $id, $post; if ($post->post_type == 'page' && current_user_can('edit_posts')) { /* For logged-in "page" search results */ $postfooter = '<div class="entry-utility">' . thematic_postfooter_posteditlink(); $postfooter .= "</div><!-- .entry-utility -->\n"; } elseif ($post->post_type == 'page') { /* For logged-out "page" search results */ $postfooter = ''; } else { if (is_single()) { $postfooter = '<div class="entry-utility">' . thematic_postfooter_postcategory() . thematic_postfooter_posttags() . thematic_postfooter_postconnect(); } else { $postfooter = '<div class="entry-utility">' . thematic_postfooter_postcategory() . thematic_postfooter_posttags() . thematic_postfooter_postcomments(); } $postfooter .= "</div><!-- .entry-utility -->\n"; } // Put it on the screen echo apply_filters('thematic_postfooter', $postfooter); // Filter to override default post footer }