/** * Display comment form * * @access private */ private function display_form() { empty($this->_comments) ? $form_side_image = 'new' : ($form_side_image = 'persuit'); if ($this->_submitted === true) { Html::submitted_form(true); } elseif ($this->_submitted === false && (empty($this->_errors['name']) || empty($this->_errors['email']) || empty($this->_errors['content']) || empty($this->_errors['question']))) { Html::submitted_form(false); } else { Html::comment_form($this->_comment->_name, $this->_comment->_email, $this->_comment->_content, $this->_errors['name'], $this->_errors['email'], $this->_errors['content'], $this->_errors['question'], $form_side_image, $this->_question[0], $this->_question[1], $this->_question[2]); } }