comment_type ) { case '' : { echo '
  • '; echo '
    '; echo '
    '; echo ''; comment_reply_link( array_merge( $args , array( 'depth' => $depth, 'max_depth' => $args['max_depth'] ))); echo ''; echo myTheme::gravatar( $comment, 50 ); echo ''; echo get_comment_author_link( $comment -> comment_ID ); echo ''; echo ''; echo '
    '; echo '
    '; echo '
    '; echo ''; echo '

    '; if ( $comment -> comment_approved == '0' ) { echo ''; _e( 'Your comment is awaiting moderation.' , 'myThemes' ); echo ''; } echo get_comment_text(); echo '

    '; echo '
    '; echo '
  • '; break; } case 'pingback' :{ } case 'trackback' : { break; } } } if( comments_open() ){ if( is_user_logged_in() ){ echo '
    '; } else{ echo '
    '; } /* WORDPRESS COMMENTS PASSWORD REQUIRED */ 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() ) { echo '

    '; if( count( get_comments( array( 'type' => 'comment' , 'post_id' => $post -> ID ) ) ) == 1 ) { _e( 'Comment' , 'myThemes' ); }else{ _e( 'Comments' , 'myThemes' ); } echo ' ( ' . count( get_comments( array( 'type' => 'comment' , 'post_id' => $post -> ID ) ) ). ' )'; echo '

    '; echo '
      '; wp_list_comments( array( 'callback' => 'my_comment' , 'type' => 'comment' ) ); 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 .= '

    '; $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 '
    '; }