PluginProbe
Forumax – AI Powered Advanced Community Forum Plugin / 1.2.8
Forumax – AI Powered Advanced Community Forum Plugin v1.2.8
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_notification.php

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

288 lines 9.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3
4 CSF::createSection(
5 $prefix,
6 [
7 'id' => 'bbpc_notification_opt',
8 'title' => __( 'Notification', 'bbp-core' ),
9 'fields' => [
10 [
11 'type' => 'subheading',
12 'content' => __( 'Notification', 'bbp-core' ),
13 ],
14
15 [
16 'id' => 'bbpc_notification',
17 'type' => 'switcher',
18 'default' => false,
19 'title' => __( 'Show / Hide', 'bbp-core' ),
20 'class' => 'st-pro-notice'
21 ],
22
23 [
24 'type' => 'subheading',
25 'content' => __( 'Avatar', 'bbp-core' ),
26 'dependency' => [ 'bbpc_notification', '==', true, ],
27 ],
28
29 [
30 'id' => 'bbpc_notification_location',
31 'type' => 'fieldset',
32 'title' => __( 'Select Location', 'bbp-core' ),
33 'subtitle' => __( 'Select the menu location to display the notification.', 'bbp-core' ),
34 'dependency' => [ 'bbpc_notification', '==', true, ],
35 'class' => 'st-pro-notice',
36 'inline' => true,
37 'fields' => [
38 [
39 'id' => 'location_option',
40 'type' => 'select',
41 'title' => __( 'Menu Location', 'bbp-core' ),
42 'options' => 'bbpc_get_registered_nav_menus',
43 'default' => 'main_menu',
44 'after' => __( 'To insert the notification into this location.', 'bbp-core' )
45 ],
46
47 [
48 'id' => 'location_selector',
49 'type' => 'text',
50 'title' => __( '<b>Or</b> Selector', 'bbp-core' ),
51 'after' => __( 'To insert end of this selector. Ex: <code>.parent_selector</code>', 'bbp-core' )
52 ]
53 ]
54 ],
55
56 [
57 'id' => 'bbpc_notification_user_pos',
58 'type' => 'slider',
59 'title' => __( 'Gap', 'bbp-core' ),
60 'dependency' => [ 'bbpc_notification', '==', true, ],
61 'subtitle' => __( 'Set the gap between the menu and the Notification\'s avatar image. The gap will be applied to Left side of the Avatar image.', 'bbp-core' ),
62 'unit' => 'px',
63 'output' => '.bbpc-nav-notification',
64 'output_mode' => 'margin-left',
65 'output_important' => true,
66 'max' => 200,
67 'class' => 'st-pro-notice'
68 ],
69
70 [
71 'id' => 'bbpc_notification_avatar',
72 'type' => 'media',
73 'title' => __( 'Icon', 'bbp-core' ),
74 'dependency' => [ 'bbpc_notification', '==', true, ],
75 'class' => 'st-pro-notice',
76 'url' => false
77 ],
78
79 [
80 'id' => 'bbpc_notification_unread_counter',
81 'type' => 'switcher',
82 'default' => false,
83 'title' => __( 'Unread Counter', 'bbp-core' ),
84 'class' => 'st-pro-notice',
85 'default' => false,
86 'dependency' => [ 'bbpc_notification', '==', true, ],
87 ],
88
89 [
90 'type' => 'subheading',
91 'content' => __( 'Dropdown notification Box', 'bbp-core' ),
92 'dependency' => [ 'bbpc_notification', '==', true, ],
93 ],
94
95 [
96 'id' => 'bbpc-mini-notification-width',
97 'type' => 'dimensions',
98 'title' => __( 'Width', 'bbp-core'),
99 'height' => false,
100 'units' => array( 'px' ),
101 'output' => '.bbpc-notification-wrap',
102 'output_mode' => 'min-width',
103 'output_important' => true,
104 'dependency' => [ 'bbpc_notification', '==', true, ],
105 'class' => 'st-pro-notice'
106 ],
107
108 [
109 'id' => 'bbpc_notification_data_pos',
110 'type' => 'slider',
111 'title' => __( 'Gap', 'bbp-core' ),
112 'subtitle' => __( 'Set the gap between the Avatar image and the Notification\'s dropdwon box. This option is helpful to adjust the menu height with the Notification\'s dropdwon box', 'bbp-core' ),
113 'dependency' => [ 'bbpc_notification', '==', true, ],
114 'unit' => 'px',
115 'output' => '.bbpc-notification-wrap',
116 'output_mode' => 'top',
117 'output_important' => true,
118 'min' => 20,
119 'max' => 200,
120 'class' => 'st-pro-notice'
121 ],
122
123 [
124 'id' => 'bbpc-mini-notification-border',
125 'type' => 'border',
126 'title' => 'Border',
127 'output' => '.bbpc-notification-wrap',
128 'output_mode' => 'border',
129 'output_important' => true,
130 'dependency' => [ 'bbpc_notification', '==', true, ],
131 'class' => 'st-pro-notice'
132 ],
133
134 [
135 'id' => 'bbpc-mini-notification-border-radius',
136 'type' => 'spacing',
137 'title' => 'Border Radius',
138 'output' => '.bbpc-notification-wrap',
139 'output_mode' => 'border-radius',
140 'units' => array( 'px' ),
141 'output_important' => true,
142 'dependency' => [ 'bbpc_notification', '==', true, ],
143 'class' => 'st-pro-notice'
144 ],
145
146 [
147 'type' => 'subheading',
148 'content' => __( 'Head', 'bbp-core' ),
149 'dependency' => [ 'bbpc_notification', '==', true, ],
150 ],
151
152 [
153 'id' => 'bbpc_notification_head_opt',
154 'type' => 'switcher',
155 'default' => false,
156 'title' => __( 'Enable / Disable', 'bbp-core' ),
157 'class' => 'st-pro-notice',
158 'dependency' => [ 'bbpc_notification', '==', true, ],
159 ],
160
161 [
162 'id' => 'bbpc_notification_head_text',
163 'type' => 'text',
164 'default' => __( 'Alerts', 'bbp-core' ),
165 'title' => __( 'Heading Text', 'bbp-core' ),
166 'dependency' => [
167 ['bbpc_notification', '==', true ],
168 ['bbpc_notification_head_opt', '==', true],
169 ],
170 'class' => 'st-pro-notice'
171 ],
172
173 [
174 'id' => 'bbpc_notification_head_text_color',
175 'type' => 'color',
176 'title' => 'Color',
177 'output' => '.bbpc-notification-header',
178 'output_mode' => 'color',
179 'output_important' => true,
180 'dependency' => [
181 ['bbpc_notification', '==', true ],
182 ['bbpc_notification_head_opt', '==', true],
183 ],
184 'class' => 'st-pro-notice'
185 ],
186
187 [
188 'id' => 'bbpc_notification_head_text_bg',
189 'type' => 'color',
190 'title' => 'Background',
191 'output' => '.bbpc-notification-header',
192 'output_mode' => 'Background',
193 'output_important' => true,
194 'dependency' => [
195 ['bbpc_notification', '==', true ],
196 ['bbpc_notification_head_opt', '==', true],
197 ],
198 'class' => 'st-pro-notice'
199 ],
200
201 [
202 'id' => 'bbpc_notification_head_sticky',
203 'type' => 'switcher',
204 'default' => false,
205 'title' => __( 'Head Sticky', 'bbp-core' ),
206 'dependency' => [
207 ['bbpc_notification', '==', true ],
208 ['bbpc_notification_head_opt', '==', true],
209 ],
210 'class' => 'st-pro-notice'
211 ],
212
213 [
214 'type' => 'subheading',
215 'content' => __( 'Color Management', 'bbp-core' ),
216 'dependency' => [ 'bbpc_notification', '==', true, ],
217 ],
218
219 [
220 'id' => 'bbpc-mini-notification-top',
221 'type' => 'fieldset',
222 'dependency' => [ 'bbpc_notification', '==', true, ],
223 'title' => __( 'Content', 'bbp-core' ),
224 'subtitle' => __( 'Change the color of the information at the top of the Notification.', 'bbp-core' ),
225 'fields' => array(
226 [
227 'id' => 'bbpc-mini-notification-author',
228 'type' => 'link_color',
229 'title' => 'Title',
230 'default' => array(
231 'color' => '#000000',
232 'hover' => '#000000',
233 ),
234 'output' => '.bbpc-notification-item:hover h5, .bbpc-notification-item h5',
235 'output_mode' => 'color',
236 'output_important' => true,
237 'class' => 'st-pro-notice'
238 ],
239
240 [
241 'id' => 'bbpc-mini-notification-link',
242 'type' => 'link_color',
243 'title' => 'Links',
244 'default' => array(
245 'color' => '#000000',
246 'hover' => '#000000',
247 ),
248 'output' => '.bbpc-notification-item:hover h5 a,.bbpc-notification-item h5 a',
249 'output_mode' => 'color',
250 'output_important' => true,
251 'class' => 'st-pro-notice'
252 ],
253
254 [
255 'id' => 'bbpc-mini-notification-meta',
256 'type' => 'link_color',
257 'title' => 'Date',
258 'output' => '.bbpc-notification-item span',
259 'output_mode' => 'color',
260 'output_important' => true,
261 'class' => 'st-pro-notice'
262 ],
263
264 [
265 'id' => 'bbpc-mini-notification-btm-bg',
266 'type' => 'color',
267 'title' => 'Background',
268 'output' => '.bbpc-notification-item:not(.bbpc-notify-unread)',
269 'output_mode' => 'background-color',
270 'output_important' => true,
271 'class' => 'st-pro-notice'
272 ],
273
274 [
275 'id' => 'bbpc-mini-notification-link-bg',
276 'type' => 'color',
277 'title' => 'Hover Background',
278 'output' => '.bbpc-notification-item.bbpc-notify-unread, .bbpc-notification-item:hover',
279 'output_mode' => 'background-color',
280 'output_important' => true,
281 'class' => 'st-pro-notice'
282 ]
283 )
284 ]
285
286 ]
287 ]
288 );