' . __( 'This post is password protected. Enter the password to view any comments.', 'jegtheme') . '

'; return ; } function j_comment_form($i) { $commenter = wp_get_current_commenter(); $user = wp_get_current_user(); $user_identity = $user->exists() ? $user->display_name : ''; $req = get_option( 'require_name_email' ); $aria_req = ( $req ? " aria-required='true'" : '' ); $i['author'] = '

' . ' ' . ( $req ? '*' : '' ) . '

'; $i['email'] = '

' . ( $req ? '*' : '' ) . '

'; $i['url'] = '

' . '

'; return $i; } add_action('comment_form_default_fields', 'j_comment_form'); function j_comment_default_form($defaults) { global $id; $post_id = $id; $commenter = wp_get_current_commenter(); $user = wp_get_current_user(); $user_identity = $user->exists() ? $user->display_name : ''; $req = get_option( 'require_name_email' ); $required_text = sprintf( ' ' . __('Required fields are marked %s', 'jegtheme'), '*' ); $newdefaults = array( 'fields' => $defaults['fields'], 'comment_field' => '

', 'must_log_in' => '

' . sprintf( __( 'You must be logged in to post a comment.', 'jegtheme' ), wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '

', 'logged_in_as' => '

' . sprintf( __( 'Logged in as %2$s. Log out?', 'jegtheme' ), admin_url( 'profile.php' ), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '

', 'comment_notes_before' => '

' . __( 'Your email address will not be published.', 'jegtheme' ) . ( $req ? $required_text : '' ) . '

', 'comment_notes_after' => '

' . sprintf( __( 'You may use these HTML tags and attributes: %s', 'jegtheme' ), ' ' . allowed_tags() . '' ) . '

', 'id_form' => 'commentform', 'id_submit' => 'submit', 'title_reply' => __( 'Leave a Reply', 'jegtheme' ), 'title_reply_to' => __( 'Leave a Reply to %s', 'jegtheme' ), 'cancel_reply_link' => __( 'Cancel reply', 'jegtheme' ), 'label_submit' => __( 'Post Comment', 'jegtheme' ), ); return $newdefaults; } add_action('comment_form_defaults', 'j_comment_default_form'); if ( comments_open() ) : ?>


Please login to comment.

', 'jegtheme'); else : comment_form(); endif; // comment form ?>