__('Settings', 'abn-lookup-for-gravity-forms'), "fields" => array( array( "label" => __('GUID', 'abn-lookup-for-gravity-forms'), "name" => "guid", /* translators: %1$s: opening link tag, %2$s: closing link tag */ "tooltip" => sprintf( __('To receive a GUID see %1$sweb services registration%2$s on the Australian Business Register website.', 'abn-lookup-for-gravity-forms'), '', '' ), "type" => "guid" ), array( "label" => __('Include CSS Styles', 'abn-lookup-for-gravity-forms'), "type" => "checkbox", "name" => "includecss", "tooltip" => __('This option allows you to control whether to use the CSS styles provided in the plugin. If this is not enabled you will need to apply styles through your theme.', 'abn-lookup-for-gravity-forms'), "choices" => array( array( "label" => __('Yes', 'abn-lookup-for-gravity-forms'), "name" => "includecss", "default_value" => true ) ) ), array( "label" => __('Lookup timeout (seconds)', 'abn-lookup-for-gravity-forms'), "type" => "text", "name" => "lookup_timeout", "tooltip" => __('This option controls the amount of time, in seconds, before a request to the ABR lookup system will timeout.', 'abn-lookup-for-gravity-forms'), "default_value" => $abnlookup_options['lookup_timeout'] ), array( "label" => __('Lookup Retries', 'abn-lookup-for-gravity-forms'), "type" => "text", "name" => "lookup_retries", "tooltip" => __('This option controls the number of retries when a request to the ABR lookup system has failed. When all retries have been used the field will return the "Error communicating message" error message.', 'abn-lookup-for-gravity-forms'), "default_value" => $abnlookup_options['lookup_retries'] ) ) ), array( "title" => __('Validation Messages', 'abn-lookup-for-gravity-forms'), "fields" => array( array( "label" => __('ABN Not Valid', 'abn-lookup-for-gravity-forms'), "name" => "validation_message_not_valid", "tooltip" => __('This message is displayed to the user if they enter an ABN that is not valid.', 'abn-lookup-for-gravity-forms'), "type" => "textarea", "class" => "medium", "default_value" => $abnlookup_options['validation_message_not_valid'] ), array( "label" => __('ABN Not Active', 'abn-lookup-for-gravity-forms'), "name" => "validation_message_activeabn", "tooltip" => __('This message is displayed to the user if they enter an ABN that is not active.', 'abn-lookup-for-gravity-forms'), "type" => "textarea", "class" => "medium", "default_value" => $abnlookup_options['validation_message_activeabn'] ), array( "label" => __('ABN Not Registered for GST', 'abn-lookup-for-gravity-forms'), "name" => "validation_message_reggst", "tooltip" => __('This message is displayed to the user if they enter a ABN that is not registered for GST and the field validation is set to only allow ABNs that are GST registered.', 'abn-lookup-for-gravity-forms'), "type" => "textarea", "class" => "medium", "default_value" => $abnlookup_options['validation_message_reggst'] ), array( "label" => __('ABN Registered for GST', 'abn-lookup-for-gravity-forms'), "name" => "validation_message_notreggst", "tooltip" => __('This message is displayed to the user if they enter a ABN is registered for GST and the field validation is set to only allow ABNs that are not registered for GST.', 'abn-lookup-for-gravity-forms'), "type" => "textarea", "class" => "medium", "default_value" => $abnlookup_options['validation_message_notreggst'] ), array( "label" => __('ABN Not Correct Length', 'abn-lookup-for-gravity-forms'), "name" => "validation_message_11_char", "tooltip" => __('This message is displayed to the user if they enter a value into the ABN field that does not contain the required 11 characters that make up an ABN.', 'abn-lookup-for-gravity-forms'), "type" => "textarea", "class" => "medium", "default_value" => $abnlookup_options['validation_message_11_char'] ), array( "label" => __('Loading Message', 'abn-lookup-for-gravity-forms'), "name" => "validation_message_loading", "tooltip" => __('This message is displayed to the user when the ABN Lookup is running.', 'abn-lookup-for-gravity-forms'), "type" => "textarea", "class" => "medium", "default_value" => $abnlookup_options['validation_message_loading'] ), array( "label" => __('Error Communicating Message', 'abn-lookup-for-gravity-forms'), "name" => "validation_message_error_communicating", "tooltip" => __('This message is displayed to the user when the ABN Lookup script has failed to communicate with the Australian Business Register more than three times.', 'abn-lookup-for-gravity-forms'), "type" => "textarea", "class" => "medium", "default_value" => $abnlookup_options['validation_message_error_communicating'] ) ) ) ); } public function settings_guid(){ $this->settings_text( array( "name" => "guid", "class" => "large" ) ); printf( '
%s