-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmy-dark-mode-fields.php
55 lines (48 loc) · 1.26 KB
/
my-dark-mode-fields.php
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
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
add_settings_section(
'my_dark_mode_section',
__('', 'my-dark-mode'),
'my_dark_mode_lite_section_callback',
'my_dark_mode'
);
add_settings_field(
'my_dark_mode_switcher',
__('<h1>Choose a switcher:</h1>', 'my-dark-mode'),
'my_dark_mode_lite_switcher_section_callback',
'my_dark_mode',
'my_dark_mode_section'
);
add_settings_field(
'my_dark_mode_colors',
__('<h1>Define Colors:<h1>', 'my-dark-mode'),
'my_dark_mode_lite_colors_callback',
'my_dark_mode',
'my_dark_mode_section'
);
add_settings_field(
'my_dark_mode_button_code',
__('<h1>Button Code:</h1>', 'my-dark-mode'),
'my_dark_mode_button_lite_code_callback',
'my_dark_mode',
'my_dark_mode_section',
array('class' => 'premium-wrapper')
);
add_settings_field(
'my_dark_mode_logo',
__('<h1>Custom Logo:<h1>', 'my-dark-mode'),
'my_dark_mode_lite_logo_callback',
'my_dark_mode',
'my_dark_mode_section',
array('class' => 'premium-wrapper')
);
add_settings_field(
'my_dark_mode_custom_css',
__('<h1>Custom CSS:</h1>', 'my-dark-mode'),
'my_dark_mode_lite_custom_css_callback',
'my_dark_mode',
'my_dark_mode_section',
array('class' => 'premium-wrapper')
);