PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 3.11.10
Visualizer – Tables & Charts Manager with Built-in AI Generator v3.11.10
4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.10.0 3.10.1 3.10.10 3.10.11 3.10.12 3.10.13 3.10.14 3.10.15 3.10.2 3.10.3 All 149 releases
← All changes | vendor/codeinwp/themeisle-sdk/start.php +42 -23 3.1.23.11.10 View file →
@@ -6,33 +6,52 @@
6 6 * @copyright Copyright (c) 2017, Marius Cristea
7 7 * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
8 8 * @since 1.1.0
9 9 */
10 -$products = apply_filters( 'themeisle_sdk_products', array() );
11 -$path = dirname( __FILE__ );
12 -$files_to_load = array(
13 - 'class-themeisle-sdk-loader.php',
14 - 'class-themeisle-sdk-product.php',
15 - 'class-themeisle-sdk-logger.php',
16 - 'class-themeisle-sdk-licenser.php',
17 - 'class-themeisle-sdk-rollback.php',
18 - 'class-themeisle-sdk-feedback-factory.php',
19 - 'class-themeisle-sdk-feedback.php',
20 - 'class-themeisle-sdk-feedback-deactivate.php',
21 - 'class-themeisle-sdk-feedback-review.php',
22 - 'class-themeisle-sdk-feedback-translate.php',
23 - 'class-themeisle-sdk-notification-manager.php',
24 - 'class-themeisle-sdk-widget.php',
25 - 'class-themeisle-sdk-widget-dashboard-blog.php',
26 - 'class-themeisle-sdk-widgets-factory.php',
27 - 'class-themeisle-sdk-endpoints.php',
28 -);
29 10
11 +namespace ThemeisleSDK;
12 +
13 +if ( ! defined( 'ABSPATH' ) ) {
14 + exit;
15 +}
16 +$products = apply_filters( 'themeisle_sdk_products', array() );
17 +$themeisle_library_path = dirname( __FILE__ );
18 +$files_to_load = [
19 + $themeisle_library_path . '/src/Loader.php',
20 + $themeisle_library_path . '/src/Product.php',
21 +
22 + $themeisle_library_path . '/src/Common/Abstract_module.php',
23 + $themeisle_library_path . '/src/Common/Module_factory.php',
24 +
25 + $themeisle_library_path . '/src/Modules/Script_loader.php',
26 + $themeisle_library_path . '/src/Modules/Dashboard_widget.php',
27 + $themeisle_library_path . '/src/Modules/Rollback.php',
28 + $themeisle_library_path . '/src/Modules/Uninstall_feedback.php',
29 + $themeisle_library_path . '/src/Modules/Licenser.php',
30 + $themeisle_library_path . '/src/Modules/Endpoint.php',
31 + $themeisle_library_path . '/src/Modules/Notification.php',
32 + $themeisle_library_path . '/src/Modules/Logger.php',
33 + $themeisle_library_path . '/src/Modules/Translate.php',
34 + $themeisle_library_path . '/src/Modules/Translations.php',
35 + $themeisle_library_path . '/src/Modules/Review.php',
36 + $themeisle_library_path . '/src/Modules/Recommendation.php',
37 + $themeisle_library_path . '/src/Modules/Promotions.php',
38 + $themeisle_library_path . '/src/Modules/Welcome.php',
39 + $themeisle_library_path . '/src/Modules/Compatibilities.php',
40 + $themeisle_library_path . '/src/Modules/About_us.php',
41 + $themeisle_library_path . '/src/Modules/Announcements.php',
42 + $themeisle_library_path . '/src/Modules/Featured_plugins.php',
43 + $themeisle_library_path . '/src/Modules/Float_widget.php',
44 +];
45 +
46 +$files_to_load = array_merge( $files_to_load, apply_filters( 'themeisle_sdk_required_files', [] ) );
47 +
30 48 foreach ( $files_to_load as $file ) {
31 - $file_path = $path . '/' . $file;
32 - if ( is_readable( $file_path ) ) {
33 - require_once $file_path;
49 + if ( is_file( $file ) ) {
50 + require_once $file;
34 51 }
35 52 }
53 +Loader::init();
54 +
36 55 foreach ( $products as $product ) {
37 - ThemeIsle_SDK_Loader::init_product( $product );
56 + Loader::add_product( $product );
38 57 }