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
|
<?php $group_images = 'Images'; $group_color = 'Color';
// Shortcode settings return array( 'name' => esc_html__( 'Image Box', 'penci-framework' ), 'weight' => 828, 'params' => array_merge( Penci_Framework_Shortcode_Params::block_title(), Penci_Framework_Shortcode_Params::block_option_block_title(), array( array( 'type' => 'textfield', 'param_name' => 'box__settings', 'heading' => 'Box settings', 'value' => '', 'edit_field_class' => 'penci-param-heading-wrapper no-top-margin vc_column vc_col-sm-12', ), array( 'type' => 'dropdown', 'heading' => __( 'Box style', 'penci-framework' ), 'param_name' => 'box_style', 'value' => array( __( 'Style 1', 'penci-framework' ) => 'boxes-style-1', __( 'Style 2', 'penci-framework' ) => 'boxes-style-2', __( 'Style 3', 'penci-framework' ) => 'boxes-style-3', __( 'Style 4', 'penci-framework' ) => 'boxes-style-4', ) ), array( 'type' => 'dropdown', 'heading' => __( 'Columns', 'penci-framework' ), 'param_name' => 'columns', 'value' => array( __( '1 Column', 'penci-framework' ) => 'column-1', __( '2 Columns', 'penci-framework' ) => 'columns-2', __( '3 Columns', 'penci-framework' ) => 'columns-3', __( '4 Columns', 'penci-framework' ) => 'columns-4', ), 'std' => 'columns-3' ), array( 'type' => 'textfield', 'heading' => esc_html__( 'Set Height for Crop Banner Images:', 'penci-framework' ), 'param_name' => 'height_img', 'std' => '', 'description' => esc_html__( 'Example if you want to set the images with ratio width/height = 4/3 = 133% - Let\'s fill here is 133. ( Default is 67 )', 'penci-framework' ), ), array( 'type' => 'checkbox', 'heading' => __( 'Disable space between element?', 'penci-framework' ), 'param_name' => 'dis_space', ), array( 'type' => 'param_group', 'heading' => '', 'param_name' => 'images', 'group' => $group_images, 'value' => urlencode( json_encode( array( array( 'image' => '', 'title' => 'Custom title 1', 'url' => '#custom_url', 'link_target' => '' ), array( 'image' => '', 'title' => 'Custom title 2', 'url' => '#custom_url', 'link_target' => '' ), array( 'image' => '', 'title' => 'Custom title 3', 'url' => '#custom_url', 'link_target' => '' ), ) ) ), 'params' => array( array( 'type' => 'attach_image', 'heading' => __( 'Image', 'penci-framework' ), 'param_name' => 'image', 'value' => '', 'description' => __( 'Select image from media library.', 'penci-framework' ), ), array( 'type' => 'textfield', 'heading' => __( 'Custom title', 'penci-framework' ), 'param_name' => 'title', 'admin_label' => true, ), array( 'type' => 'textfield', 'heading' => __( 'Custom url', 'penci-framework' ), 'param_name' => 'url', 'admin_label' => true, ), array( 'type' => 'checkbox', 'heading' => __( 'Open in new window', 'penci-framework' ), 'param_name' => 'link_target', ), ), ), ), Penci_Framework_Shortcode_Params::color_params( '', false ), array( array( 'type' => 'textfield', 'param_name' => 'color_image_box_css', 'heading' => esc_html__( 'Image box colors', 'penci-framework' ), 'value' => '', 'group' => $group_color, 'edit_field_class' => 'penci-param-heading-wrapper no-top-margin vc_column vc_col-sm-12', ), array( 'type' => 'colorpicker', 'heading' => esc_html__( 'Background and Border color', 'penci-framework' ), 'param_name' => 'img_box_border_color', 'group' => $group_color, 'edit_field_class' => 'vc_col-sm-6', ), array( 'type' => 'colorpicker', 'heading' => esc_html__( 'Text color', 'penci-framework' ), 'param_name' => 'img_box_text_color', 'group' => $group_color, 'edit_field_class' => 'vc_col-sm-6', ), array( 'type' => 'colorpicker', 'heading' => esc_html__( 'Hover text color', 'penci-framework' ), 'param_name' => 'img_box_text_hcolor', 'group' => $group_color, 'edit_field_class' => 'vc_col-sm-6', ), ), Penci_Framework_Shortcode_Params::block_option_note_custom_fonts(), Penci_Framework_Shortcode_Params::block_option_typo( array( 'prefix' => 'block_title', 'title' => esc_html__( 'Block title settings' ), 'google_fonts' => Penci_Helper_Shortcode::get_font_family( 'oswald' ), 'font-size' => '18px', ) ), Penci_Framework_Shortcode_Params::block_option_typo( array( 'prefix' => 'img_box_text', 'title' => esc_html__( 'Text settings' ), 'google_fonts' => Penci_Helper_Shortcode::get_font_family( 'muktavaani' ), 'font-size' => '14px', ) ) ), 'js_view' => 'VcPenciShortcodeView', );
|