AnsPress_Form::form_footer()

Description #

FORM footer.

Changelog #

VersionDescription
2.0.1Introduced.

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

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment