| @@ -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. |
| @@ -97,9 +97,9 @@ | ||
| 97 | 97 | 'id' => 'horizontal_menu_id_notice', |
| 98 | 98 | 'type' => 'notice', |
| 99 | 99 | 'style' => 'warning', |
| 100 | 100 | 'class' => 'adminify-one-col', |
| 101 | - 'content' => Utils::upgrade_pro_notice( 'Horizontal Menu Requires "Adminify UI" Enabled from "Customize" Tab ' ), | |
| 101 | + 'content' => Utils::adminify_upgrade_pro( 'Horizontal Menu Requires "Adminify UI" Enabled from "Customize" Tab ' ), | |
| 102 | 102 | 'dependency' => [ 'admin_ui|layout_type', '!=|==', 'true|horizontal', 'true' ], |
| 103 | 103 | ]; |
| 104 | 104 | |
| 105 | 105 | $settings_tab[] = [ |
| @@ -104,10 +104,9 @@ | ||
| 104 | 104 | |
| 105 | 105 | $settings_tab[] = [ |
| 106 | 106 | 'id' => 'menu_search', |
| 107 | 107 | 'type' => 'switcher', |
| 108 | - /* translators: %s: PRO badge label */ | |
| 109 | - 'title' => sprintf(__('Menu Search %s', 'adminify'), Utils::upgrade_pro_badge()), | |
| 108 | + 'title' => sprintf(__('Menu Search %s', 'adminify'), Utils::adminify_upgrade_pro_badge()), | |
| 110 | 109 | 'class' => 'adminify-pro-fieldset adminify-pro-notice', |
| 111 | 110 | 'label' => __( 'Enable or Disable Menu Search on Admin Menu', 'adminify' ), |
| 112 | 111 | 'text_on' => __( 'Enable', 'adminify' ), |
| 113 | 112 | 'text_off' => __( 'Disable', 'adminify' ), |
| @@ -133,9 +132,9 @@ | ||
| 133 | 132 | 'id' => 'rounded_menu_notice', |
| 134 | 133 | 'type' => 'notice', |
| 135 | 134 | 'style' => 'warning', |
| 136 | 135 | 'class' => 'adminify-one-col', |
| 137 | - 'content' => Utils::upgrade_pro_notice( 'Rounded Menu Mode Requires "Adminify UI" Module Enabled from "Adminify>Customize" Menu ' ), | |
| 136 | + 'content' => Utils::adminify_upgrade_pro( 'Rounded Menu Mode Requires "Adminify UI" Module Enabled from "WP Adminify>Customize" Menu ' ), | |
| 138 | 137 | 'dependency' => [ 'admin_ui|layout_type|menu_mode', '!=|==|==', 'true|vertical|rounded', 'true' ], |
| 139 | 138 | ]; |
| 140 | 139 | |
| 141 | 140 | $settings_tab[] = [ |
| @@ -167,9 +166,9 @@ | ||
| 167 | 166 | 'id' => 'two_step_menu_notice', |
| 168 | 167 | 'type' => 'notice', |
| 169 | 168 | 'style' => 'warning', |
| 170 | 169 | 'class' => 'adminify-one-col', |
| 171 | - 'content' => Utils::upgrade_pro_notice( 'Two Step Menu Requires "Adminify UI" Module Enabled from "Adminify>Customize" Menu ' ), | |
| 170 | + 'content' => Utils::adminify_upgrade_pro( 'Two Step Menu Requires "Adminify UI" Module Enabled from "WP Adminify>Customize" Menu ' ), | |
| 172 | 171 | 'dependency' => [ 'admin_ui|layout_type|menu_hover_submenu', '!=|==|==', 'true|vertical|two_step', 'true' ], |
| 173 | 172 | ]; |
| 174 | 173 | |
| 175 | 174 | $settings_tab[] = [ |
| @@ -176,9 +175,9 @@ | ||
| 176 | 175 | 'id' => 'accordion_menu_notice', |
| 177 | 176 | 'type' => 'notice', |
| 178 | 177 | 'style' => 'warning', |
| 179 | 178 | 'class' => 'adminify-one-col', |
| 180 | - 'content' => Utils::upgrade_pro_notice( 'Accordion Menu Requires "Adminify UI" Module Enabled from "Adminify>Customize" Menu ' ), | |
| 179 | + 'content' => Utils::adminify_upgrade_pro( 'Accordion Menu Requires "Adminify UI" Module Enabled from "WP Adminify>Customize" Menu ' ), | |
| 181 | 180 | 'dependency' => [ 'admin_ui|layout_type|menu_hover_submenu', '!=|==|==', 'true|vertical|accordion', 'true' ], |
| 182 | 181 | ]; |
| 183 | 182 | |
| 184 | 183 | $settings_tab[] = [ |
| @@ -185,9 +184,9 @@ | ||
| 185 | 184 | 'id' => 'toggle_menu_notice', |
| 186 | 185 | 'type' => 'notice', |
| 187 | 186 | 'style' => 'warning', |
| 188 | 187 | 'class' => 'adminify-one-col', |
| 189 | - 'content' => Utils::upgrade_pro_notice( 'Toggle Menu Requires "Adminify UI" Module Enabled from "Adminify>Customize" Menu ' ), | |
| 188 | + 'content' => Utils::adminify_upgrade_pro( 'Toggle Menu Requires "Adminify UI" Module Enabled from "WP Adminify>Customize" Menu ' ), | |
| 190 | 189 | 'dependency' => [ 'admin_ui|layout_type|menu_hover_submenu', '!=|==|==', 'true|vertical|toggle', 'true' ], |
| 191 | 190 | ]; |
| 192 | 191 | |
| 193 | 192 | // $settings_tab[] = [ |
| @@ -194,9 +193,9 @@ | ||
| 194 | 193 | // 'id' => 'horizontal_menu_notice', |
| 195 | 194 | // 'type' => 'notice', |
| 196 | 195 | // 'title' => __( 'Horizontal Menu', 'adminify' ), |
| 197 | 196 | // 'style' => 'warning', |
| 198 | - // 'content' => Utils::upgrade_pro_notice(), | |
| 197 | + // 'content' => Utils::adminify_upgrade_pro(), | |
| 199 | 198 | // 'dependency' => [ 'admin_ui|layout_type', '==|==', 'true|horizontal', 'true' ], |
| 200 | 199 | // ]; |
| 201 | 200 | |
| 202 | 201 | |
| @@ -203,11 +202,11 @@ | ||
| 203 | 202 | $settings_tab[] = [ |
| 204 | 203 | 'id' => 'horizontal_menu_notice', |
| 205 | 204 | 'type' => 'notice', |
| 206 | 205 | 'style' => 'warning', |
| 207 | - 'title' => ' ', | |
| 206 | + 'title' => __( ' ', 'adminify' ), | |
| 208 | 207 | // 'class' => 'adminify-one-col', |
| 209 | - 'content' => Utils::upgrade_pro_notice( '<strong>Horizontal Menu is available in PRO version</strong>' ), | |
| 208 | + 'content' => Utils::adminify_upgrade_pro( '<strong>Horizontal Menu is available in PRO version</strong>' ), | |
| 210 | 209 | 'dependency' => [ 'admin_ui|layout_type', '==|==', 'true|horizontal', 'true' ], |
| 211 | 210 | ]; |
| 212 | 211 | |
| 213 | 212 | $settings_tab[] = [ |
| @@ -212,10 +211,9 @@ | ||
| 212 | 211 | |
| 213 | 212 | $settings_tab[] = [ |
| 214 | 213 | 'id' => 'user_info_fields', |
| 215 | 214 | 'type' => 'fieldset', |
| 216 | - /* translators: %s: PRO badge label */ | |
| 217 | - 'title' => sprintf(__('User Info %s', 'adminify'), Utils::upgrade_pro_badge()), | |
| 215 | + 'title' => sprintf(__('User Info %s', 'adminify'), Utils::adminify_upgrade_pro_badge()), | |
| 218 | 216 | 'dependency' => [ 'admin_ui|layout_type', '==|==', 'true|vertical', 'true' ], |
| 219 | 217 | 'fields' => [ |
| 220 | 218 | [ |
| 221 | 219 | 'id' => 'enable_user_info', // user_info |
| @@ -230,9 +228,9 @@ | ||
| 230 | 228 | ], |
| 231 | 229 | [ |
| 232 | 230 | 'id' => 'user_info_content', |
| 233 | 231 | 'type' => 'button_set', |
| 234 | - 'class' => Utils::upgrade_pro_notice_class(), | |
| 232 | + 'class' => Utils::upgrade_pro_class(), | |
| 235 | 233 | 'title' => __( 'Content Type', 'adminify' ), |
| 236 | 234 | 'options' => [ |
| 237 | 235 | 'text' => __( 'Text', 'adminify' ), |
| 238 | 236 | 'icon' => __( 'Icon', 'adminify' ), |
| @@ -242,9 +240,9 @@ | ||
| 242 | 240 | ], |
| 243 | 241 | [ |
| 244 | 242 | 'id' => 'user_info_avatar', |
| 245 | 243 | 'type' => 'button_set', |
| 246 | - 'class' => Utils::upgrade_pro_notice_class(), | |
| 244 | + 'class' => Utils::upgrade_pro_class(), | |
| 247 | 245 | 'title' => __( 'Avatar Type', 'adminify' ), |
| 248 | 246 | 'options' => [ |
| 249 | 247 | 'rounded' => __( 'Rounded', 'adminify' ), |
| 250 | 248 | 'square' => __( 'Square', 'adminify' ), |
| @@ -258,10 +256,9 @@ | ||
| 258 | 256 | $settings_tab[] = [ |
| 259 | 257 | 'id' => 'horz_menu_type', |
| 260 | 258 | 'type' => 'button_set', |
| 261 | 259 | 'class' => 'adminify-pro-fieldset', |
| 262 | - /* translators: %s: PRO badge label */ | |
| 263 | - 'title' => sprintf(__('Menu Item Style %s', 'adminify'), Utils::upgrade_pro_badge()), | |
| 260 | + 'title' => sprintf(__('Menu Item Style %s', 'adminify'), Utils::adminify_upgrade_pro_badge()), | |
| 264 | 261 | 'options' => [ |
| 265 | 262 | 'icons_only' => __( 'Icon Only', 'adminify' ), |
| 266 | 263 | 'text_only' => __( 'Text Only', 'adminify' ), |
| 267 | 264 | 'both' => __( 'Both', 'adminify' ), |
| @@ -273,10 +270,9 @@ | ||
| 273 | 270 | $settings_tab[] = [ |
| 274 | 271 | 'id' => 'horz_dropdown_icon', |
| 275 | 272 | 'type' => 'switcher', |
| 276 | 273 | '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()), | |
| 274 | + 'title' => sprintf(__('Dropdown Toggle Icon %s', 'adminify'), Utils::adminify_upgrade_pro_badge()), | |
| 279 | 275 | 'label' => __( 'Show/Hide Dropdown Icon', 'adminify' ), |
| 280 | 276 | 'text_on' => __( 'Show', 'adminify' ), |
| 281 | 277 | 'text_off' => __( 'Hide', 'adminify' ), |
| 282 | 278 | 'text_width' => 100, |
| @@ -287,10 +283,9 @@ | ||
| 287 | 283 | $settings_tab[] = [ |
| 288 | 284 | 'id' => 'horz_toplinks', |
| 289 | 285 | 'type' => 'switcher', |
| 290 | 286 | '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()), | |
| 287 | + 'title' => sprintf(__('Top Menu Links %s', 'adminify'), Utils::adminify_upgrade_pro_badge()), | |
| 293 | 288 | 'label' => __( 'Parent/Top Menu Links clickable', 'adminify' ), |
| 294 | 289 | 'text_on' => __( 'Enabled', 'adminify' ), |
| 295 | 290 | 'text_off' => __( 'Disabled', 'adminify' ), |
| 296 | 291 | 'text_width' => 100, |
| @@ -301,10 +296,9 @@ | ||
| 301 | 296 | $settings_tab[] = [ |
| 302 | 297 | 'id' => 'horz_bubble_icon_hide', |
| 303 | 298 | 'type' => 'switcher', |
| 304 | 299 | 'class' => 'adminify-pro-fieldset adminify-pro-notice', |
| 305 | - /* translators: %s: PRO badge label */ | |
| 306 | - 'title' => sprintf(__('Bubble Icon %s', 'adminify'), Utils::upgrade_pro_badge()), | |
| 300 | + 'title' => sprintf(__('Bubble Icon %s', 'adminify'), Utils::adminify_upgrade_pro_badge()), | |
| 307 | 301 | 'label' => __( 'Show/Hide Update or Plugins Bubble Icon', 'adminify' ), |
| 308 | 302 | 'text_on' => __( 'Show', 'adminify' ), |
| 309 | 303 | 'text_off' => __( 'Hide', 'adminify' ), |
| 310 | 304 | 'text_width' => 100, |
| @@ -316,9 +310,9 @@ | ||
| 316 | 310 | // 'id' => 'horz_long_menu_break', |
| 317 | 311 | // 'type' => 'switcher', |
| 318 | 312 | // 'class' => 'adminify-pro-fieldset adminify-pro-notice', |
| 319 | 313 | // 'title' => __( 'Break Long Lists', 'adminify' ), |
| 320 | - // 'title' => sprintf(__('Break Long Lists %s', 'adminify'), Utils::upgrade_pro_badge()), | |
| 314 | + // 'title' => sprintf(__('Break Long Lists %s', 'adminify'), Utils::adminify_upgrade_pro_badge()), | |
| 321 | 315 | // 'label' => __( 'Break Menu Lines if Main menu gets longer lists and doesn\'t cover screen witdh', 'adminify' ), |
| 322 | 316 | // 'text_on' => __( 'Enable', 'adminify' ), |
| 323 | 317 | // 'text_off' => __( 'Disable', 'adminify' ), |
| 324 | 318 | // 'text_width' => 100, |
| @@ -389,10 +383,9 @@ | ||
| 389 | 383 | $menu_styles_tab[] = [ |
| 390 | 384 | 'id' => 'horz_menu_parent_padding', |
| 391 | 385 | 'type' => 'slider', |
| 392 | 386 | '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()), | |
| 387 | + 'title' => sprintf(__('Parent Menu Horizontal Padding %s', 'adminify'), Utils::adminify_upgrade_pro_badge()), | |
| 395 | 388 | 'unit' => 'px', |
| 396 | 389 | 'min' => 1, |
| 397 | 390 | 'max' => 100, |
| 398 | 391 | 'step' => 1, |
| @@ -484,10 +477,9 @@ | ||
| 484 | 477 | $styles_tab[] = [ |
| 485 | 478 | 'id' => 'user_info_style', |
| 486 | 479 | 'type' => 'color_group', |
| 487 | 480 | 'class' => 'adminify-pro-fieldset', |
| 488 | - /* translators: %s: PRO badge label */ | |
| 489 | - 'title' => sprintf(__('User Info Colors %s', 'adminify'), Utils::upgrade_pro_badge()), | |
| 481 | + 'title' => sprintf(__('User Info Colors %s', 'adminify'), Utils::adminify_upgrade_pro_badge()), | |
| 490 | 482 | 'options' => [ |
| 491 | 483 | 'info_text_color' => __('Link Color', 'adminify'), |
| 492 | 484 | 'info_text_hover_color' => __('Hover Color', 'adminify'), |
| 493 | 485 | 'info_text_border' => __('Border', 'adminify'), |
| @@ -501,11 +493,11 @@ | ||
| 501 | 493 | |
| 502 | 494 | /** |
| 503 | 495 | * Menu Editor Root |
| 504 | 496 | */ |
| 505 | - public static function menu_editor_contents() { | |
| 497 | + public static function jltwp_adminify_menu_editor_contents() { | |
| 506 | 498 | $menu_editor = MenuEditor::get_instance(); |
| 507 | - $menu_editor->menu_editor_contents(); | |
| 499 | + $menu_editor->jltwp_adminify_menu_editor_contents(); | |
| 508 | 500 | } |
| 509 | 501 | |
| 510 | 502 | |
| 511 | 503 | /** |
| @@ -521,10 +513,10 @@ | ||
| 521 | 513 | |
| 522 | 514 | $this->menu_layout_settings_tab( $settings_tab ); |
| 523 | 515 | $this->menu_styles_tab( $styles_tab ); |
| 524 | 516 | |
| 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); | |
| 517 | + $settings_tab = apply_filters('adminify_settings/admin_menu/settings', $settings_tab, $this); | |
| 518 | + $styles_tab = apply_filters('adminify_settings/admin_menu/styles', $styles_tab, $this); | |
| 527 | 519 | |
| 528 | 520 | // Menu Layout Section |
| 529 | 521 | \ADMINIFY::createSection( |
| 530 | 522 | $this->prefix, |
| @@ -533,14 +525,14 @@ | ||
| 533 | 525 | 'icon' => 'fas fa-bars', |
| 534 | 526 | 'fields' => [ |
| 535 | 527 | [ |
| 536 | 528 | 'type' => 'subheading', |
| 537 | - 'content' => Utils::help_urls( | |
| 529 | + 'content' => Utils::adminfiy_help_urls( | |
| 538 | 530 | __('Admin Menu Settings', 'adminify' ), |
| 539 | 531 | 'https://wpadminify.com/docs/adminify/admin-menu/admin-menu-editor', |
| 540 | 532 | 'https://www.youtube.com/watch?v=zbEYlAg91QM', |
| 541 | 533 | 'https://www.facebook.com/groups/jeweltheme', |
| 542 | - \PXLBSAdminify\Inc\Admin\AdminSettings::support_url() | |
| 534 | + \WPAdminify\Inc\Admin\AdminSettings::support_url() | |
| 543 | 535 | ), |
| 544 | 536 | ], |
| 545 | 537 | [ |
| 546 | 538 | 'id' => 'menu_layout_settings', |
| @@ -553,9 +545,9 @@ | ||
| 553 | 545 | [ |
| 554 | 546 | 'id' => 'menu_editor', |
| 555 | 547 | 'type' => 'callback', |
| 556 | 548 | 'class' => 'adminify-one-col', |
| 557 | - 'function' => '\PXLBSAdminify\Inc\Admin\Options\MenuLayout::menu_editor_contents', | |
| 549 | + 'function' => '\WPAdminify\Inc\Admin\Options\MenuLayout::jltwp_adminify_menu_editor_contents', | |
| 558 | 550 | ] |
| 559 | 551 | ], |
| 560 | 552 | ], |
| 561 | 553 | [ |