redux参数入门

Getting started with Arguments

redux参数入门

/ Uncategorized  /Getting started with Arguments

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 (
         'url'   => 'https://github.com/ReduxFramework/ReduxFramework' ,
         '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 (
         'url'   => 'http://twitter.com/reduxframework' ,
         'title' => 'Follow us on Twitter' ,
         'icon'  => 'el-icon-twitter'
     );
     $this ->args[ 'share_icons' ][] = array (
         'url'   => 'http://www.linkedin.com/company/redux-framework' ,
         'title' => 'Find us on LinkedIn' ,
         'icon'  => 'el-icon-linkedin'
     );
}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值