PluginProbe
Adminify – White Label, Admin Menu Editor, Login Customizer / 4.0
Adminify – White Label, Admin Menu Editor, Login Customizer v4.0
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
← All changes | Inc/Admin/Options/MenuLayout.php +31 -53 4.2.174.0 View file →
@@ -1,11 +1,11 @@
1 1 <?php
2 2
3 -namespace PXLBSAdminify\Inc\Admin\Options;
3 +namespace WPAdminify\Inc\Admin\Options;
4 4
5 -use PXLBSAdminify\Inc\Utils;
6 -use PXLBSAdminify\Inc\Admin\AdminSettingsModel;
7 -use PXLBSAdminify\Inc\Modules\MenuEditor\MenuEditor;
5 +use WPAdminify\Inc\Utils;
6 +use WPAdminify\Inc\Admin\AdminSettingsModel;
7 +use WPAdminify\Inc\Modules\MenuEditor\MenuEditor;
8 8
9 9 if ( ! defined( 'ABSPATH' ) ) {
10 10 die;
11 11 } // Cannot access directly.
@@ -25,9 +25,8 @@
25 25 'layout_type' => 'vertical',
26 26 'menu_hover_submenu' => 'two_step',
27 27 'icon_style' => 'classic',
28 28 'menu_mode' => 'classic',
29 - 'menu_search' => false,
30 29 'horz_menu_type' => 'both',
31 30 'horz_dropdown_icon' => true,
32 31 'horz_toplinks' => false,
33 32 'horz_bubble_icon_hide' => false,
@@ -97,27 +96,13 @@
97 96 'id' => 'horizontal_menu_id_notice',
98 97 'type' => 'notice',
99 98 'style' => 'warning',
100 99 'class' => 'adminify-one-col',
101 - 'content' => Utils::upgrade_pro_notice( 'Horizontal Menu Requires "Adminify UI" Enabled from "Customize" Tab ' ),
100 + 'content' => Utils::adminify_upgrade_pro( 'Horizontal Menu Requires "Adminify UI" Enabled from "Customize" Tab ' ),
102 101 'dependency' => [ 'admin_ui|layout_type', '!=|==', 'true|horizontal', 'true' ],
103 102 ];
104 103
105 104 $settings_tab[] = [
106 - 'id' => 'menu_search',
107 - 'type' => 'switcher',
108 - /* translators: %s: PRO badge label */
109 - 'title' => sprintf(__('Menu Search %s', 'adminify'), Utils::upgrade_pro_badge()),
110 - 'class' => 'adminify-pro-fieldset adminify-pro-notice',
111 - 'label' => __( 'Enable or Disable Menu Search on Admin Menu', 'adminify' ),
112 - 'text_on' => __( 'Enable', 'adminify' ),
113 - 'text_off' => __( 'Disable', 'adminify' ),
114 - 'text_width' => 100,
115 - 'default' => $this->get_default_field( 'menu_layout_settings' )['menu_search'],
116 - 'dependency' => [ 'layout_type', '==', 'vertical', 'true' ],
117 - ];
118 -
119 - $settings_tab[] = [
120 105 'id' => 'menu_mode',
121 106 'type' => 'button_set',
122 107 'title' => __( 'Menu Mode', 'adminify' ),
123 108 'options' => [
@@ -133,9 +118,9 @@
133 118 'id' => 'rounded_menu_notice',
134 119 'type' => 'notice',
135 120 'style' => 'warning',
136 121 'class' => 'adminify-one-col',
137 - 'content' => Utils::upgrade_pro_notice( 'Rounded Menu Mode Requires "Adminify UI" Module Enabled from "Adminify>Customize" Menu ' ),
122 + 'content' => Utils::adminify_upgrade_pro( 'Rounded Menu Mode Requires "Adminify UI" Module Enabled from "WP Adminify>Customize" Menu ' ),
138 123 'dependency' => [ 'admin_ui|layout_type|menu_mode', '!=|==|==', 'true|vertical|rounded', 'true' ],
139 124 ];
140 125
141 126 $settings_tab[] = [
@@ -167,9 +152,9 @@
167 152 'id' => 'two_step_menu_notice',
168 153 'type' => 'notice',
169 154 'style' => 'warning',
170 155 'class' => 'adminify-one-col',
171 - 'content' => Utils::upgrade_pro_notice( 'Two Step Menu Requires "Adminify UI" Module Enabled from "Adminify>Customize" Menu ' ),
156 + 'content' => Utils::adminify_upgrade_pro( 'Two Step Menu Requires "Adminify UI" Module Enabled from "WP Adminify>Customize" Menu ' ),
172 157 'dependency' => [ 'admin_ui|layout_type|menu_hover_submenu', '!=|==|==', 'true|vertical|two_step', 'true' ],
173 158 ];
174 159
175 160 $settings_tab[] = [
@@ -176,9 +161,9 @@
176 161 'id' => 'accordion_menu_notice',
177 162 'type' => 'notice',
178 163 'style' => 'warning',
179 164 'class' => 'adminify-one-col',
180 - 'content' => Utils::upgrade_pro_notice( 'Accordion Menu Requires "Adminify UI" Module Enabled from "Adminify>Customize" Menu ' ),
165 + 'content' => Utils::adminify_upgrade_pro( 'Accordion Menu Requires "Adminify UI" Module Enabled from "WP Adminify>Customize" Menu ' ),
181 166 'dependency' => [ 'admin_ui|layout_type|menu_hover_submenu', '!=|==|==', 'true|vertical|accordion', 'true' ],
182 167 ];
183 168
184 169 $settings_tab[] = [
@@ -185,9 +170,9 @@
185 170 'id' => 'toggle_menu_notice',
186 171 'type' => 'notice',
187 172 'style' => 'warning',
188 173 'class' => 'adminify-one-col',
189 - 'content' => Utils::upgrade_pro_notice( 'Toggle Menu Requires "Adminify UI" Module Enabled from "Adminify>Customize" Menu ' ),
174 + 'content' => Utils::adminify_upgrade_pro( 'Toggle Menu Requires "Adminify UI" Module Enabled from "WP Adminify>Customize" Menu ' ),
190 175 'dependency' => [ 'admin_ui|layout_type|menu_hover_submenu', '!=|==|==', 'true|vertical|toggle', 'true' ],
191 176 ];
192 177
193 178 // $settings_tab[] = [
@@ -194,9 +179,9 @@
194 179 // 'id' => 'horizontal_menu_notice',
195 180 // 'type' => 'notice',
196 181 // 'title' => __( 'Horizontal Menu', 'adminify' ),
197 182 // 'style' => 'warning',
198 - // 'content' => Utils::upgrade_pro_notice(),
183 + // 'content' => Utils::adminify_upgrade_pro(),
199 184 // 'dependency' => [ 'admin_ui|layout_type', '==|==', 'true|horizontal', 'true' ],
200 185 // ];
201 186
202 187
@@ -203,11 +188,11 @@
203 188 $settings_tab[] = [
204 189 'id' => 'horizontal_menu_notice',
205 190 'type' => 'notice',
206 191 'style' => 'warning',
207 - 'title' => ' ',
192 + 'title' => __( ' ', 'adminify' ),
208 193 // 'class' => 'adminify-one-col',
209 - 'content' => Utils::upgrade_pro_notice( '<strong>Horizontal Menu is available in PRO version</strong>' ),
194 + 'content' => Utils::adminify_upgrade_pro( '<strong>Horizontal Menu is available in PRO version</strong>' ),
210 195 'dependency' => [ 'admin_ui|layout_type', '==|==', 'true|horizontal', 'true' ],
211 196 ];
212 197
213 198 $settings_tab[] = [
@@ -212,10 +197,9 @@
212 197
213 198 $settings_tab[] = [
214 199 'id' => 'user_info_fields',
215 200 'type' => 'fieldset',
216 - /* translators: %s: PRO badge label */
217 - 'title' => sprintf(__('User Info %s', 'adminify'), Utils::upgrade_pro_badge()),
201 + 'title' => sprintf(__('User Info %s', 'adminify'), Utils::adminify_upgrade_pro_badge()),
218 202 'dependency' => [ 'admin_ui|layout_type', '==|==', 'true|vertical', 'true' ],
219 203 'fields' => [
220 204 [
221 205 'id' => 'enable_user_info', // user_info
@@ -230,9 +214,9 @@
230 214 ],
231 215 [
232 216 'id' => 'user_info_content',
233 217 'type' => 'button_set',
234 - 'class' => Utils::upgrade_pro_notice_class(),
218 + 'class' => Utils::upgrade_pro_class(),
235 219 'title' => __( 'Content Type', 'adminify' ),
236 220 'options' => [
237 221 'text' => __( 'Text', 'adminify' ),
238 222 'icon' => __( 'Icon', 'adminify' ),
@@ -242,9 +226,9 @@
242 226 ],
243 227 [
244 228 'id' => 'user_info_avatar',
245 229 'type' => 'button_set',
246 - 'class' => Utils::upgrade_pro_notice_class(),
230 + 'class' => Utils::upgrade_pro_class(),
247 231 'title' => __( 'Avatar Type', 'adminify' ),
248 232 'options' => [
249 233 'rounded' => __( 'Rounded', 'adminify' ),
250 234 'square' => __( 'Square', 'adminify' ),
@@ -258,10 +242,9 @@
258 242 $settings_tab[] = [
259 243 'id' => 'horz_menu_type',
260 244 'type' => 'button_set',
261 245 'class' => 'adminify-pro-fieldset',
262 - /* translators: %s: PRO badge label */
263 - 'title' => sprintf(__('Menu Item Style %s', 'adminify'), Utils::upgrade_pro_badge()),
246 + 'title' => sprintf(__('Menu Item Style %s', 'adminify'), Utils::adminify_upgrade_pro_badge()),
264 247 'options' => [
265 248 'icons_only' => __( 'Icon Only', 'adminify' ),
266 249 'text_only' => __( 'Text Only', 'adminify' ),
267 250 'both' => __( 'Both', 'adminify' ),
@@ -273,10 +256,9 @@
273 256 $settings_tab[] = [
274 257 'id' => 'horz_dropdown_icon',
275 258 'type' => 'switcher',
276 259 'class' => 'adminify-pro-fieldset adminify-pro-notice',
277 - /* translators: %s: PRO badge label */
278 - 'title' => sprintf(__('Dropdown Toggle Icon %s', 'adminify'), Utils::upgrade_pro_badge()),
260 + 'title' => sprintf(__('Dropdown Toggle Icon %s', 'adminify'), Utils::adminify_upgrade_pro_badge()),
279 261 'label' => __( 'Show/Hide Dropdown Icon', 'adminify' ),
280 262 'text_on' => __( 'Show', 'adminify' ),
281 263 'text_off' => __( 'Hide', 'adminify' ),
282 264 'text_width' => 100,
@@ -287,10 +269,9 @@
287 269 $settings_tab[] = [
288 270 'id' => 'horz_toplinks',
289 271 'type' => 'switcher',
290 272 'class' => 'adminify-pro-fieldset adminify-pro-notice',
291 - /* translators: %s: PRO badge label */
292 - 'title' => sprintf(__('Top Menu Links %s', 'adminify'), Utils::upgrade_pro_badge()),
273 + 'title' => sprintf(__('Top Menu Links %s', 'adminify'), Utils::adminify_upgrade_pro_badge()),
293 274 'label' => __( 'Parent/Top Menu Links clickable', 'adminify' ),
294 275 'text_on' => __( 'Enabled', 'adminify' ),
295 276 'text_off' => __( 'Disabled', 'adminify' ),
296 277 'text_width' => 100,
@@ -301,10 +282,9 @@
301 282 $settings_tab[] = [
302 283 'id' => 'horz_bubble_icon_hide',
303 284 'type' => 'switcher',
304 285 'class' => 'adminify-pro-fieldset adminify-pro-notice',
305 - /* translators: %s: PRO badge label */
306 - 'title' => sprintf(__('Bubble Icon %s', 'adminify'), Utils::upgrade_pro_badge()),
286 + 'title' => sprintf(__('Bubble Icon %s', 'adminify'), Utils::adminify_upgrade_pro_badge()),
307 287 'label' => __( 'Show/Hide Update or Plugins Bubble Icon', 'adminify' ),
308 288 'text_on' => __( 'Show', 'adminify' ),
309 289 'text_off' => __( 'Hide', 'adminify' ),
310 290 'text_width' => 100,
@@ -316,9 +296,9 @@
316 296 // 'id' => 'horz_long_menu_break',
317 297 // 'type' => 'switcher',
318 298 // 'class' => 'adminify-pro-fieldset adminify-pro-notice',
319 299 // 'title' => __( 'Break Long Lists', 'adminify' ),
320 - // 'title' => sprintf(__('Break Long Lists %s', 'adminify'), Utils::upgrade_pro_badge()),
300 + // 'title' => sprintf(__('Break Long Lists %s', 'adminify'), Utils::adminify_upgrade_pro_badge()),
321 301 // 'label' => __( 'Break Menu Lines if Main menu gets longer lists and doesn\'t cover screen witdh', 'adminify' ),
322 302 // 'text_on' => __( 'Enable', 'adminify' ),
323 303 // 'text_off' => __( 'Disable', 'adminify' ),
324 304 // 'text_width' => 100,
@@ -389,10 +369,9 @@
389 369 $menu_styles_tab[] = [
390 370 'id' => 'horz_menu_parent_padding',
391 371 'type' => 'slider',
392 372 'class' => 'adminify-pro-fieldset adminify-pro-notice',
393 - /* translators: %s: PRO badge label */
394 - 'title' => sprintf(__('Parent Menu Horizontal Padding %s', 'adminify'), Utils::upgrade_pro_badge()),
373 + 'title' => sprintf(__('Parent Menu Horizontal Padding %s', 'adminify'), Utils::adminify_upgrade_pro_badge()),
395 374 'unit' => 'px',
396 375 'min' => 1,
397 376 'max' => 100,
398 377 'step' => 1,
@@ -484,10 +463,9 @@
484 463 $styles_tab[] = [
485 464 'id' => 'user_info_style',
486 465 'type' => 'color_group',
487 466 'class' => 'adminify-pro-fieldset',
488 - /* translators: %s: PRO badge label */
489 - 'title' => sprintf(__('User Info Colors %s', 'adminify'), Utils::upgrade_pro_badge()),
467 + 'title' => sprintf(__('User Info Colors %s', 'adminify'), Utils::adminify_upgrade_pro_badge()),
490 468 'options' => [
491 469 'info_text_color' => __('Link Color', 'adminify'),
492 470 'info_text_hover_color' => __('Hover Color', 'adminify'),
493 471 'info_text_border' => __('Border', 'adminify'),
@@ -501,11 +479,11 @@
501 479
502 480 /**
503 481 * Menu Editor Root
504 482 */
505 - public static function menu_editor_contents() {
483 + public static function jltwp_adminify_menu_editor_contents() {
506 484 $menu_editor = MenuEditor::get_instance();
507 - $menu_editor->menu_editor_contents();
485 + $menu_editor->jltwp_adminify_menu_editor_contents();
508 486 }
509 487
510 488
511 489 /**
@@ -521,10 +499,10 @@
521 499
522 500 $this->menu_layout_settings_tab( $settings_tab );
523 501 $this->menu_styles_tab( $styles_tab );
524 502
525 - $settings_tab = apply_filters('pxlbsadminify_settings/admin_menu/settings', $settings_tab, $this);
526 - $styles_tab = apply_filters('pxlbsadminify_settings/admin_menu/styles', $styles_tab, $this);
503 + $settings_tab = apply_filters('adminify_settings/admin_menu/settings', $settings_tab, $this);
504 + $styles_tab = apply_filters('adminify_settings/admin_menu/styles', $styles_tab, $this);
527 505
528 506 // Menu Layout Section
529 507 \ADMINIFY::createSection(
530 508 $this->prefix,
@@ -533,14 +511,14 @@
533 511 'icon' => 'fas fa-bars',
534 512 'fields' => [
535 513 [
536 514 'type' => 'subheading',
537 - 'content' => Utils::help_urls(
515 + 'content' => Utils::adminfiy_help_urls(
538 516 __('Admin Menu Settings', 'adminify' ),
539 - 'https://wpadminify.com/docs/adminify/admin-menu/admin-menu-editor',
540 - 'https://www.youtube.com/watch?v=zbEYlAg91QM',
517 + 'https://wpadminify.com/kb/admin-menu',
518 + '',
541 519 'https://www.facebook.com/groups/jeweltheme',
542 - \PXLBSAdminify\Inc\Admin\AdminSettings::support_url()
520 + 'https://wpadminify.com/support/'
543 521 ),
544 522 ],
545 523 [
546 524 'id' => 'menu_layout_settings',
@@ -553,9 +531,9 @@
553 531 [
554 532 'id' => 'menu_editor',
555 533 'type' => 'callback',
556 534 'class' => 'adminify-one-col',
557 - 'function' => '\PXLBSAdminify\Inc\Admin\Options\MenuLayout::menu_editor_contents',
535 + 'function' => '\WPAdminify\Inc\Admin\Options\MenuLayout::jltwp_adminify_menu_editor_contents',
558 536 ]
559 537 ],
560 538 ],
561 539 [