PluginProbe
Forumax – AI Powered Advanced Community Forum Plugin / 2.2.0
Forumax – AI Powered Advanced Community Forum Plugin v2.2.0
2.4.4 2.4.3 2.4.2 2.4.1 2.4.0 trunk 1.0.8 1.1.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 2.0.0 2.1.0 All 29 releases
← All changes | includes/admin/options/options_mini_profile.php +227 -227 1.3.32.2.0 View file →
@@ -1,228 +1,228 @@
1 -<?php
2 -CSF::createSection(
3 - $prefix,
4 - [
5 - 'id' => 'bbpc_mini_profile',
6 - 'title' => esc_html__( 'Mini Profile', 'bbp-core' ),
7 - 'icon' => 'dashicons dashicons-admin-users',
8 - 'fields' => [
9 - [
10 - 'type' => 'subheading',
11 - 'content' => esc_html__( 'Mini Profile', 'bbp-core' ),
12 - ],
13 -
14 - [
15 - 'id' => 'bbpc_mini_profile',
16 - 'type' => 'switcher',
17 - 'default' => false,
18 - 'title' => esc_html__( 'Show / Hide', 'bbp-core' ),
19 - 'class' => 'st-pro-notice'
20 - ],
21 -
22 - [
23 - 'type' => 'subheading',
24 - 'content' => esc_html__( 'Avatar', 'bbp-core' ),
25 - 'dependency' => [ 'bbpc_mini_profile', '==', true, ],
26 - ],
27 -
28 - [
29 - 'id' => 'bbpc_profile_location',
30 - 'type' => 'fieldset',
31 - 'title' => esc_html__( 'Select Location', 'bbp-core' ),
32 - 'subtitle' => esc_html__( 'Select the menu location to display the mini profile.', 'bbp-core' ),
33 - 'dependency' => [ 'bbpc_mini_profile', '==', true, ],
34 - 'class' => 'st-pro-notice',
35 - 'fields' => [
36 - [
37 - 'id' => 'location_option',
38 - 'type' => 'select',
39 - 'title' => esc_html__( 'Menu Location', 'bbp-core' ),
40 - 'options' => 'bbpc_get_registered_nav_menus',
41 - 'after' => __( 'To insert the mini profile into this location.', 'bbp-core' )
42 - ],
43 -
44 - [
45 - 'id' => 'location_selector',
46 - 'type' => 'text',
47 - 'title' => esc_html__( '<b>Or</b> Selector', 'bbp-core' ),
48 - 'after' => esc_html__( 'To insert end of this selector. Ex: <code>.parent_selector</code>', 'bbp-core' )
49 - ]
50 - ]
51 - ],
52 -
53 - [
54 - 'id' => 'bbpc_profile_user_pos',
55 - 'type' => 'slider',
56 - 'title' => esc_html__( 'Gap', 'bbp-core' ),
57 - 'dependency' => [ 'bbpc_mini_profile', '==', true, ],
58 - 'subtitle' => esc_html__( 'Set the gap between the menu and the Mini Profile\'s avatar image. The gap will be applied to Left side of the Avatar image.', 'bbp-core' ),
59 - 'unit' => 'px',
60 - 'output' => '.bbpc-mini-profile',
61 - 'output_mode' => 'margin-left',
62 - 'output_important' => true,
63 - 'max' => 200,
64 - 'class' => 'st-pro-notice'
65 - ],
66 -
67 - [
68 - 'type' => 'subheading',
69 - 'content' => esc_html__( 'Dropdown Profile Box', 'bbp-core' ),
70 - 'dependency' => [ 'bbpc_mini_profile', '==', true, ],
71 - ],
72 -
73 - [
74 - 'id' => 'bbpc-mini-profile-width',
75 - 'type' => 'dimensions',
76 - 'title' => esc_html__( 'Width', 'bbp-core'),
77 - 'height' => false,
78 - 'units' => array( 'px' ),
79 - 'output' => '.bbpc-mini-profile-wrapper',
80 - 'output_mode' => 'min-width',
81 - 'output_important' => true,
82 - 'dependency' => [ 'bbpc_mini_profile', '==', true, ],
83 - 'class' => 'st-pro-notice'
84 - ],
85 -
86 - [
87 - 'id' => 'bbpc_profile_data_pos',
88 - 'type' => 'slider',
89 - 'title' => esc_html__( 'Gap', 'bbp-core' ),
90 - 'subtitle' => esc_html__( 'Set the gap between the Avatar image and the Mini Profile\'s dropdwon box. This option is helpful to adjust the menu height with the Mini Profile\'s dropdwon box', 'bbp-core' ),
91 - 'dependency' => [ 'bbpc_mini_profile', '==', true, ],
92 - 'unit' => 'px',
93 - 'output' => '.bbpc-mini-profile-wrapper',
94 - 'output_mode' => 'top',
95 - 'output_important' => true,
96 - 'min' => 20,
97 - 'max' => 200,
98 - 'class' => 'st-pro-notice'
99 - ],
100 -
101 - [
102 - 'id' => 'bbpc-mini-profile-border',
103 - 'type' => 'border',
104 - 'title' => 'Border',
105 - 'output' => '.bbpc-mini-profile-wrapper',
106 - 'output_mode' => 'border',
107 - 'output_important' => true,
108 - 'dependency' => [ 'bbpc_mini_profile', '==', true, ],
109 - 'class' => 'st-pro-notice'
110 - ],
111 -
112 - [
113 - 'id' => 'bbpc-mini-profile-border-radius',
114 - 'type' => 'spacing',
115 - 'title' => esc_html__( 'Border Radius', 'bbp-core' ),
116 - 'output' => '.bbpc-mini-profile-wrapper',
117 - 'output_mode' => 'border-radius',
118 - 'units' => array( 'px' ),
119 - 'output_important' => true,
120 - 'dependency' => [ 'bbpc_mini_profile', '==', true, ],
121 - 'class' => 'st-pro-notice'
122 - ],
123 -
124 - [
125 - 'type' => 'subheading',
126 - 'content' => esc_html__( 'Color Management', 'bbp-core' ),
127 - 'dependency' => [ 'bbpc_mini_profile', '==', true, ],
128 - ],
129 -
130 - [
131 - 'id' => 'bbpc-mini-profile-top',
132 - 'type' => 'fieldset',
133 - 'dependency' => [ 'bbpc_mini_profile', '==', true, ],
134 - 'title' => esc_html__( 'Content', 'bbp-core' ),
135 - 'subtitle' => esc_html__( 'Change the color of the information at the top of the mini profile.', 'bbp-core' ),
136 - 'fields' => array(
137 - [
138 - 'id' => 'bbpc-mini-profile-author',
139 - 'type' => 'link_color',
140 - 'title' => esc_html__( 'Author name', 'bbp-core' ),
141 - 'default' => array(
142 - 'color' => '#5088f7',
143 - 'hover' => '#2067f4',
144 - ),
145 - 'output' => '.bbpc-mini-profile-head a',
146 - 'output_mode' => 'color',
147 - 'output_important' => true,
148 - 'class' => 'st-pro-notice'
149 - ],
150 -
151 - [
152 - 'id' => 'bbpc-mini-profile-author-role',
153 - 'type' => 'color',
154 - 'title' => esc_html__( 'Author Role', 'bbp-core' ),
155 - 'output' => '.bbpc-mini-profile-head p',
156 - 'output_mode' => 'color',
157 - 'output_important' => true,
158 - 'class' => 'st-pro-notice'
159 - ],
160 -
161 - [
162 - 'id' => 'bbpc-mini-profile-info-color',
163 - 'type' => 'color',
164 - 'title' => esc_html__( 'Summery', 'bbp-core' ),
165 - 'output' => '.bbpc-mini-middle p span',
166 - 'output_mode' => 'color',
167 - 'output_important' => true,
168 - 'class' => 'st-pro-notice'
169 - ],
170 -
171 - [
172 - 'id' => 'bbpc-mini-profile-top-bg',
173 - 'type' => 'color',
174 - 'title' => 'Background',
175 - 'output' => '.bbpc-mini-profile-head, .bbpc-mini-middle',
176 - 'output_mode' => 'background-color',
177 - 'output_important' => true,
178 - 'class' => 'st-pro-notice'
179 - ],
180 - )
181 - ],
182 -
183 - [
184 - 'id' => 'bbpc-mini-profile-bottom',
185 - 'type' => 'fieldset',
186 - 'dependency' => [ 'bbpc_mini_profile', '==', true, ],
187 - 'title' => __( 'Links', 'bbp-core' ),
188 - 'subtitle' => __( 'Change the color of the information at the bottom of the mini profile.', 'bbp-core' ),
189 - 'fields' => array(
190 - [
191 - 'id' => 'bbpc-mini-profile-link',
192 - 'type' => 'link_color',
193 - 'title' => 'Color',
194 - 'default' => array(
195 - 'color' => '#384764',
196 - 'hover' => '#4080FF',
197 - ),
198 - 'output' => '.bbpc-min-profile-links ul li a',
199 - 'output_mode' => 'color',
200 - 'output_important' => true,
201 - 'class' => 'st-pro-notice'
202 - ],
203 -
204 - [
205 - 'id' => 'bbpc-mini-profile-link-bg',
206 - 'type' => 'color',
207 - 'title' => 'Hover Background',
208 - 'output' => '.bbpc-min-profile-links ul li a:hover',
209 - 'output_mode' => 'background-color',
210 - 'output_important' => true,
211 - 'class' => 'st-pro-notice'
212 - ],
213 -
214 - [
215 - 'id' => 'bbpc-mini-profile-btm-bg',
216 - 'type' => 'color',
217 - 'title' => 'Background',
218 - 'output' => '.bbpc-min-profile-links',
219 - 'output_mode' => 'background-color',
220 - 'output_important' => true,
221 - 'class' => 'st-pro-notice'
222 - ],
223 - )
224 - ]
225 -
226 - ]
227 - ]
1 +<?php
2 +CSF::createSection(
3 + $prefix,
4 + [
5 + 'id' => 'bbpc_mini_profile',
6 + 'title' => esc_html__( 'Mini Profile', 'forumax' ),
7 + 'icon' => 'dashicons dashicons-admin-users',
8 + 'fields' => [
9 + [
10 + 'type' => 'subheading',
11 + 'content' => esc_html__( 'Mini Profile', 'forumax' ),
12 + ],
13 +
14 + [
15 + 'id' => 'bbpc_mini_profile',
16 + 'type' => 'switcher',
17 + 'default' => false,
18 + 'title' => esc_html__( 'Show / Hide', 'forumax' ),
19 + 'class' => 'st-pro-notice'
20 + ],
21 +
22 + [
23 + 'type' => 'subheading',
24 + 'content' => esc_html__( 'Avatar', 'forumax' ),
25 + 'dependency' => [ 'bbpc_mini_profile', '==', true, ],
26 + ],
27 +
28 + [
29 + 'id' => 'bbpc_profile_location',
30 + 'type' => 'fieldset',
31 + 'title' => esc_html__( 'Select Location', 'forumax' ),
32 + 'subtitle' => esc_html__( 'Select the menu location to display the mini profile.', 'forumax' ),
33 + 'dependency' => [ 'bbpc_mini_profile', '==', true, ],
34 + 'class' => 'st-pro-notice',
35 + 'fields' => [
36 + [
37 + 'id' => 'location_option',
38 + 'type' => 'select',
39 + 'title' => esc_html__( 'Menu Location', 'forumax' ),
40 + 'options' => 'forumax_get_registered_nav_menus',
41 + 'after' => __( 'To insert the mini profile into this location.', 'forumax' )
42 + ],
43 +
44 + [
45 + 'id' => 'location_selector',
46 + 'type' => 'text',
47 + 'title' => __( '<b>Or</b> Selector', 'forumax' ),
48 + 'after' => __( 'To insert end of this selector. Ex: <code>.parent_selector</code>', 'forumax' )
49 + ]
50 + ]
51 + ],
52 +
53 + [
54 + 'id' => 'bbpc_profile_user_pos',
55 + 'type' => 'slider',
56 + 'title' => esc_html__( 'Gap', 'forumax' ),
57 + 'dependency' => [ 'bbpc_mini_profile', '==', true, ],
58 + 'subtitle' => esc_html__( 'Set the gap between the menu and the Mini Profile\'s avatar image. The gap will be applied to Left side of the Avatar image.', 'forumax' ),
59 + 'unit' => 'px',
60 + 'output' => '.bbpc-mini-profile',
61 + 'output_mode' => 'margin-left',
62 + 'output_important' => true,
63 + 'max' => 200,
64 + 'class' => 'st-pro-notice'
65 + ],
66 +
67 + [
68 + 'type' => 'subheading',
69 + 'content' => esc_html__( 'Dropdown Profile Box', 'forumax' ),
70 + 'dependency' => [ 'bbpc_mini_profile', '==', true, ],
71 + ],
72 +
73 + [
74 + 'id' => 'bbpc-mini-profile-width',
75 + 'type' => 'dimensions',
76 + 'title' => esc_html__( 'Width', 'forumax'),
77 + 'height' => false,
78 + 'units' => array( 'px' ),
79 + 'output' => '.bbpc-mini-profile-wrapper',
80 + 'output_mode' => 'min-width',
81 + 'output_important' => true,
82 + 'dependency' => [ 'bbpc_mini_profile', '==', true, ],
83 + 'class' => 'st-pro-notice'
84 + ],
85 +
86 + [
87 + 'id' => 'bbpc_profile_data_pos',
88 + 'type' => 'slider',
89 + 'title' => esc_html__( 'Gap', 'forumax' ),
90 + 'subtitle' => esc_html__( 'Set the gap between the Avatar image and the Mini Profile\'s dropdwon box. This option is helpful to adjust the menu height with the Mini Profile\'s dropdwon box', 'forumax' ),
91 + 'dependency' => [ 'bbpc_mini_profile', '==', true, ],
92 + 'unit' => 'px',
93 + 'output' => '.bbpc-mini-profile-wrapper',
94 + 'output_mode' => 'top',
95 + 'output_important' => true,
96 + 'min' => 20,
97 + 'max' => 200,
98 + 'class' => 'st-pro-notice'
99 + ],
100 +
101 + [
102 + 'id' => 'bbpc-mini-profile-border',
103 + 'type' => 'border',
104 + 'title' => 'Border',
105 + 'output' => '.bbpc-mini-profile-wrapper',
106 + 'output_mode' => 'border',
107 + 'output_important' => true,
108 + 'dependency' => [ 'bbpc_mini_profile', '==', true, ],
109 + 'class' => 'st-pro-notice'
110 + ],
111 +
112 + [
113 + 'id' => 'bbpc-mini-profile-border-radius',
114 + 'type' => 'spacing',
115 + 'title' => esc_html__( 'Border Radius', 'forumax' ),
116 + 'output' => '.bbpc-mini-profile-wrapper',
117 + 'output_mode' => 'border-radius',
118 + 'units' => array( 'px' ),
119 + 'output_important' => true,
120 + 'dependency' => [ 'bbpc_mini_profile', '==', true, ],
121 + 'class' => 'st-pro-notice'
122 + ],
123 +
124 + [
125 + 'type' => 'subheading',
126 + 'content' => esc_html__( 'Color Management', 'forumax' ),
127 + 'dependency' => [ 'bbpc_mini_profile', '==', true, ],
128 + ],
129 +
130 + [
131 + 'id' => 'bbpc-mini-profile-top',
132 + 'type' => 'fieldset',
133 + 'dependency' => [ 'bbpc_mini_profile', '==', true, ],
134 + 'title' => esc_html__( 'Content', 'forumax' ),
135 + 'subtitle' => esc_html__( 'Change the color of the information at the top of the mini profile.', 'forumax' ),
136 + 'fields' => array(
137 + [
138 + 'id' => 'bbpc-mini-profile-author',
139 + 'type' => 'link_color',
140 + 'title' => esc_html__( 'Author name', 'forumax' ),
141 + 'default' => array(
142 + 'color' => '#5088f7',
143 + 'hover' => '#2067f4',
144 + ),
145 + 'output' => '.bbpc-mini-profile-head a',
146 + 'output_mode' => 'color',
147 + 'output_important' => true,
148 + 'class' => 'st-pro-notice'
149 + ],
150 +
151 + [
152 + 'id' => 'bbpc-mini-profile-author-role',
153 + 'type' => 'color',
154 + 'title' => esc_html__( 'Author Role', 'forumax' ),
155 + 'output' => '.bbpc-mini-profile-head p',
156 + 'output_mode' => 'color',
157 + 'output_important' => true,
158 + 'class' => 'st-pro-notice'
159 + ],
160 +
161 + [
162 + 'id' => 'bbpc-mini-profile-info-color',
163 + 'type' => 'color',
164 + 'title' => esc_html__( 'Summery', 'forumax' ),
165 + 'output' => '.bbpc-mini-middle p span',
166 + 'output_mode' => 'color',
167 + 'output_important' => true,
168 + 'class' => 'st-pro-notice'
169 + ],
170 +
171 + [
172 + 'id' => 'bbpc-mini-profile-top-bg',
173 + 'type' => 'color',
174 + 'title' => 'Background',
175 + 'output' => '.bbpc-mini-profile-head, .bbpc-mini-middle',
176 + 'output_mode' => 'background-color',
177 + 'output_important' => true,
178 + 'class' => 'st-pro-notice'
179 + ],
180 + )
181 + ],
182 +
183 + [
184 + 'id' => 'bbpc-mini-profile-bottom',
185 + 'type' => 'fieldset',
186 + 'dependency' => [ 'bbpc_mini_profile', '==', true, ],
187 + 'title' => __( 'Links', 'forumax' ),
188 + 'subtitle' => __( 'Change the color of the information at the bottom of the mini profile.', 'forumax' ),
189 + 'fields' => array(
190 + [
191 + 'id' => 'bbpc-mini-profile-link',
192 + 'type' => 'link_color',
193 + 'title' => 'Color',
194 + 'default' => array(
195 + 'color' => '#384764',
196 + 'hover' => '#4080FF',
197 + ),
198 + 'output' => '.bbpc-min-profile-links ul li a',
199 + 'output_mode' => 'color',
200 + 'output_important' => true,
201 + 'class' => 'st-pro-notice'
202 + ],
203 +
204 + [
205 + 'id' => 'bbpc-mini-profile-link-bg',
206 + 'type' => 'color',
207 + 'title' => 'Hover Background',
208 + 'output' => '.bbpc-min-profile-links ul li a:hover',
209 + 'output_mode' => 'background-color',
210 + 'output_important' => true,
211 + 'class' => 'st-pro-notice'
212 + ],
213 +
214 + [
215 + 'id' => 'bbpc-mini-profile-btm-bg',
216 + 'type' => 'color',
217 + 'title' => 'Background',
218 + 'output' => '.bbpc-min-profile-links',
219 + 'output_mode' => 'background-color',
220 + 'output_important' => true,
221 + 'class' => 'st-pro-notice'
222 + ],
223 + )
224 + ]
225 +
226 + ]
227 + ]
228 228 );