PluginProbe
Forumax – AI Powered Advanced Community Forum Plugin / 2.4.4
Forumax – AI Powered Advanced Community Forum Plugin v2.4.4
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 / options / options_notification.php

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

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