* @copyright Copyright (c) 2009-2013, Edward Caissie * * @internal called `comment_form()` * * @version 2.2 * @date February 24, 2013 * Added filtered text messages when comments are open/closed but none exist * Added link to author page when comments closed message is displayed * * @version 2.2.1 * @date July 17, 2013 * Corrected closed comments logic to properly display message */ /** Do not delete these lines */ if ( ! empty( $_SERVER['SCRIPT_FILENAME'] ) && 'comments.php' == basename( $_SERVER['SCRIPT_FILENAME'] ) ) { die ( __( 'Please do not load this page directly. Thanks!', 'desk-mess-mirrored' ) ); } /** End if - not empty */ if ( post_password_required() ) { ?>
user_id, 'administrator' ) ) { $classes[] = 'administrator'; } elseif ( user_can( $comment->user_id, 'editor' ) ) { $classes[] = 'editor'; } elseif ( user_can( $comment->user_id, 'contributor' ) ) { $classes[] = 'contributor'; } elseif ( user_can( $comment->user_id, 'subscriber' ) ) { $classes[] = 'subscriber'; } else { $classes[] = 'guest'; } /** End if - user can */ /** Add user ID based classes */ if ( $comment->user_id == 1 ) { /** Administrator 'Prime' => first registered user ID */ $userid = "administrator-prime user-id-1"; } else { /** All other users - NB: user-id-0 -> non-registered user */ $userid = "user-id-" . ( $comment->user_id ); } /** End if - current user id */ $classes[] = $userid; /** Add microid */ $c_email=get_comment_author_email(); $c_url=get_comment_author_url(); if ( ! empty( $c_email ) && !empty( $c_url ) ) { $microid = 'microid-mailto+http:sha1:' . sha1( sha1( 'mailto:'.$c_email ) . sha1( $c_url ) ); $classes[] = $microid; } /** End if - not empty */ return $classes; } /** End function - add comment classes */ add_filter( 'comment_class', 'dmm_add_comment_classes' ); ?>
60, 'reply_text' => __( '» Reply to this Comment «', 'desk-mess-mirrored' ) ) ); ?>