@@ 27-42 (lines=16) @@ | ||
24 | * |
|
25 | * @since 3.0.0 |
|
26 | */ |
|
27 | public function __construct() { |
|
28 | ||
29 | $this->id = $tab = 'add-ons'; |
|
30 | $this->option_group = $page = 'add-ons'; |
|
31 | $this->label = __( 'Add-ons', 'google-calendar-events' ); |
|
32 | $this->description = ''; |
|
33 | $this->sections = $this->add_sections(); |
|
34 | $this->fields = $this->add_fields(); |
|
35 | ||
36 | // Disable the submit button for this page. |
|
37 | add_filter( 'simcal_admin_page_' . $page . '_' . $tab . '_submit', function() { return false; } ); |
|
38 | ||
39 | // Add html. |
|
40 | add_action( 'simcal_admin_page_' . $page . '_' . $tab . '_end', array( $this, 'html' ) ); |
|
41 | ||
42 | } |
|
43 | ||
44 | /** |
|
45 | * Output page markup. |
@@ 29-43 (lines=15) @@ | ||
26 | * |
|
27 | * @since 3.0.0 |
|
28 | */ |
|
29 | public function __construct() { |
|
30 | ||
31 | $this->id = $tab = 'licenses'; |
|
32 | $this->option_group = $page = 'settings'; |
|
33 | $this->label = __( 'Add-on Licenses', 'google-calendar-events' ); |
|
34 | //$this->description = __( 'Manage your premium add-on license keys.', 'google-calendar-events' ); |
|
35 | $this->sections = $this->add_sections(); |
|
36 | $this->fields = $this->add_fields(); |
|
37 | ||
38 | // Disabled the 'save changes' button for this page. |
|
39 | add_filter( 'simcal_admin_page_' . $page . '_' . $tab . '_submit', function() { return false; } ); |
|
40 | ||
41 | // Add html to page. |
|
42 | add_action( 'simcal_admin_page_' . $page . '_' . $tab . '_end', array( __CLASS__, 'html' ) ); |
|
43 | } |
|
44 | ||
45 | /** |
|
46 | * Add additional html. |
@@ 29-43 (lines=15) @@ | ||
26 | * |
|
27 | * @since 3.0.0 |
|
28 | */ |
|
29 | public function __construct() { |
|
30 | ||
31 | $this->id = $tab = 'system-status'; |
|
32 | $this->option_group = $page = 'tools'; |
|
33 | $this->label = __( 'System Report', 'google-calendar-events' ); |
|
34 | $this->description = ''; |
|
35 | $this->sections = $this->add_sections(); |
|
36 | $this->fields = $this->add_fields(); |
|
37 | ||
38 | // Disable the submit button for this page. |
|
39 | add_filter( 'simcal_admin_page_' . $page . '_' . $tab . '_submit', function() { return false; } ); |
|
40 | ||
41 | // Add html. |
|
42 | add_action( 'simcal_admin_page_' . $page . '_' . $tab . '_end', array( $this, 'html' ) ); |
|
43 | } |
|
44 | ||
45 | /** |
|
46 | * Output page markup. |