PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.10
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.10
4.4.10 4.4.9.1 4.4.9 4.4.8 4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 All 142 releases
← All changes | inc/admin/class-lp-admin-assets.php +44 -29 4.4.3 → 4.4.10 View file →
@@ -68,8 +68,9 @@
68 68 'yes' => esc_html__( 'Yes' ),
69 69 'cancel' => esc_html__( 'Cancel' ),
70 70 'generate_with_ai' => esc_html__( 'Generate with AI', 'learnpress' ),
71 71 'confirm_close_ai' => esc_html__( 'Are you sure you want to close? Generate data will stop.', 'learnpress' ),
72 + 'select_user' => esc_html__( 'Select users', 'learnpress' ),
72 73 ),
73 74 'current_screen' => $screen ? $screen->id : '',
74 75 'show_search_author_field' => empty( $html_search_author_field ) ? 0 : $html_search_author_field,
75 76 'toast' => array(
@@ -82,9 +83,9 @@
82 83 ),
83 84 'single_instructor_id' => learn_press_get_page_id( 'single_instructor' ),
84 85 'lpAi' => array(
85 86 'config' => Config::instance()->get( 'open-ai-modal', 'settings' ),
86 - 'modelImage' => LP_Settings::get_option( 'open_ai_image_model_type', 'dall-e-3' ),
87 + 'modelImage' => LP_Settings::get_option( 'open_ai_image_model_type', 'gpt-image-1' ),
87 88 ),
88 89 'enable_open_ai' => LP_Settings::get_option( 'enable_open_ai', 'no' ) === 'yes'
89 90 && ! empty( LP_Settings::get_option( 'open_ai_secret_key', '' ) ),
90 91 )
@@ -319,9 +320,9 @@
319 320 '',
320 321 array( 'strategy' => 'async' )
321 322 ),
322 323 // need build if change source vue
323 - 'vue-libs' => new LP_Asset_Key( $this->url( 'js/vendor/vue/vue_libs.js' ) ),
324 + //'vue-libs' => new LP_Asset_Key( $this->url( 'js/vendor/vue/vue_libs.js' ) ),
324 325 //'select2' => new LP_Asset_Key( $this->url( 'src/js/vendor/select2.full.min.js' ) ),
325 326 'jquery-tipsy' => new LP_Asset_Key( $this->url( 'src/js/vendor/jquery/jquery-tipsy.js' ) ),
326 327 'html2pdf' => new LP_Asset_Key( $this->url( 'src/js/vendor/html2pdf.bundle.min.js' ) ),
327 328 'lp-utils' => new LP_Asset_Key(
@@ -329,12 +330,8 @@
329 330 array(),
330 331 array(),
331 332 1
332 333 ),
333 - /*'dropdown-pages' => new LP_Asset_Key(
334 - $this->url( self::$_folder_source . 'js/admin/share/dropdown-pages' . self::$_min_assets . '.js' ),
335 - array( 'lp-utils', 'select2' )
336 - ),*/
337 334 /*
338 335 'jquery-ui-timepicker-addon' => new LP_Asset_Key(
339 336 $this->url( 'src/js/vendor/jquery/jquery-ui-timepicker-addon.js' ),
340 337 array( 'jquery-ui-datepicker' )
@@ -377,9 +374,8 @@
377 374 array(
378 375 'learn-press-global',
379 376 'wp-color-picker',
380 377 'jquery-tipsy',
381 - //'dropdown-pages',
382 378 'wp-api-fetch',
383 379 // 'jquery-ui-timepicker-addon',
384 380 // 'select2'
385 381 ),
@@ -506,16 +502,15 @@
506 502 array( 'learnpress_page_learn-press-tools' ),
507 503 0,
508 504 1
509 505 ),*/
510 - /*
511 - 'lp-setup' => new LP_Asset_Key(
512 - $this->url( 'js/dist/admin/pages/setup' . self::$_min_assets . '.js' ),
513 - array( 'jquery', 'dropdown-pages' ),
506 + 'lp-setup-wizard' => new LP_Asset_Key(
507 + $this->url( 'dist/js/admin/setup-wizard' . self::$_min_assets . '.js' ),
508 + [],
514 509 array( 'lp-page-setup' ),
515 510 0,
516 511 1
517 - ),*/
512 + ),
518 513 /*
519 514 'learn-press-statistic' => new LP_Asset_Key(
520 515 $this->url( 'js/dist/admin/pages/statistic' . self::$_min_assets . '.js' ),
521 516 array( 'jquery', 'jquery-ui-datepicker', 'chart' ),
@@ -543,20 +538,9 @@
543 538 1
544 539 ),*/
545 540 'lp-tools-course-tab' => new LP_Asset_Key(
546 541 $this->url( 'js/dist/admin/pages/tools' . self::$_min_assets . '.js' ),
547 - array(
548 - 'jquery',
549 - 'wp-element',
550 - 'wp-compose',
551 - 'wp-components',
552 - 'wp-data',
553 - 'wp-hooks',
554 - 'wp-api-fetch',
555 - 'lodash',
556 - 'vue-libs',
557 -
558 - ),
542 + [],
559 543 array( 'learnpress_page_learn-press-tools' ),
560 544 0,
561 545 1,
562 546 '',
@@ -610,16 +594,25 @@
610 594 '',
611 595 array( 'strategy' => 'async' )
612 596 ),
613 597 'lp-admin-tools' => new LP_Asset_Key(
614 - $this->url( 'js/dist/admin/admin-tools' . self::$_min_assets . '.js' ),
598 + $this->url( 'dist/js/admin/admin-tools' . self::$_min_assets . '.js' ),
615 599 array(),
616 600 array( 'learnpress_page_learn-press-tools' ),
617 601 0,
618 - 1,
602 + 0,
619 603 '',
620 604 array( 'strategy' => 'defer' )
621 605 ),
606 + 'lp-themes' => new LP_Asset_Key(
607 + $this->url( 'dist/js/admin/lp-themes' . self::$_min_assets . '.js' ),
608 + array(),
609 + array( 'learnpress_page_learn-press-themes' ),
610 + 0,
611 + 0,
612 + '',
613 + array( 'strategy' => 'async' )
614 + ),
622 615 'lp-admin-statistic' => new LP_Asset_Key(
623 616 $this->url( 'js/dist/admin/admin-statistic' . self::$_min_assets . '.js' ),
624 617 array( 'lp-load-ajax' ),
625 618 array( 'learnpress_page_learn-press-statistics' ),
@@ -693,8 +686,21 @@
693 686 ),
694 687 array(),
695 688 0
696 689 ),
690 + 'lp-help-center' => new LP_Asset_Key(
691 + $this->url( 'css/admin/help-center' . $is_rtl . self::$_min_assets . '.css' ),
692 + array(),
693 + array( 'learnpress_page_learn-press-help-center' ),
694 + 0
695 + ),
696 + 'lp-themes' => new LP_Asset_Key(
697 + $this->url( 'css/admin/themes' . $is_rtl . self::$_min_assets . '.css' ),
698 + array(),
699 + array( 'learnpress_page_learn-press-themes' ),
700 + 0,
701 + 0
702 + ),
697 703 'lp-edit-curriculum' => new LP_Asset_Key(
698 704 $this->url( 'css/edit-curriculum' . $is_rtl . self::$_min_assets . '.css' ),
699 705 array(),
700 706 array(),
@@ -711,14 +717,14 @@
711 717 array(),
712 718 array(),
713 719 1
714 720 ),
715 - 'learn-press-statistic' => new LP_Asset_Key(
721 + /*'learn-press-statistic' => new LP_Asset_Key(
716 722 LP_CSS_URL . 'admin/statistic' . $is_rtl . self::$_min_assets . '.css',
717 723 array(),
718 724 array( 'learners_page_learn-press-statistics' ),
719 725 0
720 - ),
726 + ),*/
721 727 'lp-tom-select' => new LP_Asset_Key(
722 728 $this->url( 'src/css/vendor/tom-select.min.css' ),
723 729 array(),
724 730 array(),
@@ -723,8 +729,14 @@
723 729 array(),
724 730 array(),
725 731 0
726 732 ),
733 + 'lp-setup-wizard' => new LP_Asset_Key(
734 + $this->url( 'css/admin/setup-wizard' . $is_rtl . self::$_min_assets . '.css' ),
735 + array(),
736 + array(),
737 + 1
738 + ),
727 739 )
728 740 );
729 741 }
730 742
@@ -734,9 +746,9 @@
734 746 public function load_scripts() {
735 747 $screen_id = LP_Admin::instance()->get_screen_id();
736 748
737 749 if ( empty( $screen_id ) ) {
738 - return;
750 + $screen_id = '';
739 751 }
740 752
741 753 // wp_enqueue_media(); //Todo: tungnx need check why call for that using.
742 754 $this->handle_js( $screen_id );
@@ -830,8 +842,11 @@
830 842 )
831 843 );
832 844 }*/
833 845
846 + /**
847 + * Instance
848 + */
834 849 public static function instance() {
835 850 if ( ! is_admin() ) {
836 851 return null;
837 852 }