1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
<?php
namespace AutomateWoo;
defined( 'ABSPATH' ) || exit;
/** * Settings_Tab_Status class. */ class Settings_Tab_Status extends Admin_Settings_Tab_Abstract {
/** * Constructor. */ public function __construct() { $this->id = 'status'; $this->name = __( 'Status', 'automatewoo' ); }
/** * Output settings tab. */ public function output() { Admin::get_view( 'system-check' ); $this->output_settings_form(); }
/** * Get tab settings. * * @return array */ public function get_settings() { return [ [ 'type' => 'title', 'id' => 'automatewoo_system_check_options', ], [ 'title' => __( 'Enable Background Checks', 'automatewoo' ), 'id' => 'automatewoo_enable_background_system_check', 'desc' => __( 'Allow occasional background checks for major system issues. If an issue is detected an admin notice will appear.', 'automatewoo' ), 'default' => 'yes', 'autoload' => true, 'type' => 'checkbox', ], [ 'type' => 'sectionend', 'id' => 'automatewoo_system_check_options', ], ]; } }
return new Settings_Tab_Status();
|