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
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
|
<?php if ( ! defined( 'ABSPATH' ) ) { die( '-1' ); }
$shotcode_id = 'fancy_heading'; $group_icon = 'Icon'; $group_color = 'Color';
// Shortcode settings return array( 'name' => esc_html__( 'Fancy Heading', 'penci-framework' ), 'weight' => 700, 'params' => array_merge( array( array( 'type' => 'dropdown', 'heading' => esc_html__( 'Text Align', 'penci-framework' ), 'param_name' => '_text_align', 'std' => 'center', 'value' => array( esc_html__( 'Left', 'penci-framework' ) => 'left', esc_html__( 'Center', 'penci-framework' ) => 'center', esc_html__( 'Right', 'penci-framework' ) => 'right', ), ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Subtitle:', 'penci-framework' ), 'param_name' => 'subtitle', ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Subtitle tag', 'penci-framework' ), 'param_name' => 'subtitle_tag', 'std' => 'div', 'value' => array( 'h1' => 'h1', 'h2' => 'h2', 'h3' => 'h3', 'h4' => 'h4', 'h5' => 'h5', 'h6' => 'h6', 'span' => 'span', 'p' => 'p', 'div' => 'div', ), ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Subtitle position', 'penci-framework' ), 'param_name' => 'subtitle_pos', 'std' => 'above', 'value' => array( esc_html__( 'Above the title', 'penci-framework' ) => 'above', esc_html__( 'Below the title', 'penci-framework' ) => 'below', esc_html__( 'Below the separator', 'penci-framework' ) => 'belowline', ), ),array( 'type' => 'penci_number', 'param_name' => 'subtitle_margin_top', 'heading' => __( 'Custom margin top for subtitle', 'penci-framework' ), 'value' => '', 'std' => '', 'suffix' => 'px', 'min' => 1, ), array( 'type' => 'penci_number', 'param_name' => 'subtitle_margin_bottom', 'heading' => __( 'Custom margin bottom for subtitle', 'penci-framework' ), 'value' => '', 'std' => '', 'suffix' => 'px', 'min' => 1, ), array( 'type' => 'penci_number', 'param_name' => 'subtitle_width', 'heading' => __( 'Custom width for subtitle', 'penci-framework' ), 'value' => '', 'std' => '', 'suffix' => 'px', 'min' => 1, ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Title:', 'penci-framework' ), 'param_name' => 'title', 'admin_label' => true, 'value' => esc_html__( 'This is custom heading element', 'penci-framework' ) ), array( 'type' => 'dropdown', 'heading' => esc_html__( 'Title tag', 'penci-framework' ), 'param_name' => 'title_tag', 'std' => 'h2', 'value' => array( 'h1' => 'h1', 'h2' => 'h2', 'h3' => 'h3', 'h4' => 'h4', 'h5' => 'h5', 'h6' => 'h6', 'span' => 'span', 'p' => 'p', 'div' => 'div', ), ), array( 'type' => 'checkbox', 'heading' => __( 'Turn on upppearcase for title', 'penci-framework' ), 'param_name' => 'turn_on_title', ), array( 'type' => 'checkbox', 'heading' => __( 'Use separator', 'penci-framework' ), 'param_name' => '_use_separator', ), array( 'type' => 'dropdown', 'heading' => __( 'Style', 'penci-framework' ), 'param_name' => 'separator_style', 'value' => array( 'Border' => '', 'Dashed' => 'dashed', 'Dotted' => 'dotted', 'Double' => 'double' ), 'description' => __( 'Separator display style.', 'penci-framework' ), 'dependency' => array( 'element' => '_use_separator', 'value' => 'true', ), ), array( 'type' => 'checkbox', 'heading' => __( 'Add separator icon?', 'penci-framework' ), 'param_name' => 'add_separator_icon', 'dependency' => array( 'element' => 'separator_style', 'value_not_equal_to' => 'double' ), ), array( 'type' => 'dropdown', 'heading' => __( 'Separator Border width', 'penci-framework' ), 'param_name' => 'separator_border_width', 'value' => array( '1px' => '', '2px' => '2', '3px' => '3', '4px' => '4', '5px' => '5', '6px' => '6', '7px' => '7', '8px' => '8', '9px' => '9', '10px' => '10', ), 'description' => __( 'Select border width (pixels).', 'penci-framework' ), 'dependency' => array( 'element' => '_use_separator', 'value' => 'true', ), ), array( 'type' => 'penci_number', 'param_name' => 'separator_width', 'heading' => __( 'Separator width', 'penci-framework' ), 'value' => '', 'std' => '60px', 'suffix' => 'px', 'min' => 1, 'dependency' => array( 'element' => '_use_separator', 'value' => 'true', ), ), array( 'type' => 'penci_number', 'param_name' => 'separator_margin_top', 'heading' => __( 'Custom margin top for Separator', 'penci-framework' ), 'value' => '', 'std' => '', 'suffix' => 'px', 'min' => 1, ), array( 'type' => 'penci_number', 'param_name' => 'content_margin_top', 'heading' => __( 'Custom margin top for Content', 'penci-framework' ), 'value' => '', 'std' => '', 'suffix' => 'px', 'min' => 1, ), array( 'type' => 'penci_number', 'param_name' => 'content_width', 'heading' => __( 'Custom width for Content', 'penci-framework' ), 'value' => '', 'std' => '', 'suffix' => 'px', 'min' => 1, ), array( 'type' => 'textarea_html', 'holder' => 'div', 'heading' => __( 'Content', 'penci-framework' ), 'param_name' => 'content', 'value' => __( '<p>I am text block. Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.</p>', 'penci-framework' ), ), array( 'type' => 'dropdown', 'heading' => __( 'Icon library', 'penci-framework' ), 'value' => array( __( 'Font Awesome', 'penci-framework' ) => 'fontawesome', __( 'Open Iconic', 'penci-framework' ) => 'openiconic', __( 'Typicons', 'penci-framework' ) => 'typicons', __( 'Entypo', 'penci-framework' ) => 'entypo', __( 'Linecons', 'penci-framework' ) => 'linecons', __( 'Mono Social', 'penci-framework' ) => 'monosocial', __( 'Material', 'penci-framework' ) => 'material', ), 'param_name' => '_icon_type', 'description' => __( 'Select icon library.', 'penci-framework' ), 'dependency' => array( 'element' => 'add_separator_icon', 'value' => 'true', ), 'group' => $group_icon, ), array( 'type' => 'iconpicker', 'heading' => __( 'Icon', 'penci-framework' ), 'param_name' => 'icon_fontawesome', 'value' => 'fa fa-adjust', // default value to backend editor admin_label 'settings' => array( 'emptyIcon' => false, // default true, display an "EMPTY" icon? 'iconsPerPage' => 4000, // default 100, how many icons per/page to display, we use (big number) to display all icons in single page ), 'dependency' => array( 'element' => '_icon_type', 'value' => 'fontawesome', ), 'description' => __( 'Select icon from library.', 'penci-framework' ), 'group' => $group_icon, ), array( 'type' => 'iconpicker', 'heading' => __( 'Icon', 'penci-framework' ), 'param_name' => 'icon_openiconic', 'value' => 'vc-oi vc-oi-dial', // default value to backend editor admin_label 'settings' => array( 'emptyIcon' => false, // default true, display an "EMPTY" icon? 'type' => 'openiconic', 'iconsPerPage' => 4000, // default 100, how many icons per/page to display ), 'dependency' => array( 'element' => '_icon_type', 'value' => 'openiconic', ), 'description' => __( 'Select icon from library.', 'penci-framework' ), 'group' => $group_icon, ), array( 'type' => 'iconpicker', 'heading' => __( 'Icon', 'penci-framework' ), 'param_name' => 'icon_typicons', 'value' => 'typcn typcn-adjust-brightness', // default value to backend editor admin_label 'settings' => array( 'emptyIcon' => false, // default true, display an "EMPTY" icon? 'type' => 'typicons', 'iconsPerPage' => 4000, // default 100, how many icons per/page to display ), 'dependency' => array( 'element' => '_icon_type', 'value' => 'typicons', ), 'description' => __( 'Select icon from library.', 'penci-framework' ), 'group' => $group_icon, ), array( 'type' => 'iconpicker', 'heading' => __( 'Icon', 'penci-framework' ), 'param_name' => 'icon_entypo', 'value' => 'entypo-icon entypo-icon-note', // default value to backend editor admin_label 'settings' => array( 'emptyIcon' => false, // default true, display an "EMPTY" icon? 'type' => 'entypo', 'iconsPerPage' => 4000, // default 100, how many icons per/page to display ), 'dependency' => array( 'element' => '_icon_type', 'value' => 'entypo', ), 'group' => $group_icon, ), array( 'type' => 'iconpicker', 'heading' => __( 'Icon', 'penci-framework' ), 'param_name' => 'icon_linecons', 'value' => 'vc_li vc_li-heart', // default value to backend editor admin_label 'settings' => array( 'emptyIcon' => false, // default true, display an "EMPTY" icon? 'type' => 'linecons', 'iconsPerPage' => 4000, // default 100, how many icons per/page to display ), 'dependency' => array( 'element' => '_icon_type', 'value' => 'linecons', ), 'description' => __( 'Select icon from library.', 'penci-framework' ), 'group' => $group_icon, ), array( 'type' => 'iconpicker', 'heading' => __( 'Icon', 'penci-framework' ), 'param_name' => 'icon_monosocial', 'value' => 'vc-mono vc-mono-fivehundredpx', // default value to backend editor admin_label 'settings' => array( 'emptyIcon' => false, // default true, display an "EMPTY" icon? 'type' => 'monosocial', 'iconsPerPage' => 4000, // default 100, how many icons per/page to display ), 'dependency' => array( 'element' => '_icon_type', 'value' => 'monosocial', ), 'description' => __( 'Select icon from library.', 'penci-framework' ), 'group' => $group_icon, ), array( 'type' => 'iconpicker', 'heading' => __( 'Icon', 'penci-framework' ), 'param_name' => 'icon_material', 'value' => 'vc-material vc-material-cake', // default value to backend editor admin_label 'settings' => array( 'emptyIcon' => false, // default true, display an "EMPTY" icon? 'type' => 'material', 'iconsPerPage' => 4000, // default 100, how many icons per/page to display ), 'dependency' => array( 'element' => '_icon_type', 'value' => 'material', ), 'description' => __( 'Select icon from library.', 'penci-framework' ), 'group' => $group_icon, ), array( 'type' => 'penci_number', 'param_name' => 'icon_size', 'heading' => __( 'Size Icon', 'penci-framework' ), 'value' => '', 'std' => '20px', 'suffix' => 'px', 'min' => 1, 'group' => $group_icon, 'dependency' => array( 'element' => 'add_separator_icon', 'value' => 'true', ), ), array( 'type' => 'penci_number', 'param_name' => 'icon_mar_top_bottom', 'heading' => __( 'Custom margin top and bottom for Icon', 'penci-framework' ), 'value' => '', 'std' => '10px', 'suffix' => 'px', 'min' => 1, 'group' => $group_icon, 'dependency' => array( 'element' => 'add_separator_icon', 'value' => 'true', ), ), array( 'type' => 'penci_number', 'param_name' => 'icon_mar_left_right', 'heading' => __( 'Custom margin right and left for Icon', 'penci-framework' ), 'value' => '', 'std' => '15px', 'suffix' => 'px', 'min' => 1, 'group' => $group_icon, 'dependency' => array( 'element' => 'add_separator_icon', 'value' => 'true', ), ), array( 'type' => 'colorpicker', 'heading' => esc_html__( 'Title color', 'penci-framework' ), 'param_name' => 'title_color', 'group' => $group_color, 'edit_field_class' => 'vc_col-sm-6', ), array( 'type' => 'colorpicker', 'heading' => esc_html__( 'Subtitle color', 'penci-framework' ), 'param_name' => 'subtitle_color', 'group' => $group_color, 'edit_field_class' => 'vc_col-sm-6', ), array( 'type' => 'colorpicker', 'heading' => esc_html__( 'Content color', 'penci-framework' ), 'param_name' => '_content_color', 'group' => $group_color, ), array( 'type' => 'colorpicker', 'heading' => esc_html__( 'Custom icon color for Separator', 'penci-framework' ), 'param_name' => '_separator_icon_color', 'group' => $group_color, 'edit_field_class' => 'vc_col-sm-6', ), array( 'type' => 'colorpicker', 'heading' => esc_html__( 'Custom border color for Separator', 'penci-framework' ), 'param_name' => '_separator_border_color', 'group' => $group_color, 'edit_field_class' => 'vc_col-sm-6', ), ), Penci_Framework_Shortcode_Params::block_option_typo( array( 'prefix' => 'title', 'title' => esc_html__( 'Title settings' ), 'google_fonts' => Penci_Helper_Shortcode::get_font_family( 'muktavaani' ), 'font-size' => '36px', 'font_style' => 'normal', ) ), Penci_Framework_Shortcode_Params::block_option_typo( array( 'prefix' => 'subtitle', 'title' => esc_html__( 'Subtitle settings' ), 'google_fonts' => Penci_Helper_Shortcode::get_font_family( 'roboto' ), 'font-size' => '16px', 'font_style' => 'normal', ) ), Penci_Framework_Shortcode_Params::block_option_typo( array( 'prefix' => 'content', 'title' => esc_html__( 'Content settings' ), 'google_fonts' => Penci_Helper_Shortcode::get_font_family( 'roboto' ), 'font-size' => '16px', ) ) ), 'js_view' => 'VcPenciShortcodeView', );
|