The Redux Framework configurati配置on file (sample-config.php) comes with a variety of arguments to customize the options panel. The arguments are set in the sample-config setArguments()
function with the exception of help_tabs
and help_sidebar
, which are located in the setHelpTabs()
function.
框架配置文件提供了多种多样的方式定制选项面板。所有参数在sample-config.php文件的setArguments()函数里。 setHelpTabs()
定义了help_tabs
and help_sidebar
The default setArguements()
function is as follows:默认的如下
01
02
03
04
05
06
07
08
09
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
public
function
setArguments() {
$theme
= wp_get_theme();
$this
->args =
array
(
'opt_name'
=>
'redux_demo'
,
'display_name'
=>
$theme
->get(
'Name'
),
'display_version'
=>
$theme
->get(
'Version'
),
'menu_type'
=>
'menu'
,
'allow_sub_menu'
=> true,
'menu_title'
=> __(
'Sample Options'
,
'redux-framework-demo'
),
'page_title'
=> __(
'Sample Options'
,
'redux-framework-demo'
),
'google_api_key'
=>
''
,
'async_typography'
=> true,
'admin_bar'
=> true,
'global_variable'
=>
''
,
'dev_mode'
=> true,
'customizer'
=> true,
'page_priority'
=> null,
'page_parent'
=>
'themes.php'
,
'page_permissions'
=>
'manage_options'
,
'menu_icon'
=>
''
,
'last_tab'
=>
''
,
'page_icon'
=>
'icon-themes'
,
'page_slug'
=>
'_options'
,
'save_defaults'
=> true,
'default_show'
=> false,
'default_mark'
=>
''
,
'show_import_export'
=> true,
'class'
=>
''
,
'transient_time'
=> 60 * MINUTE_IN_SECONDS,
'output'
=> true,
'output_tag'
=> true,
'footer_credit'
=>
''
,
'network_admin'
=> false,
'network_sites'
=> true,
'hints'
=>
array
(
'icon'
=>
'icon-question-sign'
,
'icon_position'
=>
'right'
,
'icon_color'
=>
'lightgray'
,
'icon_size'
=>
'normal'
,
'tip_style'
=>
array
(
'color'
=>
'light'
,
'shadow'
=> true,
'rounded'
=> false,
'style'
=>
''
,
),
'tip_position'
=>
array
(
'my'
=>
'top left'
,
'at'
=>
'bottom right'
,
),
'tip_effect'
=>
array
(
'show'
=>
array
(
'effect'
=>
'slide'
,
'duration'
=>
'500'
,
'event'
=>
'mouseover'
,
),
'hide'
=>
array
(
'effect'
=>
'slide'
,
'duration'
=>
'500'
,
'event'
=>
'click mouseleave'
,
),
),
'intro_text'
=> __(
'<br />This text is displayed above the options panel. It isn\'t required, but more info is always better! The intro_text field accepts all HTML.<br />'
,
'redux-framework-demo'
);
'footer_text'
=> __(
'<br />This text is displayed below the options panel. It isn\'t required, but more info is always better! The footer_text field accepts all HTML.<br />'
,
'redux-framework-demo'
);
)
);
$this
->args[
'share_icons'
][] =
array
(
'title'
=>
'Visit us on GitHub'
,
'icon'
=>
'el-icon-github'
// 'img' => '', // You can use icon OR img. IMG needs to be a full URL.
);
$this
->args[
'share_icons'
][] =
array
(
'title'
=>
'Like us on Facebook'
,
'icon'
=>
'el-icon-facebook'
);
$this
->args[
'share_icons'
][] =
array
(
'title'
=>
'Follow us on Twitter'
,
'icon'
=>
'el-icon-twitter'
);
$this
->args[
'share_icons'
][] =
array
(
'title'
=>
'Find us on LinkedIn'
,
'icon'
=>
'el-icon-linkedin'
);
}
|