I checked the wiki, but it didn't have an example on this filter, so I took a stab at it.
To change the post footer, for example moving the comments text and edit link up to its own line instead of at the end of the tags and categories, you can use the following code:
function childtheme_postfooter() {
global $id, $post;// Create $posteditlink
$posteditlink = '<span class="edit"><a href="' . get_bloginfo('wpurl') . '/wp-admin/post.php?action=edit&post=' . $id;
$posteditlink .= '" title="' . __('Edit post', 'thematic') .'">';
$posteditlink .= __('Edit', 'thematic') . '</span>';
$posteditlink = apply_filters('thematic_postfooter_posteditlink',$posteditlink);// Display the post categories
$postcategory = '<span class="cat-links">';
if (is_single()) {
$postcategory .= __('This entry was posted in ', 'thematic') . get_the_category_list(', ');
$postcategory .= '</span>';
} elseif ( is_category() && $cats_meow = thematic_cats_meow(', ') ) { // Returns categories other than the one queried
$postcategory .= __('Also posted in ', 'thematic') . $cats_meow;
$postcategory .= '</span> <span class="meta-sep meta-sep-tag-links">|</span>';
} else {
$postcategory .= __('Posted in ', 'thematic') . get_the_category_list(', ');
$postcategory .= '</span> <span class="meta-sep meta-sep-tag-links">|</span>';
}
$postcategory = apply_filters('thematic_postfooter_postcategory',$postcategory);// Display the tags
if (is_single()) {
$tagtext = __(' and tagged', 'thematic');
$posttags = get_the_tag_list("<span class=\"tag-links\"> $tagtext ",', ','</span>');
} elseif ( is_tag() && $tag_ur_it = thematic_tag_ur_it(', ') ) { // Returns tags other than the one queried
$posttags = '<span class="tag-links">' . __(' Also tagged ', 'thematic') . $tag_ur_it . '</span> <span class="meta-sep meta-sep-comments-link">|</span>';
} else {
$tagtext = __('Tagged', 'thematic');
$posttags = get_the_tag_list("<span class=\"tag-links\"> $tagtext ",', ','</span>');
}
$posttags = apply_filters('thematic_postfooter_posttags',$posttags);// Display comments link and edit link
if (comments_open()) {
$postcommentnumber = get_comments_number();
if ($postcommentnumber > '1') {
$postcomments = ' <span class="comments-link">';
$postcomments .= get_comments_number() . __(' Comments', 'thematic') . '</span>';
} elseif ($postcommentnumber == '1') {
$postcomments = ' <span class="comments-link">';
$postcomments .= get_comments_number() . __(' Comment', 'thematic') . '</span>';
} elseif ($postcommentnumber == '0') {
$postcomments = ' <span class="comments-link">';
$postcomments .= __('Leave a comment', 'thematic') . '</span>';
}
} else {
$postcomments = ' <span class="comments-link comments-closed-link">' . __('Comments closed', 'thematic') .'</span>';
}
// Display edit link
if (current_user_can('edit_posts')) {
$postcomments .= ' <span class="meta-sep meta-sep-edit">|</span> ' . $posteditlink;
}
$postcomments = apply_filters('thematic_postfooter_postcomments',$postcomments);// Display permalink, comments link, and RSS on single posts
$postconnect .= __('. Bookmark the ', 'thematic') . '';
$postconnect .= __('permalink', 'thematic') . '.';
if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) { // Comments are open
$postconnect .= ' ' . __('Post a comment', 'thematic') . '';
$postconnect .= __(' or leave a trackback: ', 'thematic');
$postconnect .= '' . __('Trackback URL', 'thematic') . '.';
} elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) { // Only trackbacks are open
$postconnect .= __(' Comments are closed, but you can leave a trackback: ', 'thematic');
$postconnect .= '' . __('Trackback URL', 'thematic') . '.';
} elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) { // Only comments open
$postconnect .= __(' Trackbacks are closed, but you can ', 'thematic');
$postconnect .= '' . __('post a comment', 'thematic') . '.';
} elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) { // Comments and trackbacks closed
$postconnect .= __(' Both comments and trackbacks are currently closed.', 'thematic');
}
// Display edit link on single posts
if (current_user_can('edit_posts')) {
$postconnect .= ' ' . $posteditlink;
}
$postconnect = apply_filters('thematic_postfooter_postconnect',$postconnect);// Add it all up
if ($post->post_type == 'page' && current_user_can('edit_posts')) { // For logged-in "page" search results
$postfooter = '<div class="entry-utility">' . '<span class="edit">' . $posteditlink . '</span>';
$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">' . $postconnect . '' . $postcategory . $posttags;
} else {
$postfooter = '<div class="entry-utility">' . $postcomments . '' . $postcategory . $posttags;
}
$postfooter .= "</div><!-- .entry-utility -->\n";
}// Put it on the screen
return $postfooter;
}
add_filter('thematic_postfooter', 'childtheme_postfooter');
I also changed a couple of ".=" to "=" as it looked like a variable declaration, and changed a </span> <span class="meta-sep meta-sep-comments-link">|</span> into </span> as it was no longer needed.
It seems a bit long, and I was wondering if there's a better/easier way to do this.