diff --git a/functions/classes.php b/functions/classes.php index a22b46c..e858d49 100644 --- a/functions/classes.php +++ b/functions/classes.php @@ -135,4 +135,20 @@ function comicpress_post_class($class = '') { echo apply_filters( 'comicpress_post_class', $class ); } +add_filter('comment_class','comicpress_comment_class'); + +function comicpress_comment_class($classes = '') { + + /* + * http://microid.org + */ + $email = get_comment_author_email(); + $url = get_comment_author_url(); + if(!empty($email) && !empty($url)) { + $microid = 'microid-mailto+http:sha1:' . sha1(sha1('mailto:'.$email).sha1($url)); + $classes[] = $microid; + } + return $classes; +} + ?> \ No newline at end of file diff --git a/functions/comment-functions.php b/functions/comment-functions.php index 5a8c5f8..472357a 100644 --- a/functions/comment-functions.php +++ b/functions/comment-functions.php @@ -38,7 +38,7 @@ function comicpress_avatar() { $id_or_email = get_comment_author_email(); if (empty($id_or_email)) $id_or_email = get_comment_author(); if(function_exists('comicpress_get_avatar') && $comment_type != 'pingback' && $comment_type != 'trackback' ) { - echo str_replace("alt='", "alt='".wp_specialchars(get_comment_author(), 1)."' title='".wp_specialchars(get_comment_author(), 1), comicpress_get_avatar($id_or_email, 64)); + echo str_replace("alt='", "alt='".wp_specialchars(get_comment_author(), 1)."' title='".wp_specialchars(get_comment_author(), 1), comicpress_get_avatar($id_or_email, 72)); } else { if ($comment_type == 'pingback' || $comment_type == 'trackback') { echo ''; @@ -121,48 +121,53 @@ function comicpress_comments_callback($comment, $args, $depth) { $GLOBALS['comment_depth'] = $depth; ?> -
-