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 +37 -23 4.4.5 → 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(
@@ -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(
@@ -501,16 +502,15 @@
501 502 array( 'learnpress_page_learn-press-tools' ),
502 503 0,
503 504 1
504 505 ),*/
505 - /*
506 - 'lp-setup' => new LP_Asset_Key(
507 - $this->url( 'js/dist/admin/pages/setup' . self::$_min_assets . '.js' ),
508 - 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 + [],
509 509 array( 'lp-page-setup' ),
510 510 0,
511 511 1
512 - ),*/
512 + ),
513 513 /*
514 514 'learn-press-statistic' => new LP_Asset_Key(
515 515 $this->url( 'js/dist/admin/pages/statistic' . self::$_min_assets . '.js' ),
516 516 array( 'jquery', 'jquery-ui-datepicker', 'chart' ),
@@ -538,20 +538,9 @@
538 538 1
539 539 ),*/
540 540 'lp-tools-course-tab' => new LP_Asset_Key(
541 541 $this->url( 'js/dist/admin/pages/tools' . self::$_min_assets . '.js' ),
542 - array(
543 - 'jquery',
544 - 'wp-element',
545 - 'wp-compose',
546 - 'wp-components',
547 - 'wp-data',
548 - 'wp-hooks',
549 - 'wp-api-fetch',
550 - 'lodash',
551 - 'vue-libs',
552 -
553 - ),
542 + [],
554 543 array( 'learnpress_page_learn-press-tools' ),
555 544 0,
556 545 1,
557 546 '',
@@ -605,16 +594,25 @@
605 594 '',
606 595 array( 'strategy' => 'async' )
607 596 ),
608 597 'lp-admin-tools' => new LP_Asset_Key(
609 - $this->url( 'js/dist/admin/admin-tools' . self::$_min_assets . '.js' ),
598 + $this->url( 'dist/js/admin/admin-tools' . self::$_min_assets . '.js' ),
610 599 array(),
611 600 array( 'learnpress_page_learn-press-tools' ),
612 601 0,
613 - 1,
602 + 0,
614 603 '',
615 604 array( 'strategy' => 'defer' )
616 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 + ),
617 615 'lp-admin-statistic' => new LP_Asset_Key(
618 616 $this->url( 'js/dist/admin/admin-statistic' . self::$_min_assets . '.js' ),
619 617 array( 'lp-load-ajax' ),
620 618 array( 'learnpress_page_learn-press-statistics' ),
@@ -694,8 +692,15 @@
694 692 array(),
695 693 array( 'learnpress_page_learn-press-help-center' ),
696 694 0
697 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 + ),
698 703 'lp-edit-curriculum' => new LP_Asset_Key(
699 704 $this->url( 'css/edit-curriculum' . $is_rtl . self::$_min_assets . '.css' ),
700 705 array(),
701 706 array(),
@@ -712,14 +717,14 @@
712 717 array(),
713 718 array(),
714 719 1
715 720 ),
716 - 'learn-press-statistic' => new LP_Asset_Key(
721 + /*'learn-press-statistic' => new LP_Asset_Key(
717 722 LP_CSS_URL . 'admin/statistic' . $is_rtl . self::$_min_assets . '.css',
718 723 array(),
719 724 array( 'learners_page_learn-press-statistics' ),
720 725 0
721 - ),
726 + ),*/
722 727 'lp-tom-select' => new LP_Asset_Key(
723 728 $this->url( 'src/css/vendor/tom-select.min.css' ),
724 729 array(),
725 730 array(),
@@ -724,8 +729,14 @@
724 729 array(),
725 730 array(),
726 731 0
727 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 + ),
728 739 )
729 740 );
730 741 }
731 742
@@ -735,9 +746,9 @@
735 746 public function load_scripts() {
736 747 $screen_id = LP_Admin::instance()->get_screen_id();
737 748
738 749 if ( empty( $screen_id ) ) {
739 - return;
750 + $screen_id = '';
740 751 }
741 752
742 753 // wp_enqueue_media(); //Todo: tungnx need check why call for that using.
743 754 $this->handle_js( $screen_id );
@@ -831,8 +842,11 @@
831 842 )
832 843 );
833 844 }*/
834 845
846 + /**
847 + * Instance
848 + */
835 849 public static function instance() {
836 850 if ( ! is_admin() ) {
837 851 return null;
838 852 }