PluginProbe
Forumax – AI Powered Advanced Community Forum Plugin / 1.2.7
Forumax – AI Powered Advanced Community Forum Plugin v1.2.7
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
bbp-core / includes / admin / settings / options / options_mini_profile.php

options_mini_profile.php in Forumax – AI Powered Advanced Community Forum Plugin 1.2.7, at includes/admin/settings/options/options_mini_profile.php

227 lines 7.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 CSF::createSection(
3 $prefix,
4 [
5 'id' => 'bbpc_mini_profile',
6 'title' => __( 'Mini Profile', 'bbp-core' ),
7 'fields' => [
8 [
9 'type' => 'subheading',
10 'content' => __( 'Mini Profile', 'bbp-core' ),
11 ],
12
13 [
14 'id' => 'bbpc_mini_profile',
15 'type' => 'switcher',
16 'default' => false,
17 'title' => __( 'Show / Hide', 'bbp-core' ),
18 'class' => 'st-pro-notice'
19 ],
20
21 [
22 'type' => 'subheading',
23 'content' => __( 'Avatar', 'bbp-core' ),
24 'dependency' => [ 'bbpc_mini_profile', '==', true, ],
25 ],
26
27 [
28 'id' => 'bbpc_profile_location',
29 'type' => 'fieldset',
30 'title' => __( 'Select Location', 'bbp-core' ),
31 'subtitle' => __( 'Select the menu location to display the mini profile.', 'bbp-core' ),
32 'dependency' => [ 'bbpc_mini_profile', '==', true, ],
33 'class' => 'st-pro-notice',
34 'fields' => [
35 [
36 'id' => 'location_option',
37 'type' => 'select',
38 'title' => __( 'Menu Location', 'bbp-core' ),
39 'options' => 'bbpc_get_registered_nav_menus',
40 'after' => __( 'To insert the mini profile into this location.', 'bbp-core' )
41 ],
42
43 [
44 'id' => 'location_selector',
45 'type' => 'text',
46 'title' => __( '<b>Or</b> Selector', 'bbp-core' ),
47 'after' => __( 'To insert end of this selector. Ex: <code>.parent_selector</code>', 'bbp-core' )
48 ]
49 ]
50 ],
51
52 [
53 'id' => 'bbpc_profile_user_pos',
54 'type' => 'slider',
55 'title' => __( 'Gap', 'bbp-core' ),
56 'dependency' => [ 'bbpc_mini_profile', '==', true, ],
57 'subtitle' => __( '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' ),
58 'unit' => 'px',
59 'output' => '.bbpc-mini-profile',
60 'output_mode' => 'margin-left',
61 'output_important' => true,
62 'max' => 200,
63 'class' => 'st-pro-notice'
64 ],
65
66 [
67 'type' => 'subheading',
68 'content' => __( 'Dropdown Profile Box', 'bbp-core' ),
69 'dependency' => [ 'bbpc_mini_profile', '==', true, ],
70 ],
71
72 [
73 'id' => 'bbpc-mini-profile-width',
74 'type' => 'dimensions',
75 'title' => __( 'Width', 'bbp-core'),
76 'height' => false,
77 'units' => array( 'px' ),
78 'output' => '.bbpc-mini-profile-wrapper',
79 'output_mode' => 'min-width',
80 'output_important' => true,
81 'dependency' => [ 'bbpc_mini_profile', '==', true, ],
82 'class' => 'st-pro-notice'
83 ],
84
85 [
86 'id' => 'bbpc_profile_data_pos',
87 'type' => 'slider',
88 'title' => __( 'Gap', 'bbp-core' ),
89 'subtitle' => __( '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' ),
90 'dependency' => [ 'bbpc_mini_profile', '==', true, ],
91 'unit' => 'px',
92 'output' => '.bbpc-mini-profile-wrapper',
93 'output_mode' => 'top',
94 'output_important' => true,
95 'min' => 20,
96 'max' => 200,
97 'class' => 'st-pro-notice'
98 ],
99
100 [
101 'id' => 'bbpc-mini-profile-border',
102 'type' => 'border',
103 'title' => 'Border',
104 'output' => '.bbpc-mini-profile-wrapper',
105 'output_mode' => 'border',
106 'output_important' => true,
107 'dependency' => [ 'bbpc_mini_profile', '==', true, ],
108 'class' => 'st-pro-notice'
109 ],
110
111 [
112 'id' => 'bbpc-mini-profile-border-radius',
113 'type' => 'spacing',
114 'title' => 'Border Radius',
115 'output' => '.bbpc-mini-profile-wrapper',
116 'output_mode' => 'border-radius',
117 'units' => array( 'px' ),
118 'output_important' => true,
119 'dependency' => [ 'bbpc_mini_profile', '==', true, ],
120 'class' => 'st-pro-notice'
121 ],
122
123 [
124 'type' => 'subheading',
125 'content' => __( 'Color Management', 'bbp-core' ),
126 'dependency' => [ 'bbpc_mini_profile', '==', true, ],
127 ],
128
129 [
130 'id' => 'bbpc-mini-profile-top',
131 'type' => 'fieldset',
132 'dependency' => [ 'bbpc_mini_profile', '==', true, ],
133 'title' => __( 'Content', 'bbp-core' ),
134 'subtitle' => __( 'Change the color of the information at the top of the mini profile.', 'bbp-core' ),
135 'fields' => array(
136 [
137 'id' => 'bbpc-mini-profile-author',
138 'type' => 'link_color',
139 'title' => 'Author name',
140 'default' => array(
141 'color' => '#5088f7',
142 'hover' => '#2067f4',
143 ),
144 'output' => '.bbpc-mini-profile-head a',
145 'output_mode' => 'color',
146 'output_important' => true,
147 'class' => 'st-pro-notice'
148 ],
149
150 [
151 'id' => 'bbpc-mini-profile-author-role',
152 'type' => 'color',
153 'title' => 'Author Role',
154 'output' => '.bbpc-mini-profile-head p',
155 'output_mode' => 'color',
156 'output_important' => true,
157 'class' => 'st-pro-notice'
158 ],
159
160 [
161 'id' => 'bbpc-mini-profile-info-color',
162 'type' => 'color',
163 'title' => 'Summery',
164 'output' => '.bbpc-mini-middle p span',
165 'output_mode' => 'color',
166 'output_important' => true,
167 'class' => 'st-pro-notice'
168 ],
169
170 [
171 'id' => 'bbpc-mini-profile-top-bg',
172 'type' => 'color',
173 'title' => 'Background',
174 'output' => '.bbpc-mini-profile-head, .bbpc-mini-middle',
175 'output_mode' => 'background-color',
176 'output_important' => true,
177 'class' => 'st-pro-notice'
178 ],
179 )
180 ],
181
182 [
183 'id' => 'bbpc-mini-profile-bottom',
184 'type' => 'fieldset',
185 'dependency' => [ 'bbpc_mini_profile', '==', true, ],
186 'title' => __( 'Links', 'bbp-core' ),
187 'subtitle' => __( 'Change the color of the information at the bottom of the mini profile.', 'bbp-core' ),
188 'fields' => array(
189 [
190 'id' => 'bbpc-mini-profile-link',
191 'type' => 'link_color',
192 'title' => 'Color',
193 'default' => array(
194 'color' => '#384764',
195 'hover' => '#4080FF',
196 ),
197 'output' => '.bbpc-min-profile-links ul li a',
198 'output_mode' => 'color',
199 'output_important' => true,
200 'class' => 'st-pro-notice'
201 ],
202
203 [
204 'id' => 'bbpc-mini-profile-link-bg',
205 'type' => 'color',
206 'title' => 'Hover Background',
207 'output' => '.bbpc-min-profile-links ul li a:hover',
208 'output_mode' => 'background-color',
209 'output_important' => true,
210 'class' => 'st-pro-notice'
211 ],
212
213 [
214 'id' => 'bbpc-mini-profile-btm-bg',
215 'type' => 'color',
216 'title' => 'Background',
217 'output' => '.bbpc-min-profile-links',
218 'output_mode' => 'background-color',
219 'output_important' => true,
220 'class' => 'st-pro-notice'
221 ],
222 )
223 ]
224
225 ]
226 ]
227 );