/**
  * Returns all the settings fields
  *
  * @return array settings fields
  */
 static function get_settings_fields()
 {
     $default_post_type = array('post' => 'Posts');
     $settings_fields = array('frontend_uploader_settings' => array(array('name' => 'enable_akismet_protection', 'label' => __('Enable Akismet spam protection', 'frontend-uploader'), 'desc' => __('Yes (Akismet must be enabled and configured)', 'frontend-uploader'), 'type' => 'checkbox', 'default' => ''), array('name' => 'enable_recaptcha_protection', 'label' => __('Enable Recaptcha spam protection', 'frontend-uploader'), 'desc' => __('Yes (Fill in Recaptcha credentials below)', 'frontend-uploader'), 'type' => 'checkbox', 'default' => ''), array('name' => 'recaptcha_site_key', 'label' => __('Recaptcha Site Key', 'frontend-uploader') . " get at https://www.google.com/recaptcha/admin", 'desc' => __('', 'frontend-uploader'), 'type' => 'text', 'default' => ''), array('name' => 'recaptcha_secret_key', 'label' => __('Recaptcha Site Secret', 'frontend-uploader') . " get at https://www.google.com/recaptcha/admin", 'desc' => __('', 'frontend-uploader'), 'type' => 'text', 'default' => ''), array('name' => 'notify_admin', 'label' => __('Notify site admins', 'frontend-uploader'), 'desc' => __('Yes', 'frontend-uploader'), 'type' => 'checkbox', 'default' => ''), array('name' => 'admin_notification_text', 'label' => __('Admin Notification', 'frontend-uploader'), 'desc' => __('Message that admin will get on new file upload', 'frontend-uploader'), 'type' => 'textarea', 'default' => 'Someone uploaded a new UGC file, please moderate at: ' . admin_url('upload.php?page=manage_frontend_uploader'), 'sanitize_callback' => 'wp_kses_post'), array('name' => 'notification_email', 'label' => __('Notification email', 'frontend-uploader'), 'desc' => __('Leave blank to use site admin email', 'frontend-uploader'), 'type' => 'text', 'default' => '', 'sanitize_callback' => 'sanitize_email'), array('name' => 'show_author', 'label' => __('Show author field', 'frontend-uploader'), 'desc' => __('Yes', 'frontend-uploader'), 'type' => 'checkbox', 'default' => ''), array('name' => 'enabled_post_types', 'label' => __('Enable Frontend Uploader for the following post types', 'frontend-uploader'), 'desc' => '', 'type' => 'multicheck', 'default' => $default_post_type, 'options' => self::get_post_types()), array('name' => 'wysiwyg_enabled', 'label' => __('Enable visual editor for textareas', 'frontend-uploader'), 'desc' => __('Yes', 'frontend-uploader'), 'type' => 'checkbox', 'default' => ''), array('name' => 'enabled_files', 'label' => __('Also allow to upload these files (in addition to the ones that WP allows by default)', 'frontend-uploader'), 'desc' => '', 'type' => 'multicheck', 'default' => array(), 'options' => fu_get_exts_descs()), array('name' => 'auto_approve_user_files', 'label' => __('Auto-approve registered users files', 'frontend-uploader'), 'desc' => __('Yes', 'frontend-uploader'), 'type' => 'checkbox', 'default' => ''), array('name' => 'auto_approve_any_files', 'label' => __('Auto-approve any files', 'frontend-uploader'), 'desc' => __('Yes', 'frontend-uploader'), 'type' => 'checkbox', 'default' => ''), array('name' => 'obfuscate_file_name', 'label' => __('Obfuscate file name', 'frontend-uploader'), 'desc' => __('Yes', 'frontend-uploader'), 'type' => 'checkbox', 'default' => ''), array('name' => 'suppress_default_fields', 'label' => __('Suppress default fields', 'frontend-uploader'), 'desc' => __('Yes', 'frontend-uploader'), 'type' => 'checkbox', 'default' => '')));
     return $settings_fields;
 }
 /**
  * Returns all the settings fields
  *
  * @return array settings fields
  */
 static function get_settings_fields()
 {
     $default_post_type = array('post' => 'Posts', 'post' => 'post');
     $settings_fields = array('frontend_uploader_settings' => array(array('name' => 'notify_admin', 'label' => __('Notify site admins', 'frontend-uploader'), 'desc' => __('Yes', 'frontend-uploader'), 'type' => 'checkbox', 'default' => ''), array('name' => 'admin_notification_text', 'label' => __('Admin Notification', 'frontend-uploader'), 'desc' => __('Message that admin will get on new file upload', 'frontend-uploader'), 'type' => 'textarea', 'default' => 'Someone uploaded a new UGC file, please moderate at: ' . admin_url('upload.php?page=manage_frontend_uploader'), 'sanitize_callback' => 'wp_filter_post_kses'), array('name' => 'notification_email', 'label' => __('Notification email', 'frontend-uploader'), 'desc' => __('Leave blank to use site admin email', 'frontend-uploader'), 'type' => 'text', 'default' => '', 'sanitize_callback' => 'sanitize_email'), array('name' => 'allowed_categories', 'label' => __('Allowed categories', 'frontend-uploader'), 'desc' => __('Comma separated IDs (leave blank for all)', 'frontend-uploader'), 'type' => 'text', 'default' => ''), array('name' => 'show_author', 'label' => __('Show author field', 'frontend-uploader'), 'desc' => __('Yes', 'frontend-uploader'), 'type' => 'checkbox', 'default' => ''), array('name' => 'enabled_post_types', 'label' => __('Enable Frontend Uploader for the following post types', 'frontend-uploader'), 'desc' => '', 'type' => 'multicheck', 'default' => $default_post_type, 'options' => self::get_post_types()), array('name' => 'wysiwyg_enabled', 'label' => __('Enable visual editor for textareas', 'frontend-uploader'), 'desc' => __('Yes', 'frontend-uploader'), 'type' => 'checkbox', 'default' => ''), array('name' => 'enabled_files', 'label' => __('Also allow to upload these files (in addition to the ones that WP allows by default)', 'frontend-uploader'), 'desc' => '', 'type' => 'multicheck', 'default' => array(), 'options' => fu_get_exts_descs()), array('name' => 'auto_approve_user_files', 'label' => __('Auto-approve registered users files', 'frontend-uploader'), 'desc' => __('Yes', 'frontend-uploader'), 'type' => 'checkbox', 'default' => ''), array('name' => 'auto_approve_any_files', 'label' => __('Auto-approve any files', 'frontend-uploader'), 'desc' => __('Yes', 'frontend-uploader'), 'type' => 'checkbox', 'default' => ''), array('name' => 'default_file_name', 'label' => __('Default file name', 'frontend-uploader'), 'desc' => __('Leave blank to use original file name', 'frontend-uploader'), 'type' => 'text', 'default' => 'Unnamed'), array('name' => 'suppress_default_fields', 'label' => __('Suppress default fields', 'frontend-uploader'), 'desc' => __('Yes', 'frontend-uploader'), 'type' => 'checkbox', 'default' => '')));
     return $settings_fields;
 }