PluginProbe ʕ •ᴥ•ʔ
Kubio AI Page Builder / 2.5.1
Kubio AI Page Builder v2.5.1
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 1 year ago api 1 year ago blog 1 year ago customizer 1 year ago filters 1 year ago full-site-editing 1 year ago importer 1 year ago integrations 1 year ago menu 1 year ago polyfills 1 year ago preview 1 year 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 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 1 year ago kubio-editor.php 1 year ago load.php 1 year ago
load.php
95 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
16 require_once __DIR__ . '/filters.php';
17 require_once __DIR__ . '/preview/index.php';
18 require_once __DIR__ . '/shortcodes/index.php';
19 require_once __DIR__ . '/global-data.php';
20 require_once __DIR__ . '/shapes/index.php';
21 require_once __DIR__ . '/api/index.php';
22 require_once __DIR__ . '/editor-assets.php';
23 require_once __DIR__ . '/frontend.php';
24 require_once __DIR__ . '/add-edit-in-kubio.php';
25 require_once __DIR__ . '/kubio-block-library.php';
26 require_once __DIR__ . '/kubio-editor.php';
27 require_once __DIR__ . '/admin-pages/pages.php';
28 require_once __DIR__ . '/menu/index.php';
29 require_once __DIR__ . '/customizer/index.php';
30 require_once KUBIO_BUILD_DIR . '/third-party-blocks/index.php';
31
32 /** full site editing */
33 require_once __DIR__ . '/full-site-editing/default-template-types.php';
34 require_once __DIR__ . '/full-site-editing/block-templates.php';
35 require_once __DIR__ . '/full-site-editing/templates.php';
36 require_once __DIR__ . '/full-site-editing/template-parts-area.php';
37 require_once __DIR__ . '/full-site-editing/class-kubio-rest-template-part-controller.php';
38 require_once __DIR__ . '/full-site-editing/class-kubio-rest-template-controller.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