diff -r 0d9a58d2c515 -r 0d28b7c10758 web/wp-content/themes/thematic/library/extensions/comments-extensions.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/wp-content/themes/thematic/library/extensions/comments-extensions.php Fri Mar 12 13:29:04 2010 +0000 @@ -0,0 +1,149 @@ +One Comment', 'thematic'); + return apply_filters(thematic_singlecomment_text, $content); +} + +// Located in comments.php +// Creates the standard text for more than one comment +function thematic_multiplecomments_text() { + $content = __('%d Comments', 'thematic'); + return apply_filters(thematic_multiplecomments_text, $content); +} + +// creates the list comments arguments +function list_comments_arg() { + $content = 'type=comment&callback=thematic_comments'; + return apply_filters('list_comments_arg', $content); +} + +// Located in comments.php +// Creates the standard text 'Post a Comment' +function thematic_postcomment_text() { + $content = __('Post a Comment', 'thematic'); + return apply_filters(thematic_postcomment_text, $content); +} + +// Located in comments.php +// Creates the standard text 'Post a Reply to %s' +function thematic_postreply_text() { + $content = __('Post a Reply to %s', 'thematic'); + return apply_filters(thematic_postreply_text, $content); +} + +// Located in comments.php +// Creates the standard text 'Comment' for the text box +function thematic_commentbox_text() { + $content = __('Comment', 'thematic'); + return apply_filters(thematic_commentbox_text, $content); +} + +// Located in comments.php +// Creates the standard text 'Post Comment' for the send button +function thematic_commentbutton_text() { + $content = __('Post Comment', 'thematic'); + return apply_filters(thematic_commentbutton_text, $content); +} + +// Produces an avatar image with the hCard-compliant photo class +function thematic_commenter_link() { + $commenter = get_comment_author_link(); + if ( ereg( ']* class=[^>]+>', $commenter ) ) { + $commenter = ereg_replace( '(]* class=[\'"]?)', '\\1url ' , $commenter ); + } else { + $commenter = ereg_replace( '(' . $commenter . ''; +} // end thematic_commenter_link + + +// A hook for the standard comments template +function thematic_comments_template() { + do_action('thematic_comments_template'); +} // end thematic_comments + + + // The standard comments template is injected into thematic_comments_template() by default + function thematic_include_comments() { + comments_template('', true); + } // end thematic_include_comments + + add_action('thematic_comments_template','thematic_include_comments',5); + + \ No newline at end of file