*/ namespace ThemeAtelier\Darkify\Admin\Views; use ThemeAtelier\Darkify\Admin\Schema\SchemaRegistry; class Tools { /** * Create Option fields for the setting options. * * @param string $prefix Option setting key prefix. * @return void */ public static function options($prefix) { SchemaRegistry::createSection( $prefix, array( 'id' => 'tools', 'title' => esc_html__('Tools', 'darkify'), 'icon' => 'icofont-holding-hands', 'fields' => array( // Intro line, rendered plain above the section cards. array( 'type' => 'page_hint', 'content' => esc_html__('Maintenance, backup, and restore utilities.', 'darkify'), ), // ===== DATA ===== array( 'type' => 'heading', 'title' => esc_html__('Data', 'darkify'), 'section_start' => true, ), array( 'id' => 'darkify_data_remove', 'type' => 'switcher', 'title' => esc_html__('Clean-up Data on Deletion', 'darkify'), 'title_help' => '