AnsPress_Form::form_footer()
Description #
FORM footer.
Source #
File: includes/class/form.php
private function form_footer() { ob_start(); /** * ACTION: ap_form_bottom_[form_name] * action for hooking captcha and extar fields * * @since 2.0.1 */ do_action( 'ap_form_bottom_' . $this->name ); $this->output .= ob_get_clean(); $this->output .= '<button type="submit" class="ap-btn ap-btn-submit">' . $this->args['submit_button'] . '</button>'; if ( isset( $this->args['show_reset'] ) && true === $this->args['show_reset'] ) { $this->output .= '<input type="submit" name="reset" class="button ap-btn ap-btn-reset" value="' . __( 'Reset', 'anspress-question-answer' ) . '" />'; } if ( isset( $this->args['show_cancel'] ) && true === $this->args['show_cancel'] ) { $this->output .= '<button type="button" class="ap-btn ap-btn-cancel">' . __( 'Cancel', 'anspress-question-answer' ) . '</button>'; } $this->output .= '</form>'; }
Expand full source code Collapse full source code View on GitHub: includes/class/form.php:184
Add your comment