license_key && defined( 'GRAVITY_FLOW_LICENSE_KEY' ) ) { $this->license_key = GRAVITY_FLOW_LICENSE_KEY; } ?>

', '' ); ?>

validation_message( 'license_key', false ); if ( $key_error ) { echo $key_error; } ?>
validation_message( 'accept_terms', false ); if ( $message || $key_error || $this->accept_terms ) { ?>

'; $this->set_field_validation_result( 'license_key', $message ); $valid_key = false; } else { $license_info = gravity_flow()->activate_license( $license_key ); if ( empty( $license_info ) || $license_info->license !== 'valid' ) { $message = "  " . __( 'Invalid or Expired Key : Please make sure you have entered the correct value and that your key is not expired.', 'gravityflow' ) . ''; $this->set_field_validation_result( 'license_key', $message ); $valid_key = false; } } $accept_terms = rgar( $posted_values, 'accept_terms' ); if ( ! $valid_key && ! $accept_terms ) { $this->set_field_validation_result( 'accept_terms', __( 'Please accept the terms.', 'gravityflow' ) ); $terms_accepted = false; } $valid = $valid_key || ( ! $valid_key && $terms_accepted ); return $valid; } /** * Installs the license key, if supplied. */ public function install() { if ( $this->license_key ) { $gravityflow = gravity_flow(); $settings = $gravityflow->get_app_settings(); $settings['license_key'] = $this->license_key; gravity_flow()->update_app_settings( $settings ); } } /** * Returns the previous button label. * * @return string */ public function get_previous_button_text() { return ''; } }