PluginProbe
Adminify – White Label, Admin Menu Editor, Login Customizer / 1.0.7
Adminify – White Label, Admin Menu Editor, Login Customizer v1.0.7
4.3.1 4.3.0 4.2.26 4.2.25 4.2.24 4.2.23 4.2.22 4.2.21 4.2.20 4.2.19 4.2.18 4.2.17 4.2.16 4.2.15 4.2.14 4.2.13 4.2.12 4.2.11 4.2.10 4.2.9 4.2.8 4.2.7 4.2.6 4.2.5 4.1.17 All 164 releases
adminify / Inc / Admin / Options / MenuLayout.php

MenuLayout.php in Adminify – White Label, Admin Menu Editor, Login Customizer 1.0.7, at Inc/Admin/Options/MenuLayout.php

664 lines 27.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace WPAdminify\Inc\Admin\Options;
4
5 use WPAdminify\Inc\Utils;
6 use WPAdminify\Inc\Admin\AdminSettingsModel;
7
8 if (!defined('ABSPATH')) {
9 die;
10 } // Cannot access directly.
11
12
13
14 class MenuLayout extends AdminSettingsModel
15 {
16 public function __construct()
17 {
18 $this->menu_layout_settings();
19 }
20
21
22 public function get_defaults()
23 {
24 return [
25 'menu_layout_settings' => [
26 'layout_type' => 'vertical',
27 'menu_hover_submenu' => 'classic',
28 'active_menu_style' => 'classic',
29 'menu_mode' => 'classic',
30 'user_info' => false,
31 'user_info_content' => 'text',
32 'legacy_menu' => false,
33 'user_info_avatar' => 'rounded',
34 'horz_menu_type' => 'both',
35 'show_bloglink' => true,
36 'horz_dropdown_icon' => true,
37 'horz_toplinks' => false,
38 'horz_bubble_icon_hide' => false,
39 'horz_long_menu_break' => true,
40 'menu_styles' => [
41 'menu_typography' => [
42 'font-family' => 'Nunito Sans',
43 'type' => 'google'
44 ],
45 'menu_wrapper_padding' => '',
46 'menu_vertical_padding' => '',
47 'horz_menu_parent_padding' => '',
48 'submenu_wrapper_padding' => '',
49 'submenu_vertical_space' => '',
50 'parent_menu_colors' => [
51 'wrap_bg' => '',
52 'hover_bg' => '',
53 'text_color' => '',
54 'text_hover' => '',
55 'active_color' => '',
56 ],
57 'sub_menu_colors' => [
58 'wrap_bg' => '',
59 'hover_bg' => '',
60 'text_color' => '',
61 'text_hover' => '',
62 'active_bg' => '',
63 'active_color' => '',
64 ],
65 'notif_colors' => [
66 'notif_bg' => '',
67 'notif_color' => ''
68 ]
69 ],
70 'user_info_style' => [
71 'info_text_color' => '',
72 'info_text_hover_color' => '',
73 'info_text_border' => [
74 'top' => '',
75 'right' => '',
76 'bottom' => '',
77 'left' => '',
78 'style' => 'solid',
79 'color' => '',
80 ],
81 'info_icon_color' => '',
82 'info_icon_hover_color' => ''
83 ]
84 ]
85
86 ];
87 }
88
89
90 public function menu_layout_settings_tab(&$settings_tab)
91 {
92 $settings_tab[] = array(
93 'id' => 'layout_type',
94 'type' => 'button_set',
95 'title' => __('Menu Type', WP_ADMINIFY_TD),
96 'options' => array(
97 'vertical' => __('Vertical Menu', WP_ADMINIFY_TD),
98 'horizontal' => __('Horizontal Menu', WP_ADMINIFY_TD),
99 ),
100 'default' => $this->get_default_field('menu_layout_settings')['layout_type'],
101 );
102
103 $settings_tab[] = array(
104 'id' => 'menu_hover_submenu',
105 'type' => 'button_set',
106 'title' => __('Sub Menu Style', WP_ADMINIFY_TD),
107 'options' => array(
108 'classic' => __('Classic', WP_ADMINIFY_TD),
109 'accordion' => __('Accordion', WP_ADMINIFY_TD),
110 'toggle' => __('Toggle', WP_ADMINIFY_TD),
111 ),
112 'dependency' => array('layout_type', '==', 'vertical', 'true'),
113 'default' => $this->get_default_field('menu_layout_settings')['menu_hover_submenu'],
114 );
115
116
117 $settings_tab[] = array(
118 'id' => 'active_menu_style',
119 'type' => 'button_set',
120 'title' => __('Active Menu Style', WP_ADMINIFY_TD),
121 'options' => array(
122 'classic' => __('Classic', WP_ADMINIFY_TD),
123 'rounded' => __('Rounded', WP_ADMINIFY_TD),
124 ),
125 'dependency' => array('layout_type', '==', 'vertical', 'true'),
126 'default' => $this->get_default_field('menu_layout_settings')['active_menu_style'],
127 );
128
129
130 if (!jltwp_adminify()->can_use_premium_code__premium_only()) {
131 $settings_tab[] = array(
132 'type' => 'notice',
133 'title' => __('Horizontal Menu', WP_ADMINIFY_TD),
134 'style' => 'warning',
135 'content' => Utils::adminify_upgrade_pro(),
136 'dependency' => array('layout_type', '==', 'horizontal', 'true'),
137 );
138 }
139
140 $settings_tab[] = array(
141 'id' => 'menu_mode',
142 'type' => 'button_set',
143 'title' => __('Menu Mode', WP_ADMINIFY_TD),
144 'options' => array(
145 'classic' => __('Classic', WP_ADMINIFY_TD),
146 'icon_menu' => __('Mini Icon', WP_ADMINIFY_TD),
147 'rounded' => __('Rounded', WP_ADMINIFY_TD),
148 ),
149 'default' => $this->get_default_field('menu_layout_settings')['menu_mode'],
150 'dependency' => array('layout_type', '==', 'vertical', 'true'),
151 );
152
153 if (jltwp_adminify()->can_use_premium_code__premium_only()) {
154 $settings_tab[] = array(
155 'id' => 'user_info',
156 'type' => 'switcher',
157 'title' => __('User Info', WP_ADMINIFY_TD),
158 'label' => __('Enable/Disable User Info on Admin Menu', WP_ADMINIFY_TD),
159 'text_on' => __('Show', WP_ADMINIFY_TD),
160 'text_off' => __('Hide', WP_ADMINIFY_TD),
161 'text_width' => 100,
162 'default' => $this->get_default_field('menu_layout_settings')['user_info'],
163 'dependency' => array('layout_type', '==', 'vertical', 'true'),
164 );
165 } else {
166 $settings_tab[] = array(
167 'type' => 'notice',
168 'title' => __('User Info', WP_ADMINIFY_TD),
169 'style' => 'warning',
170 'content' => Utils::adminify_upgrade_pro(),
171 'dependency' => array('layout_type', '==', 'vertical', 'true'),
172 );
173 }
174
175
176 $settings_tab[] = array(
177 'id' => 'user_info_content',
178 'type' => 'button_set',
179 'title' => __('Content Type', WP_ADMINIFY_TD),
180 'options' => array(
181 'text' => __('Text', WP_ADMINIFY_TD),
182 'icon' => __('Icon', WP_ADMINIFY_TD),
183 ),
184 'default' => $this->get_default_field('menu_layout_settings')['user_info_content'],
185 'dependency' => array('user_info|layout_type', '==|==', 'true|vertical', 'true'),
186 );
187 $settings_tab[] = array(
188 'id' => 'user_info_avatar',
189 'type' => 'button_set',
190 'title' => __('Avatar Type', WP_ADMINIFY_TD),
191 'options' => array(
192 'rounded' => __('Rounded', WP_ADMINIFY_TD),
193 'square' => __('Square', WP_ADMINIFY_TD),
194 ),
195 'default' => $this->get_default_field('menu_layout_settings')['user_info_avatar'],
196 'dependency' => array('user_info|layout_type', '==|==', 'true|vertical', 'true'),
197 );
198
199 // array(
200 // 'id' => 'legacy_menu',
201 // 'type' => 'switcher',
202 // 'title' => 'Default Menu',
203 // 'label' => 'Enable for Legacy WordPress default menu',
204 // 'text_on' => 'Enabled',
205 // 'text_off' => 'Disabled',
206 // 'text_width' => 100,
207 // 'dependency' => array('layout_type', '==', 'vertical', 'true'),
208 // ),
209
210 if (jltwp_adminify()->can_use_premium_code__premium_only()) {
211
212 $settings_tab[] = array(
213 'id' => 'horz_menu_type',
214 'type' => 'button_set',
215 'title' => __('Menu Type', WP_ADMINIFY_TD),
216 'options' => array(
217 'icons_only' => __('Icon Only', WP_ADMINIFY_TD),
218 'text_only' => __('Text Only', WP_ADMINIFY_TD),
219 'both' => __('Both', WP_ADMINIFY_TD),
220 ),
221 'default' => $this->get_default_field('menu_layout_settings')['horz_menu_type'],
222 'dependency' => array('layout_type', '==', 'horizontal', 'true'),
223 );
224 } else {
225 $settings_tab[] = array(
226 'type' => 'notice',
227 'title' => __('Menu Type', WP_ADMINIFY_TD),
228 'style' => 'warning',
229 'content' => Utils::adminify_upgrade_pro(),
230 'dependency' => array('layout_type', '==', 'horizontal', 'true'),
231 );
232 }
233
234
235 if (jltwp_adminify()->can_use_premium_code__premium_only()) {
236 $settings_tab[] = array(
237 'id' => 'show_bloglink',
238 'type' => 'switcher',
239 'title' => __('Show Blog Link', WP_ADMINIFY_TD),
240 'label' => __('Show Blog Site Link on beginning', WP_ADMINIFY_TD),
241 'text_on' => __('Show', WP_ADMINIFY_TD),
242 'text_off' => __('Hide', WP_ADMINIFY_TD),
243 'text_width' => 100,
244 'default' => $this->get_default_field('menu_layout_settings')['show_bloglink'],
245 'dependency' => array('layout_type', '==', 'horizontal', 'true'),
246 );
247 } else {
248 $settings_tab[] = array(
249 'type' => 'notice',
250 'title' => __('Show Blog Link', WP_ADMINIFY_TD),
251 'style' => 'warning',
252 'content' => Utils::adminify_upgrade_pro(),
253 'dependency' => array('layout_type', '==', 'horizontal', 'true'),
254 );
255 }
256
257 if (jltwp_adminify()->can_use_premium_code__premium_only()) {
258 $settings_tab[] = array(
259 'id' => 'horz_dropdown_icon',
260 'type' => 'switcher',
261 'title' => __('Dropdown Toggle Icon', WP_ADMINIFY_TD),
262 'label' => __('Show/Hide Dropdown Icon', WP_ADMINIFY_TD),
263 'text_on' => __('Show', WP_ADMINIFY_TD),
264 'text_off' => __('Hide', WP_ADMINIFY_TD),
265 'text_width' => 100,
266 'default' => $this->get_default_field('menu_layout_settings')['horz_dropdown_icon'],
267 'dependency' => array('layout_type', '==', 'horizontal', 'true'),
268 );
269 } else {
270 $settings_tab[] = array(
271 'type' => 'notice',
272 'title' => __('Dropdown Toggle Icon', WP_ADMINIFY_TD),
273 'style' => 'warning',
274 'content' => Utils::adminify_upgrade_pro(),
275 'dependency' => array('layout_type', '==', 'horizontal', 'true'),
276 );
277 }
278
279 if (jltwp_adminify()->can_use_premium_code__premium_only()) {
280 $settings_tab[] = array(
281 'id' => 'horz_toplinks',
282 'type' => 'switcher',
283 'title' => __('Top Menu Links', WP_ADMINIFY_TD),
284 'label' => __('Parent/Top Menu Links clickable', WP_ADMINIFY_TD),
285 'text_on' => __('Enabled', WP_ADMINIFY_TD),
286 'text_off' => __('Disabled', WP_ADMINIFY_TD),
287 'text_width' => 100,
288 'default' => $this->get_default_field('menu_layout_settings')['horz_toplinks'],
289 'dependency' => array('layout_type', '==', 'horizontal', 'true'),
290 );
291 } else {
292 $settings_tab[] = array(
293 'type' => 'notice',
294 'title' => __('Top Menu Links', WP_ADMINIFY_TD),
295 'style' => 'warning',
296 'content' => Utils::adminify_upgrade_pro(),
297 'dependency' => array('layout_type', '==', 'horizontal', 'true'),
298 );
299 }
300
301
302 if (jltwp_adminify()->can_use_premium_code__premium_only()) {
303 $settings_tab[] = array(
304 'id' => 'horz_bubble_icon_hide',
305 'type' => 'switcher',
306 'title' => __('Bubble Icon', WP_ADMINIFY_TD),
307 'label' => __('Show/Hide Update or Plugins Bubble Icon', WP_ADMINIFY_TD),
308 'text_on' => __('Show', WP_ADMINIFY_TD),
309 'text_off' => __('Hide', WP_ADMINIFY_TD),
310 'text_width' => 100,
311 'default' => $this->get_default_field('menu_layout_settings')['horz_bubble_icon_hide'],
312 'dependency' => array('layout_type', '==', 'horizontal', 'true'),
313 );
314 } else {
315 $settings_tab[] = array(
316 'type' => 'notice',
317 'title' => __('Bubble Icon', WP_ADMINIFY_TD),
318 'style' => 'warning',
319 'content' => Utils::adminify_upgrade_pro(),
320 'dependency' => array('layout_type', '==', 'horizontal', 'true'),
321 );
322 }
323
324
325 if (jltwp_adminify()->can_use_premium_code__premium_only()) {
326 $settings_tab[] = array(
327 'id' => 'horz_long_menu_break',
328 'type' => 'switcher',
329 'title' => __('Break Long Lists', WP_ADMINIFY_TD),
330 'label' => __('Break Menu Lines if Main menu gets longer lists and doesn\'t cover screen witdh', WP_ADMINIFY_TD),
331 'text_on' => __('Enable', WP_ADMINIFY_TD),
332 'text_off' => __('Disable', WP_ADMINIFY_TD),
333 'text_width' => 100,
334 'default' => $this->get_default_field('menu_layout_settings')['horz_long_menu_break'],
335 'dependency' => array('layout_type', '==', 'horizontal', 'true'),
336 );
337 } else {
338 $settings_tab[] = array(
339 'type' => 'notice',
340 'title' => __('Break Long Lists', WP_ADMINIFY_TD),
341 'style' => 'warning',
342 'content' => Utils::adminify_upgrade_pro(),
343 'dependency' => array('layout_type', '==', 'horizontal', 'true'),
344 );
345 }
346 }
347
348
349
350
351 public function menu_layout_style_tab(&$menu_styles_tab)
352 {
353 $menu_styles_tab[] = array(
354 'type' => 'subheading',
355 'content' => __('Menu Styles', WP_ADMINIFY_TD),
356 );
357 $menu_styles_tab[] = array(
358 'id' => 'menu_typography',
359 'type' => 'typography',
360 'title' => __('Font Settings', WP_ADMINIFY_TD),
361 'font_family' => true,
362 'font_weight' => true,
363 'font_style' => true,
364 'font_size' => true,
365 'line_height' => true,
366 'letter_spacing' => true,
367 'text_align' => true,
368 'text-transform' => true,
369 'color' => false,
370 'subset' => false,
371 'backup_font_family' => false,
372 'font_variant' => false,
373 'word_spacing' => false,
374 'text_decoration' => false,
375 'default' => $this->get_default_field('menu_layout_settings')['menu_styles']['menu_typography'],
376 );
377
378 $menu_styles_tab[] = array(
379 'id' => 'menu_wrapper_padding',
380 'type' => 'spacing',
381 'title' => __('Menu Wrapper Padding', WP_ADMINIFY_TD),
382 'default' => $this->get_default_field('menu_layout_settings')['menu_styles']['menu_wrapper_padding'],
383 );
384
385 $menu_styles_tab[] = array(
386 'id' => 'menu_vertical_padding',
387 'type' => 'slider',
388 'title' => __('Parent Menu Vertical Padding', WP_ADMINIFY_TD),
389 'unit' => 'px',
390 'min' => 1,
391 'max' => 100,
392 'step' => 1,
393 'default' => $this->get_default_field('menu_layout_settings')['menu_styles']['menu_vertical_padding'],
394 'dependency' => array('layout_type', '==', 'vertical', 'true'),
395 );
396
397
398 if (jltwp_adminify()->can_use_premium_code__premium_only()) {
399 $menu_styles_tab[] = array(
400 'id' => 'horz_menu_parent_padding',
401 'type' => 'slider',
402 'title' => __('Parent Menu Horizontal Padding', WP_ADMINIFY_TD),
403 'unit' => 'px',
404 'min' => 1,
405 'max' => 100,
406 'step' => 1,
407 'default' => $this->get_default_field('menu_layout_settings')['menu_styles']['horz_menu_parent_padding'],
408 'dependency' => array('layout_type', '==', 'horizontal', 'true'),
409 );
410 } else {
411 $menu_styles_tab[] = array(
412 'type' => 'notice',
413 'title' => __('Parent Menu Horizontal Padding', WP_ADMINIFY_TD),
414 'style' => 'warning',
415 'content' => Utils::adminify_upgrade_pro(),
416 'dependency' => array('layout_type', '==', 'horizontal', 'true'),
417 );
418 }
419
420 $menu_styles_tab[] = array(
421 'id' => 'submenu_wrapper_padding',
422 'type' => 'spacing',
423 'title' => __('Sub Menu Wrapper Padding', WP_ADMINIFY_TD),
424 'default' => $this->get_default_field('menu_layout_settings')['menu_styles']['submenu_wrapper_padding'],
425 );
426
427 $menu_styles_tab[] = array(
428 'id' => 'submenu_vertical_space',
429 'type' => 'slider',
430 'title' => __('Sub Menu Vertical Padding', WP_ADMINIFY_TD),
431 'unit' => 'px',
432 'min' => 1,
433 'max' => 100,
434 'step' => 1,
435 'default' => $this->get_default_field('menu_layout_settings')['menu_styles']['submenu_vertical_space'],
436 );
437
438
439 $menu_styles_tab[] = array(
440 'type' => 'subheading',
441 'content' => __('Color Settings', WP_ADMINIFY_TD),
442 );
443
444 $menu_styles_tab[] = array(
445 'id' => 'parent_menu_colors',
446 'type' => 'color_group',
447 'title' => __('Parent Menu Colors', WP_ADMINIFY_TD),
448 'options' => array(
449 'wrap_bg' => __('Wrap BG', WP_ADMINIFY_TD),
450 'hover_bg' => __('Menu Hover BG', WP_ADMINIFY_TD),
451 'text_color' => __('Text Color', WP_ADMINIFY_TD),
452 'text_hover' => __('Text Hover', WP_ADMINIFY_TD),
453 'active_bg' => __('Active Menu BG', WP_ADMINIFY_TD),
454 'active_color' => __('Active Menu Color', WP_ADMINIFY_TD),
455 ),
456 'default' => $this->get_default_field('menu_layout_settings')['menu_styles']['parent_menu_colors'],
457 );
458 $menu_styles_tab[] = array(
459 'id' => 'sub_menu_colors',
460 'type' => 'color_group',
461 'title' => __('Sub Menu Colors', WP_ADMINIFY_TD),
462 'options' => array(
463 'wrap_bg' => __('Wrap BG', WP_ADMINIFY_TD),
464 'hover_bg' => __('Submenu Hover BG', WP_ADMINIFY_TD),
465 'text_color' => __('Text Color', WP_ADMINIFY_TD),
466 'text_hover' => __('Text Hover', WP_ADMINIFY_TD),
467 'active_bg' => __('Active Submenu BG', WP_ADMINIFY_TD),
468 'active_color' => __('Active Submenu Color', WP_ADMINIFY_TD),
469 ),
470 'default' => $this->get_default_field('menu_layout_settings')['menu_styles']['sub_menu_colors'],
471 );
472 $menu_styles_tab[] = array(
473 'id' => 'notif_colors',
474 'type' => 'color_group',
475 'title' => __('Notification Colors', WP_ADMINIFY_TD),
476 'options' => array(
477 'notif_bg' => __('Background', WP_ADMINIFY_TD),
478 'notif_color' => __('Text Color', WP_ADMINIFY_TD),
479 ),
480 'default' => $this->get_default_field('menu_layout_settings')['menu_styles']['notif_colors'],
481 );
482 }
483
484
485
486 public function user_info_style_tab(&$user_info_styles_tab)
487 {
488 $user_info_styles_tab[] = array(
489 'type' => 'subheading',
490 'content' => __('User Info Style', WP_ADMINIFY_TD),
491 );
492
493 if (jltwp_adminify()->can_use_premium_code__premium_only()) {
494 $user_info_styles_tab[] = array(
495 'id' => 'info_text_color',
496 'type' => 'color',
497 'title' => __('Link Color', WP_ADMINIFY_TD),
498 'default' => $this->get_default_field('menu_layout_settings')['user_info_style']['info_text_color'],
499 'dependency' => array('user_info_content', '==', 'text', 'true'),
500 );
501 } else {
502 $user_info_styles_tab[] = array(
503 'type' => 'notice',
504 'title' => __('Link Color', WP_ADMINIFY_TD),
505 'style' => 'warning',
506 'content' => Utils::adminify_upgrade_pro()
507 );
508 }
509
510 if (jltwp_adminify()->can_use_premium_code__premium_only()) {
511 $user_info_styles_tab[] = array(
512 'id' => 'info_text_hover_color',
513 'type' => 'color',
514 'title' => __('Hover Color', WP_ADMINIFY_TD),
515 'default' => $this->get_default_field('menu_layout_settings')['user_info_style']['info_text_hover_color'],
516 'dependency' => array('user_info_content', '==', 'text', 'true'),
517 );
518 } else {
519 $user_info_styles_tab[] = array(
520 'type' => 'notice',
521 'title' => __('Hover Color', WP_ADMINIFY_TD),
522 'style' => 'warning',
523 'content' => Utils::adminify_upgrade_pro()
524 );
525 }
526
527 if (jltwp_adminify()->can_use_premium_code__premium_only()) {
528 $user_info_styles_tab[] = array(
529 'id' => 'info_text_border',
530 'type' => 'border',
531 'title' => __('Border', WP_ADMINIFY_TD),
532 'all' => true,
533 'default' => $this->get_default_field('menu_layout_settings')['user_info_style']['info_text_border'],
534 'dependency' => array('user_info_content', '==', 'text', 'true'),
535 );
536 } else {
537 $user_info_styles_tab[] = array(
538 'type' => 'notice',
539 'title' => __('Border', WP_ADMINIFY_TD),
540 'style' => 'warning',
541 'content' => Utils::adminify_upgrade_pro()
542 );
543 }
544
545
546 if (jltwp_adminify()->can_use_premium_code__premium_only()) {
547 $user_info_styles_tab[] = array(
548 'id' => 'info_icon_color',
549 'type' => 'color',
550 'title' => __('Icon Color', WP_ADMINIFY_TD),
551 'default' => $this->get_default_field('menu_layout_settings')['user_info_style']['info_icon_color'],
552 'dependency' => array('user_info_content', '==', 'icon', 'true'),
553 );
554 } else {
555 $user_info_styles_tab[] = array(
556 'type' => 'notice',
557 'title' => __('Icon Color', WP_ADMINIFY_TD),
558 'style' => 'warning',
559 'content' => Utils::adminify_upgrade_pro()
560 );
561 }
562
563
564 if (jltwp_adminify()->can_use_premium_code__premium_only()) {
565 $user_info_styles_tab[] = array(
566 'id' => 'info_icon_hover_color',
567 'type' => 'color',
568 'title' => __('Hover Icon Color', WP_ADMINIFY_TD),
569 'default' => $this->get_default_field('menu_layout_settings')['user_info_style']['info_icon_hover_color'],
570 'dependency' => array('user_info_content', '==', 'icon', 'true'),
571 );
572 } else {
573 $user_info_styles_tab[] = array(
574 'type' => 'notice',
575 'title' => __('Hover Icon Color', WP_ADMINIFY_TD),
576 'style' => 'warning',
577 'content' => Utils::adminify_upgrade_pro()
578 );
579 }
580 }
581
582
583 public function menu_styles_tab(&$styles_tab)
584 {
585 $menu_styles_tab = [];
586 $user_info_styles_tab = [];
587 $this->menu_layout_style_tab($menu_styles_tab);
588 $this->user_info_style_tab($user_info_styles_tab);
589
590 $styles_tab[] = array(
591 'id' => 'menu_styles',
592 'type' => 'fieldset',
593 'title' => '',
594 'fields' => $menu_styles_tab,
595 );
596
597 if (jltwp_adminify()->can_use_premium_code__premium_only()) {
598 $styles_tab[] = array(
599 'id' => 'user_info_style',
600 'type' => 'fieldset',
601 'title' => '',
602 'fields' => $user_info_styles_tab,
603 'dependency' => array('layout_type|user_info', '==|==', 'vertical|true', 'true'),
604 );
605 } else {
606 $styles_tab[] = array(
607 'id' => 'user_info_style',
608 'type' => 'fieldset',
609 'title' => '',
610 'fields' => $user_info_styles_tab,
611 'dependency' => array('layout_type', '==', 'vertical', 'true'),
612 );
613 }
614 }
615
616
617 public function menu_layout_settings()
618 {
619
620 if (!class_exists('ADMINIFY')) {
621 return;
622 }
623
624 $settings_tab = [];
625 $styles_tab = [];
626
627 $this->menu_layout_settings_tab($settings_tab);
628 $this->menu_styles_tab($styles_tab);
629
630 // Menu Layout Section
631 \ADMINIFY::createSection($this->prefix, array(
632 'title' => __('Menu Settings', WP_ADMINIFY_TD),
633 'icon' => 'fas fa-bars',
634 'fields' => array(
635 array(
636 'type' => 'subheading',
637 'content' => Utils::adminfiy_help_urls(
638 __('Menu Settings', WP_ADMINIFY_TD),
639 'https://wpadminify.com/kb/dashboard-menu-settings/',
640 'https://www.youtube.com/playlist?list=PLqpMw0NsHXV-EKj9Xm1DMGa6FGniHHly8',
641 'https://www.facebook.com/groups/jeweltheme',
642 'https://wpadminify.com/support/'
643 )
644 ),
645 array(
646 'id' => 'menu_layout_settings',
647 'type' => 'tabbed',
648 'title' => '',
649 'tabs' => array(
650 array(
651 'title' => 'Settings',
652 'fields' => $settings_tab,
653 ),
654 array(
655 'title' => 'Styles',
656 'fields' => $styles_tab,
657 )
658 ),
659 ),
660 )
661 ));
662 }
663 }
664