PluginProbe ʕ •ᴥ•ʔ
Kubio AI Page Builder / 2.4.5
Kubio AI Page Builder v2.4.5
2.8.1 trunk 1.0.0 1.0.1 1.1.0 1.2.0 1.2.1 1.2.2 1.2.3 1.3.0 1.3.1 1.3.2 1.4.0 1.4.1 1.4.2 1.4.3 1.5.0 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.7.0 1.7.1 1.7.2 1.7.3 1.8.0 1.8.1 1.8.2 1.9.0 2.0.0 2.1.1 2.1.2 2.1.3 2.2.0 2.2.3 2.2.4 2.2.5 2.3.0 2.3.1 2.3.3 2.3.4 2.4.0 2.4.1 2.4.2 2.4.3 2.4.5 2.5.0 2.5.1 2.5.2 2.5.3 2.6.0 2.6.1 2.6.2 2.6.3 2.6.5 2.6.6 2.6.7 2.7.0 2.7.1 2.7.2 2.7.3 2.8.0
kubio / lib / load.php
kubio / lib Last commit date
AI 1 year ago admin-pages 2 years ago api 1 year ago blog 3 years ago customizer 2 years ago filters 1 year ago full-site-editing 2 years ago importer 4 years ago integrations 1 year ago menu 3 years ago polyfills 3 years ago preview 2 years ago shapes 2 years ago shortcodes 1 year ago src 1 year ago add-edit-in-kubio.php 1 year ago editor-assets.php 1 year ago env.php 1 year ago filters.php 1 year ago frontend.php 4 years ago global-data.php 1 year ago init.php 2 years ago kubio-block-library.php 2 years ago kubio-editor.php 1 year ago load.php 1 year ago
load.php
98 lines
1 <?php
2
3 /** base */
4
5 use Kubio\CLI\CLI;
6 use Kubio\Core\Activation;
7 use Kubio\Core\Deactivation;
8
9 use Kubio\Core\License\License;
10 use Kubio\Core\License\Updater;
11 use Kubio\DemoSites\DemoSites;
12 use Kubio\GoogleFontsLocalLoader;
13 use Kubio\Migrations;
14 use Kubio\NotificationsManager;
15 use Kubio\GutenbergControls;
16
17 require_once __DIR__ . '/env.php';
18 require_once __DIR__ . '/filters.php';
19 require_once __DIR__ . '/preview/index.php';
20 require_once __DIR__ . '/shortcodes/index.php';
21 require_once __DIR__ . '/global-data.php';
22 require_once __DIR__ . '/shapes/index.php';
23 require_once __DIR__ . '/api/index.php';
24 require_once __DIR__ . '/editor-assets.php';
25 require_once __DIR__ . '/frontend.php';
26 require_once __DIR__ . '/add-edit-in-kubio.php';
27 require_once __DIR__ . '/kubio-block-library.php';
28 require_once __DIR__ . '/kubio-editor.php';
29 require_once __DIR__ . '/admin-pages/pages.php';
30 require_once __DIR__ . '/menu/index.php';
31 require_once __DIR__ . '/customizer/index.php';
32 require_once KUBIO_BUILD_DIR . '/third-party-blocks/index.php';
33
34 /** full site editing */
35 require_once __DIR__ . '/full-site-editing/default-template-types.php';
36 require_once __DIR__ . '/full-site-editing/block-templates.php';
37 require_once __DIR__ . '/full-site-editing/templates.php';
38 require_once __DIR__ . '/full-site-editing/template-parts-area.php';
39 require_once __DIR__ . '/full-site-editing/class-kubio-rest-template-part-controller.php';
40 require_once __DIR__ . '/full-site-editing/class-kubio-rest-template-controller.php';
41 require_once __DIR__ . '/full-site-editing/template-parts.php';
42 require_once __DIR__ . '/full-site-editing/template-loader.php';
43 require_once __DIR__ . '/full-site-editing/full-site-editing.php';
44 require_once __DIR__ . '/full-site-editing/get-block-templates.php';
45 require_once __DIR__ . '/AI/index.php';
46
47
48 function kubio_load_integrations() {
49 $integrations_dir = __DIR__ . '/integrations';
50 $integrations = array_diff( scandir( $integrations_dir ), array( '.', '..' ) );
51
52 foreach ( $integrations as $integration ) {
53 $integration_entry = "{$integrations_dir}/{$integration}/{$integration}.php";
54 if ( file_exists( $integration_entry ) ) {
55 require_once $integration_entry;
56 }
57 }
58
59 }
60
61 function kubio_get_iframe_loader( $props = array() ) {
62 $params = array_merge(
63 array(
64 'color' => '',
65 'size' => '40px',
66 'bg-color' => 'transparent',
67 'message' => '',
68 ),
69 $props
70 );
71
72 foreach ( $params as $key => $value ) {
73 $params[ $key ] = urlencode( $value );
74 }
75
76 $url = add_query_arg( $params, kubio_url( '/static/kubio-iframe-loader.html' ) );
77
78 return sprintf( '<iframe style="border:none;pointer-events:none;user-select:none;display:block" allowtransparency="true" width="%2$s" height="%2$s" src="%1$s"></iframe>', $url, $params['size'] );
79 }
80
81 Updater::load( KUBIO_ENTRY_FILE );
82 License::load( KUBIO_ROOT_DIR );
83
84 kubio_load_integrations();
85
86 if ( file_exists( __DIR__ . '/pro/index.php' ) ) {
87 require_once __DIR__ . '/pro/index.php';
88 }
89
90 Activation::load();
91 Deactivation::load();
92 DemoSites::load();
93 NotificationsManager::load();
94 GoogleFontsLocalLoader::registerFontResolver();
95 Migrations::load();
96 CLI::load();
97 GutenbergControls::load();
98