public function theme_comment_form( $theme ) { $ui = new FormUI( 'comments_form' ); $ui->set_option( 'form_action', URL::get( 'submit_feedback', array( 'id' => $theme->post->id ) ) ); $comment_fieldset = $ui->append( 'fieldset', 'content_box', _t( 'Add to the Discussion.' ) ); $commentContent = $comment_fieldset->append( 'textarea', 'commentContent', 'null:null', _t( 'Comment' ) . " (" . _t( 'Required' ) . ")" ); $commentContent->value = $theme->commenter_content; $commentContent->id = 'content'; $comment_info_fieldset = $ui->append('fieldset', 'commenter_info', _t( 'A Little Info About You' ) ); $name = $comment_info_fieldset->append( 'text', 'ename', 'null:null', _t( 'Name' ) . " (" . _t( 'Required' ) . ")" ); $name->value = $theme->commenter_name; $name->id = 'name'; $name->title = 'Your name. Required'; $email = $comment_info_fieldset->append( 'text', 'email', 'null:null', _t('Email' ) . " (" . _t( 'Required - not published' ) . ")" ); $email->value = $theme->commenter_email; $email->id = $email->name; $email->title = "Your email address. Required, but not published" $url = $comment_info_fieldset->append( 'text', 'url', 'null:null', _t( 'Web Address' ) ); $url->value = $theme->commenter_url; $url->id = $url->name; $url->title = 'Enter your homepage.' $submit = $ui->append( 'submit', 'submit', _t( 'Say It' ) ); $submit->id = $submit->name; $ui->out(); } // The below are changes to form controls // text input > type="text" name="" value="" > errors_out('
  • %s
  • ', ''); ?> // textarea