PluginProbe ʕ •ᴥ•ʔ
Kubio AI Page Builder / trunk
Kubio AI Page Builder vtrunk
2.9.0 2.8.6 2.8.5 2.8.4 2.8.3 2.8.2 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 11 months ago admin-pages 1 month ago api 1 month ago blog 1 year ago customizer 1 year ago filters 1 week ago full-site-editing 3 months ago importer 1 year ago integrations 1 week ago menu 1 year ago polyfills 1 year ago preview 9 months ago recommendations 3 months ago shapes 2 years ago shortcodes 1 year ago src 1 week ago add-edit-in-kubio.php 1 year ago editor-assets.php 1 week ago filters.php 1 year ago frontend.php 1 year ago global-data.php 1 year ago init.php 1 year ago kubio-block-library.php 3 months ago kubio-editor.php 1 week ago load.php 3 months ago
load.php
96 lines
1 <?php
2
3 /** base */
4
5 use Kubio\CLI\CLI;
6 use Kubio\Core\Activation;
7 use Kubio\Core\Deactivation;
8 use Kubio\Core\KubioFrontPageRevertNotice;
9
10 use Kubio\DemoSites\DemoSites;
11 use Kubio\GoogleFontsLocalLoader;
12 use Kubio\Migrations;
13 use Kubio\NotificationsManager;
14 use Kubio\GutenbergControls;
15 use Kubio\Core\ThirdPartyPluginAssetLoaderInEditor;
16
17
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 __DIR__ . '/recommendations/index.php';
33 require_once KUBIO_BUILD_DIR . '/third-party-blocks/index.php';
34
35 /** full site editing */
36 require_once __DIR__ . '/full-site-editing/default-template-types.php';
37 require_once __DIR__ . '/full-site-editing/block-templates.php';
38 require_once __DIR__ . '/full-site-editing/templates.php';
39 require_once __DIR__ . '/full-site-editing/template-parts.php';
40 require_once __DIR__ . '/full-site-editing/template-loader.php';
41 require_once __DIR__ . '/full-site-editing/full-site-editing.php';
42 require_once __DIR__ . '/full-site-editing/get-block-templates.php';
43 require_once __DIR__ . '/AI/index.php';
44
45
46 function kubio_load_integrations() {
47 $integrations_dir = __DIR__ . '/integrations';
48 $integrations = array_diff( scandir( $integrations_dir ), array( '.', '..' ) );
49
50 foreach ( $integrations as $integration ) {
51 $integration_entry = "{$integrations_dir}/{$integration}/{$integration}.php";
52 if ( file_exists( $integration_entry ) ) {
53 require_once $integration_entry;
54 }
55 }
56 }
57
58 function kubio_get_iframe_loader( $props = array() ) {
59 $params = array_merge(
60 array(
61 'color' => '',
62 'size' => '40px',
63 'bg-color' => 'transparent',
64 'message' => '',
65 ),
66 $props
67 );
68
69 foreach ( $params as $key => $value ) {
70 $params[ $key ] = urlencode( $value );
71 }
72
73 $url = add_query_arg( $params, kubio_url( '/static/kubio-iframe-loader.html' ) );
74
75 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'] );
76 }
77
78
79
80 kubio_load_integrations();
81
82 if ( file_exists( __DIR__ . '/pro/index.php' ) ) {
83 require_once __DIR__ . '/pro/index.php';
84 }
85
86 Activation::load();
87 Deactivation::load();
88 DemoSites::load();
89 NotificationsManager::load();
90 GoogleFontsLocalLoader::registerFontResolver();
91 Migrations::load();
92 CLI::load();
93 GutenbergControls::load();
94 KubioFrontPageRevertNotice::load();
95 ThirdPartyPluginAssetLoaderInEditor::load();
96