'; } else{ echo '
'; } if ( post_password_required() ){ echo '

'; _e( 'This post is password protected. Enter the password to view any comments.' , 'myThemes' ); echo '

'; echo '
'; return; } /* IF EXISTS WORDPRESS COMMENTS */ if ( have_comments() ) { $nr = get_comments_number(); if( $nr == 1 ) $title = __( 'Comment' , 'myThemes' ); else $title = __( 'Comments' , 'myThemes' ); echo '

'; echo $title . ' ( ' . number_format_i18n( $nr ) . ' )'; echo '

'; echo '
    '; wp_list_comments( array( 'callback' => array( 'myThemes' , 'comment' ) , 'style' => 'ul' ) ); echo '
'; /* WORDPRESS PAGINATION FOR COMMENTS */ echo ''; } /* FORM SUBMIT COMMENTS */ $commenter = wp_get_current_commenter(); /* CHECK VALUES */ if( esc_attr( $commenter[ 'comment_author' ] ) ) $name = esc_attr( $commenter[ 'comment_author' ] ); else $name = __( 'Nickname ( required )' , 'myThemes' ); if( esc_attr( $commenter[ 'comment_author_email' ] ) ) $email = esc_attr( $commenter[ 'comment_author_email' ] ); else $email = __( 'E-mail ( required )' , 'myThemes' ); if( esc_attr( $commenter[ 'comment_author_url' ] ) ) $web = esc_attr( $commenter[ 'comment_author_url' ] ); else $web = __( 'Website' , 'myThemes' ); /* FIELDS */ $fields = array( 'author' => '
'. '

'. '' . '

', 'email' => '

'. '' . '

', 'url' => '

'. '' . '

', ); $rett = '

'; $rett .= ''; $rett .= '

'; $rett .= '

' . __( 'You may use these HTML tags and attributes' , 'myThemes' ) . ':

'; $rett .= '
';
    $rett .= htmlspecialchars( '    
' ); $rett .= '
'; $args = array( 'title_reply' => __( "Leave a reply" , 'myThemes' ), 'comment_notes_after' => '', 'comment_notes_before' => '

' . __( 'Your email address will not be published.' , 'myThemes' ) . '

', 'logged_in_as' => '

' . __( 'Logged in as' , 'myThemes' ) . ' ' . get_the_author_meta( 'nickname' , get_current_user_id() ) . '. ' . __( 'Log out?' , 'myThemes' ) . '

', 'fields' => apply_filters( 'comment_form_default_fields', $fields ), 'comment_field' => $rett, 'label_submit' => __( 'Submit Comment' , 'myThemes' ) ); comment_form( $args ); echo '
'; echo ''; } ?>