file_upload_extensions(); $extns_choices = array(); if ( ! empty( $upload_file_extns ) ) { foreach ( $upload_file_extns as $extension ) { $extns_choices[] = array( 'value' => $extension, 'text' => $extension, ); } } /** * Filters the form settings fields. * * @since 1.4 * * @param array $settings_fields Form Settings fields */ $settings_fields = apply_filters( 'awsm_jobs_form_settings_fields', array( 'general' => array( array( 'name' => 'awsm_jobs_form_style', 'label' => __( 'Form Style', 'wp-job-openings' ), 'type' => 'radio', 'choices' => array( array( 'value' => 'theme', 'text' => __( 'Theme Based', 'wp-job-openings' ), ), array( 'value' => 'plugin', 'text' => __( 'Plugin Based', 'wp-job-openings' ), ), ), 'default_value' => 'theme', ), array( 'visible' => awsm_jobs_is_akismet_active(), 'name' => 'awsm_jobs_enable_akismet_protection', 'label' => __( 'Akismet Anti-Spam', 'wp-job-openings' ), 'type' => 'checkbox', 'choices' => array( array( 'value' => 'enable', 'text' => __( 'Enable Akismet Anti-Spam protection', 'wp-job-openings' ), ), ), 'description' => __( 'Block the spam job applications based on Akismet Anti-Spam protection.', 'wp-job-openings' ), ), array( 'id' => 'awsm-form-options-title', 'label' => __( 'Application form options', 'wp-job-openings' ), 'type' => 'title', ), array( 'name' => 'awsm_jobs_admin_upload_file_ext', 'label' => __( 'Supported upload file types', 'wp-job-openings' ), 'type' => 'checkbox', 'multiple' => true, 'list_class' => 'awsm-check-list awsm-check-list-small', 'choices' => $extns_choices, 'description' => __( 'Select the supported file types for CV upload field', 'wp-job-openings' ), ), array( 'id' => 'awsm-form-gdpr-compliance-title', 'label' => __( 'GDPR Compliance', 'wp-job-openings' ), 'type' => 'title', ), array( 'name' => 'awsm_enable_gdpr_cb', 'label' => __( 'The checkbox', 'wp-job-openings' ), 'type' => 'checkbox', 'class' => 'awsm-check-control-field', 'choices' => array( array( 'value' => 'true', 'text' => __( 'Enable the GDPR compliance checkbox', 'wp-job-openings' ), 'data_attrs' => array( array( 'attr' => 'req-target', 'value' => '#awsm_gdpr_cb_text', ), ), ), ), ), array( 'name' => 'awsm_gdpr_cb_text', 'label' => __( 'Checkbox text', 'wp-job-openings' ), 'class' => 'medium-text', ), ), 'recaptcha' => array( array( 'id' => 'awsm-form-recaptcha-options-title', 'label' => __( 'reCAPTCHA v2 options', 'wp-job-openings' ), 'type' => 'title', ), array( 'name' => 'awsm_jobs_enable_recaptcha', 'label' => __( 'Enable reCAPTCHA', 'wp-job-openings' ), 'type' => 'checkbox', 'choices' => array( array( 'value' => 'enable', 'text' => __( 'Enable reCAPTCHA v2 on the form', 'wp-job-openings' ), ), ), 'help_button' => array( 'url' => 'https://www.google.com/recaptcha/intro/index.html', 'class' => 'awsm-view-captcha-btn', 'text' => __( 'Get reCAPTCHA v2 keys', 'wp-job-openings' ), 'other_attrs' => array( 'target' => '_blank', ), ), ), array( 'name' => 'awsm_jobs_recaptcha_site_key', 'label' => __( 'Site key', 'wp-job-openings' ), ), array( 'name' => 'awsm_jobs_recaptcha_secret_key', 'label' => __( 'Secret key', 'wp-job-openings' ), ), ), ) ); ?>
display_subtabs( 'form', 'awsm-general-form-nav-subtab' ); do_action( 'before_awsm_settings_main_content', 'form' ); ?>
display_settings_fields( $settings_fields['general'] ); do_action( 'after_awsm_form_settings' ); ?>