PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.8
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.8
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 4.1.7.3.1 4.1.7.3.2 4.2.0 All 139 releases
← All changes | inc/admin/class-lp-admin-assets.php +36 -23 4.4.54.4.8 View file →
@@ -319,9 +319,9 @@
319 319 '',
320 320 array( 'strategy' => 'async' )
321 321 ),
322 322 // need build if change source vue
323 - 'vue-libs' => new LP_Asset_Key( $this->url( 'js/vendor/vue/vue_libs.js' ) ),
323 + //'vue-libs' => new LP_Asset_Key( $this->url( 'js/vendor/vue/vue_libs.js' ) ),
324 324 //'select2' => new LP_Asset_Key( $this->url( 'src/js/vendor/select2.full.min.js' ) ),
325 325 'jquery-tipsy' => new LP_Asset_Key( $this->url( 'src/js/vendor/jquery/jquery-tipsy.js' ) ),
326 326 'html2pdf' => new LP_Asset_Key( $this->url( 'src/js/vendor/html2pdf.bundle.min.js' ) ),
327 327 'lp-utils' => new LP_Asset_Key(
@@ -501,16 +501,15 @@
501 501 array( 'learnpress_page_learn-press-tools' ),
502 502 0,
503 503 1
504 504 ),*/
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' ),
505 + 'lp-setup-wizard' => new LP_Asset_Key(
506 + $this->url( 'dist/js/admin/setup-wizard' . self::$_min_assets . '.js' ),
507 + [],
509 508 array( 'lp-page-setup' ),
510 509 0,
511 510 1
512 - ),*/
511 + ),
513 512 /*
514 513 'learn-press-statistic' => new LP_Asset_Key(
515 514 $this->url( 'js/dist/admin/pages/statistic' . self::$_min_assets . '.js' ),
516 515 array( 'jquery', 'jquery-ui-datepicker', 'chart' ),
@@ -538,20 +537,9 @@
538 537 1
539 538 ),*/
540 539 'lp-tools-course-tab' => new LP_Asset_Key(
541 540 $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 - ),
541 + [],
554 542 array( 'learnpress_page_learn-press-tools' ),
555 543 0,
556 544 1,
557 545 '',
@@ -605,16 +593,25 @@
605 593 '',
606 594 array( 'strategy' => 'async' )
607 595 ),
608 596 'lp-admin-tools' => new LP_Asset_Key(
609 - $this->url( 'js/dist/admin/admin-tools' . self::$_min_assets . '.js' ),
597 + $this->url( 'dist/js/admin/admin-tools' . self::$_min_assets . '.js' ),
610 598 array(),
611 599 array( 'learnpress_page_learn-press-tools' ),
612 600 0,
613 - 1,
601 + 0,
614 602 '',
615 603 array( 'strategy' => 'defer' )
616 604 ),
605 + 'lp-themes' => new LP_Asset_Key(
606 + $this->url( 'dist/js/admin/lp-themes' . self::$_min_assets . '.js' ),
607 + array(),
608 + array( 'learnpress_page_learn-press-themes' ),
609 + 0,
610 + 0,
611 + '',
612 + array( 'strategy' => 'async' )
613 + ),
617 614 'lp-admin-statistic' => new LP_Asset_Key(
618 615 $this->url( 'js/dist/admin/admin-statistic' . self::$_min_assets . '.js' ),
619 616 array( 'lp-load-ajax' ),
620 617 array( 'learnpress_page_learn-press-statistics' ),
@@ -694,8 +691,15 @@
694 691 array(),
695 692 array( 'learnpress_page_learn-press-help-center' ),
696 693 0
697 694 ),
695 + 'lp-themes' => new LP_Asset_Key(
696 + $this->url( 'css/admin/themes' . $is_rtl . self::$_min_assets . '.css' ),
697 + array(),
698 + array( 'learnpress_page_learn-press-themes' ),
699 + 0,
700 + 0
701 + ),
698 702 'lp-edit-curriculum' => new LP_Asset_Key(
699 703 $this->url( 'css/edit-curriculum' . $is_rtl . self::$_min_assets . '.css' ),
700 704 array(),
701 705 array(),
@@ -712,14 +716,14 @@
712 716 array(),
713 717 array(),
714 718 1
715 719 ),
716 - 'learn-press-statistic' => new LP_Asset_Key(
720 + /*'learn-press-statistic' => new LP_Asset_Key(
717 721 LP_CSS_URL . 'admin/statistic' . $is_rtl . self::$_min_assets . '.css',
718 722 array(),
719 723 array( 'learners_page_learn-press-statistics' ),
720 724 0
721 - ),
725 + ),*/
722 726 'lp-tom-select' => new LP_Asset_Key(
723 727 $this->url( 'src/css/vendor/tom-select.min.css' ),
724 728 array(),
725 729 array(),
@@ -724,8 +728,14 @@
724 728 array(),
725 729 array(),
726 730 0
727 731 ),
732 + 'lp-setup-wizard' => new LP_Asset_Key(
733 + $this->url( 'css/admin/setup-wizard' . $is_rtl . self::$_min_assets . '.css' ),
734 + array(),
735 + array(),
736 + 1
737 + ),
728 738 )
729 739 );
730 740 }
731 741
@@ -735,9 +745,9 @@
735 745 public function load_scripts() {
736 746 $screen_id = LP_Admin::instance()->get_screen_id();
737 747
738 748 if ( empty( $screen_id ) ) {
739 - return;
749 + $screen_id = '';
740 750 }
741 751
742 752 // wp_enqueue_media(); //Todo: tungnx need check why call for that using.
743 753 $this->handle_js( $screen_id );
@@ -831,8 +841,11 @@
831 841 )
832 842 );
833 843 }*/
834 844
845 + /**
846 + * Instance
847 + */
835 848 public static function instance() {
836 849 if ( ! is_admin() ) {
837 850 return null;
838 851 }