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/class-lp-assets.php +35 -22 4.3.74.4.8 View file →
@@ -114,8 +114,14 @@
114 114 [],
115 115 [],
116 116 0
117 117 ),
118 + 'lp-ai-assistant' => new LP_Asset_Key(
119 + self::url( 'css/frontend/ai-assistant' . self::$_min_assets . '.css' ),
120 + array(),
121 + array( LP_PAGE_SINGLE_COURSE_CURRICULUM ),
122 + 1
123 + ),
118 124 )
119 125 );
120 126
121 127 if ( wp_is_block_theme() ) {
@@ -271,26 +277,26 @@
271 277
272 278 $scripts = apply_filters(
273 279 'learn-press/frontend-default-scripts',
274 280 array(
275 - 'vue-libs' => new LP_Asset_Key(
281 + /*'vue-libs' => new LP_Asset_Key(
276 282 self::url( 'src/js/vendor/vue/vue_libs_special.min.js' )
277 - ),
278 - 'lp-modal' => new LP_Asset_Key(
283 + ),*/
284 + 'lp-modal' => new LP_Asset_Key(
279 285 self::url( 'js/dist/frontend/modal' . self::$_min_assets . '.js' ),
280 286 array( 'jquery' )
281 287 ),
282 288 // lp-plugins-all use only for FE, when FE 2 release will remove it.
283 - 'lp-plugins-all' => new LP_Asset_Key( self::url( 'js/vendor/plugins.all.min.js' ) ),
284 - 'lp-global' => new LP_Asset_Key(
289 + //'lp-plugins-all' => new LP_Asset_Key( self::url( 'js/vendor/plugins.all.min.js' ) ),
290 + 'lp-global' => new LP_Asset_Key(
285 291 self::url( self::$_folder_source . 'js/global' . self::$_min_assets . '.js' ),
286 292 array( 'jquery', 'underscore', 'utils' )
287 293 ),
288 - 'lp-utils' => new LP_Asset_Key(
294 + 'lp-utils' => new LP_Asset_Key(
289 295 self::url( 'js/dist/utils' . self::$_min_assets . '.js' ),
290 296 array( 'jquery' )
291 297 ),
292 - 'lp-load-ajax' => new LP_Asset_Key(
298 + 'lp-load-ajax' => new LP_Asset_Key(
293 299 self::url( 'js/dist/loadAJAX' . self::$_min_assets . '.js' ),
294 300 [ 'wp-hooks' ],
295 301 [],
296 302 0,
@@ -297,9 +303,9 @@
297 303 0,
298 304 '',
299 305 [ 'strategy' => 'async' ]
300 306 ),
301 - 'lp-checkout' => new LP_Asset_Key(
307 + 'lp-checkout' => new LP_Asset_Key(
302 308 self::url( 'js/dist/frontend/checkout' . self::$_min_assets . '.js' ),
303 309 [],
304 310 [ LP_PAGE_CHECKOUT ],
305 311 0,
@@ -306,18 +312,18 @@
306 312 0,
307 313 '',
308 314 [ 'strategy' => 'async' ]
309 315 ),
310 - 'lp-data-controls' => new LP_Asset_Key(
316 + 'lp-data-controls' => new LP_Asset_Key(
311 317 self::url( 'js/dist/js/data-controls' . self::$_min_assets . '.js' ),
312 318 array_merge( $wp_js, array( 'lp-global' ) )
313 319 ),
314 - 'lp-config' => new LP_Asset_Key(
320 + 'lp-config' => new LP_Asset_Key(
315 321 self::url( 'js/dist/frontend/lp-configs' . self::$_min_assets . '.js' ),
316 322 array_merge( $wp_js, array( 'lp-global' ) )
317 323 ),
318 324 // 'lp-lesson' => new LP_Asset_Key( self::url( self::$_folder_source .'js/frontend/lesson' . self::$_min_assets . '.js' ) ),
319 - 'lp-question-types' => new LP_Asset_Key(
325 + 'lp-question-types' => new LP_Asset_Key(
320 326 self::url( 'js/dist/frontend/question-types' . self::$_min_assets . '.js' ),
321 327 array_merge( $wp_js, array( 'lp-global' ) ),
322 328 array(),
323 329 1,
@@ -322,9 +328,9 @@
322 328 array(),
323 329 1,
324 330 1
325 331 ),
326 - 'lp-single-curriculum' => new LP_Asset_Key(
332 + 'lp-single-curriculum' => new LP_Asset_Key(
327 333 self::url( 'js/dist/frontend/single-curriculum' . self::$_min_assets . '.js' ),
328 334 array_merge(
329 335 $wp_js,
330 336 array(
@@ -337,9 +343,9 @@
337 343 1,
338 344 '',
339 345 [ 'strategy' => 'defer' ]
340 346 ),
341 - 'lp-curriculum' => new LP_Asset_Key(
347 + 'lp-curriculum' => new LP_Asset_Key(
342 348 self::url( 'js/dist/frontend/curriculum' . self::$_min_assets . '.js' ),
343 349 [],
344 350 array( LP_PAGE_SINGLE_COURSE_CURRICULUM, LP_PAGE_SINGLE_COURSE ),
345 351 0,
@@ -346,9 +352,9 @@
346 352 0,
347 353 '',
348 354 [ 'strategy' => 'async' ]
349 355 ),
350 - 'lp-quiz' => new LP_Asset_Key(
356 + 'lp-quiz' => new LP_Asset_Key(
351 357 self::url( 'js/dist/frontend/quiz' . self::$_min_assets . '.js' ),
352 358 array_merge(
353 359 $wp_js,
354 360 array(
@@ -367,9 +373,9 @@
367 373 1,
368 374 '',
369 375 [ 'strategy' => 'defer' ]
370 376 ),
371 - 'lp-single-course' => new LP_Asset_Key(
377 + 'lp-single-course' => new LP_Asset_Key(
372 378 self::url( 'js/dist/frontend/single-course' . self::$_min_assets . '.js' ),
373 379 array_merge(
374 380 $wp_js,
375 381 array(
@@ -403,9 +409,9 @@
403 409 0,
404 410 '',
405 411 [ 'strategy' => 'async' ]
406 412 ),
407 - 'lp-instructors' => new LP_Asset_Key(
413 + 'lp-instructors' => new LP_Asset_Key(
408 414 self::url( 'js/dist/frontend/instructors' . self::$_min_assets . '.js' ),
409 415 [ 'lp-global' ],
410 416 [],
411 417 1,
@@ -412,9 +418,9 @@
412 418 0,
413 419 '',
414 420 [ 'strategy' => 'defer' ]
415 421 ),
416 - 'lp-profile' => new LP_Asset_Key(
422 + 'lp-profile' => new LP_Asset_Key(
417 423 self::url( 'js/dist/frontend/profile' . self::$_min_assets . '.js' ),
418 424 [ 'lp-load-ajax', 'wp-i18n' ],
419 425 array( LP_PAGE_PROFILE ),
420 426 0,
@@ -430,9 +436,9 @@
430 436 0,
431 437 '',
432 438 [ 'strategy' => 'async' ]
433 439 ),
434 - 'lp-widgets' => new LP_Asset_Key(
440 + 'lp-widgets' => new LP_Asset_Key(
435 441 self::url( 'js/dist/frontend/widgets' . self::$_min_assets . '.js' ),
436 442 [ 'lp-course-filter' ],
437 443 array(),
438 444 1,
@@ -439,9 +445,9 @@
439 445 0,
440 446 '',
441 447 [ 'strategy' => 'async' ]
442 448 ),
443 - 'lp-become-a-teacher' => new LP_Asset_Key(
449 + 'lp-become-a-teacher' => new LP_Asset_Key(
444 450 self::url( 'js/dist/frontend/become-teacher' . self::$_min_assets . '.js' ),
445 451 array( 'jquery' ),
446 452 array( LP_PAGE_BECOME_A_TEACHER ),
447 453 0,
@@ -448,9 +454,9 @@
448 454 1,
449 455 '',
450 456 [ 'strategy' => 'defer' ]
451 457 ),
452 - 'lp-course-filter' => new LP_Asset_Key(
458 + 'lp-course-filter' => new LP_Asset_Key(
453 459 self::url( 'js/dist/frontend/course-filter' . self::$_min_assets . '.js' ),
454 460 array(),
455 461 array(),
456 462 1,
@@ -457,10 +463,10 @@
457 463 0,
458 464 '',
459 465 [ 'strategy' => 'async' ]
460 466 ),
461 - 'lp-course-builder' => new LP_Asset_Key(
462 - self::url( 'js/dist/frontend/course-builder' . self::$_min_assets . '.js' ),
467 + 'lp-course-builder' => new LP_Asset_Key(
468 + self::url( 'dist/js/frontend/course-builder' . self::$_min_assets . '.js' ),
463 469 array( 'wp-tinymce', 'editor', 'lp-load-ajax' ),
464 470 array( LP_PAGE_COURSE_BUILDER ),
465 471 0,
466 472 0,
@@ -465,8 +471,15 @@
465 471 0,
466 472 0,
467 473 '',
468 474 [ 'strategy' => 'defer' ]
475 + ),
476 + 'lp-ai-assistant' => new LP_Asset_Key(
477 + self::url( 'js/dist/frontend/ai-assistant' . self::$_min_assets . '.js' ),
478 + array(),
479 + array( LP_PAGE_SINGLE_COURSE_CURRICULUM ),
480 + 1,
481 + 1,
469 482 ),
470 483 )
471 484 );
472 485