C:\xampp\htdocs\landing\wp-content\plugins\penci-framework\shortcodes\vc_button\settings.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
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
<?php
if ( ! defined'ABSPATH' ) ) {
    die( 
'-1' );
}

$shotcode_id 'buton';
$group_icon  'Icon';
$group_color 'Color';

// Shortcode settings
return array(
    
'name'          => esc_html__'Button''penci-framework' ),
    
'weight'        => 700,
    
'js_view'       => 'VcButton3View',
    
'custom_markup' => '{{title}}<div class="vc_btn3-container"><button class="vc_general vc_btn3 vc_btn3-size-sm vc_btn3-shape-{{ params.shape }} vc_btn3-style-modern vc_btn3-color-grey">{{{ params.title }}}</button></div>',
    
'params'        => array_merge(
        array(
            array(
                
'type'       => 'textfield',
                
'heading'    => __'Text''penci-framework' ),
                
'param_name' => 'title',
                
'value'      => __'Text on the button''penci-framework' ),
            ),
            array(
                
'type'       => 'checkbox',
                
'heading'    => __'Turn on uppearcase for title ?''penci-framework' ),
                
'param_name' => 'title_upper'
            
),
            array(
                
'type'        => 'vc_link',
                
'heading'     => __'URL (Link)''penci-framework' ),
                
'param_name'  => 'btn_link',
                
'description' => __'Add link to button.''penci-framework' ),
            ),
            array(
                
'type'       => 'dropdown',
                
'heading'    => __'Style''penci-framework' ),
                
'param_name' => 'btn_style',
                
'value'      => array(
                    
__'Fill button''penci-framework' )        => 'fill',
                    
__'Simple link''penci-framework' )        => 'simple',
                    
__'Transparent button''penci-framework' ) => 'trans',
                ),
                
'std'        => 'fill',
            ),
            array(
                
'type'        => 'dropdown',
                
'heading'     => __'Alignment''penci-framework' ),
                
'param_name'  => 'align',
                
'description' => __'Select button alignment.''penci-framework' ),
                
'value'       => array(
                    
__'Inline''penci-framework' ) => 'inline',
                    
__'Left''penci-framework' )   => 'left',
                    
__'Right''penci-framework' )  => 'right',
                    
__'Center''penci-framework' ) => 'center',
                ),
            ),
            array(
                
'type'       => 'checkbox',
                
'heading'    => __'Set full width button?''penci-framework' ),
                
'param_name' => 'button_fullwidth'
            
),
            array(
                
'type'        => 'iconpicker',
                
'heading'     => __'Icon''penci-framework' ),
                
'param_name'  => 'icon_fontawesome',
                
'value'       => '',
                
'settings'    => array(
                    
'emptyIcon'    => true,
                    
'iconsPerPage' => 4000,
                ),
                
'dependency'  => array(
                    
'element' => '_icon_type',
                    
'value'   => 'fontawesome',
                ),
                
'description' => __'Select icon from library.''penci-framework' ),
            ),
            array(
                
'type'        => 'dropdown',
                
'heading'     => __'Icon Alignment''penci-framework' ),
                
'description' => __'Select icon alignment.''penci-framework' ),
                
'param_name'  => 'i_align',
                
'value'       => array(
                    
__'Left''penci-framework' )  => 'left',
                    
__'Right''penci-framework' ) => 'right',
                )
            ),
            array(
                
'type'             => 'penci_only_number',
                
'param_name'       => '_i_fsize',
                
'heading'          => __'Custom size for icon''penci-framework' ),
                
'value'            => '',
                
'std'              => '',
                
'suffix'           => 'px',
                
'min'              => 1,
                
'max'              => 1000,
                
'edit_field_class' => 'vc_col-sm-6',
            ),
            array(
                
'type'             => 'penci_only_number',
                
'param_name'       => '_i_pleft',
                
'heading'          => __'Icon margin left''penci-framework' ),
                
'value'            => '',
                
'std'              => '',
                
'suffix'           => 'px',
                
'min'              => 1,
                
'max'              => 1000,
                
'edit_field_class' => 'vc_col-sm-6',
            ),
            array(
                
'type'             => 'penci_only_number',
                
'param_name'       => '_i_pright',
                
'heading'          => __'Icon margin right''penci-framework' ),
                
'value'            => '',
                
'std'              => '',
                
'suffix'           => 'px',
                
'min'              => 1,
                
'max'              => 1000,
                
'edit_field_class' => 'vc_col-sm-6',
            ),
            array(
                
'type'             => 'penci_only_number',
                
'param_name'       => 'btn_plr',
                
'heading'          => __'Button padding left/right''penci-framework' ),
                
'value'            => '',
                
'std'              => '',
                
'suffix'           => 'px',
                
'min'              => 1,
                
'max'              => 1000,
                
'dependency'       => array( 'element' => 'btn_style''value' => array( 'fill''trans' ) ),
                
'edit_field_class' => 'vc_col-sm-6',
            ),
            array(
                
'type'             => 'penci_only_number',
                
'param_name'       => 'btn_ptb',
                
'heading'          => __'Button padding top/bottom''penci-framework' ),
                
'value'            => '',
                
'std'              => '',
                
'suffix'           => 'px',
                
'min'              => 1,
                
'max'              => 1000,
                
'dependency'       => array( 'element' => 'btn_style''value' => array( 'fill''trans' ) ),
                
'edit_field_class' => 'vc_col-sm-6',
            ),
            array(
                
'type'             => 'penci_only_number',
                
'param_name'       => 'btn_radius',
                
'heading'          => __'Button border radius''penci-framework' ),
                
'value'            => '',
                
'std'              => '',
                
'suffix'           => 'px',
                
'min'              => 1,
                
'max'              => 1000,
                
'dependency'       => array( 'element' => 'btn_style''value' => array( 'fill''trans' ) ),
                
'edit_field_class' => 'vc_col-sm-6',
            ),
            array(
                
'type'             => 'penci_only_number',
                
'param_name'       => 'btn_width',
                
'heading'          => __'Button border width''penci-framework' ),
                
'value'            => '',
                
'std'              => '',
                
'suffix'           => 'px',
                
'min'              => 1,
                
'max'              => 1000,
                
'dependency'       => array( 'element' => 'btn_style''value' => array( 'fill''trans' ) ),
                
'edit_field_class' => 'vc_col-sm-6',
            ),
            
// Button 1
            
array(
                
'type'             => 'colorpicker',
                
'heading'          => esc_html__'Button text color''penci-framework' ),
                
'param_name'       => 'btn_text_color',
                
'group'            => $group_color,
            ),
            array(
                
'type'             => 'colorpicker',
                
'heading'          => esc_html__'Icon color''penci-framework' ),
                
'param_name'       => 'icon_color',
                
'group'            => $group_color,
            ),
            array(
                
'type'             => 'colorpicker',
                
'heading'          => esc_html__'Button border color''penci-framework' ),
                
'param_name'       => 'btn_bcolor',
                
'group'            => $group_color,
                
'edit_field_class' => 'vc_col-sm-6',
            ),
            array(
                
'type'             => 'colorpicker',
                
'heading'          => esc_html__'Button background color''penci-framework' ),
                
'param_name'       => 'btn_bg',
                
'group'            => $group_color,
                
'edit_field_class' => 'vc_col-sm-6',
            ),
            array(
                
'type'             => 'colorpicker',
                
'heading'          => esc_html__'Button text hover color''penci-framework' ),
                
'param_name'       => 'btn_text_hcolor',
                
'group'            => $group_color,
                
'edit_field_class' => 'vc_col-sm-6',
            ),
            array(
                
'type'             => 'colorpicker',
                
'heading'          => esc_html__'Button border hover color''penci-framework' ),
                
'param_name'       => 'btn_hoverbcolor',
                
'group'            => $group_color,
                
'edit_field_class' => 'vc_col-sm-6',
            ),
            array(
                
'type'             => 'colorpicker',
                
'heading'          => esc_html__'Button background hover color''penci-framework' ),
                
'param_name'       => 'btn_hoverbg',
                
'group'            => $group_color,
                
'edit_field_class' => 'vc_col-sm-6',
            ),
            array(
                
'type'             => 'colorpicker',
                
'heading'          => esc_html__'Button hover icon color''penci-framework' ),
                
'param_name'       => 'icon_hover_color',
                
'group'            => $group_color,
                
'edit_field_class' => 'vc_col-sm-6',
            ),
        ),
        
Penci_Framework_Shortcode_Params::block_option_typo(
            array(
                
'prefix'       => 'btn',
                
'title'        => esc_html__'Button settings' ),
                
'google_fonts' => Penci_Helper_Shortcode::get_font_family'roboto' ),
                
'font-size'    => '',
            )
        )
    )
);
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586