PluginProbe ʕ •ᴥ•ʔ
Kubio AI Page Builder / 2.6.7
Kubio AI Page Builder v2.6.7
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 9 months ago admin-pages 1 year ago api 7 months ago blog 1 year ago customizer 1 year ago filters 9 months ago full-site-editing 1 year ago importer 1 year ago integrations 9 months ago menu 1 year ago polyfills 1 year ago preview 7 months ago recommendations 9 months ago shapes 2 years ago shortcodes 1 year ago src 9 months ago add-edit-in-kubio.php 11 months ago editor-assets.php 9 months 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 9 months ago load.php 11 months ago
load.php
99 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-area.php';
40 require_once __DIR__ . '/full-site-editing/class-kubio-rest-template-part-controller.php';
41 require_once __DIR__ . '/full-site-editing/class-kubio-rest-template-controller.php';
42 require_once __DIR__ . '/full-site-editing/template-parts.php';
43 require_once __DIR__ . '/full-site-editing/template-loader.php';
44 require_once __DIR__ . '/full-site-editing/full-site-editing.php';
45 require_once __DIR__ . '/full-site-editing/get-block-templates.php';
46 require_once __DIR__ . '/AI/index.php';
47
48
49 function kubio_load_integrations() {
50 $integrations_dir = __DIR__ . '/integrations';
51 $integrations = array_diff( scandir( $integrations_dir ), array( '.', '..' ) );
52
53 foreach ( $integrations as $integration ) {
54 $integration_entry = "{$integrations_dir}/{$integration}/{$integration}.php";
55 if ( file_exists( $integration_entry ) ) {
56 require_once $integration_entry;
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
82
83 kubio_load_integrations();
84
85 if ( file_exists( __DIR__ . '/pro/index.php' ) ) {
86 require_once __DIR__ . '/pro/index.php';
87 }
88
89 Activation::load();
90 Deactivation::load();
91 DemoSites::load();
92 NotificationsManager::load();
93 GoogleFontsLocalLoader::registerFontResolver();
94 Migrations::load();
95 CLI::load();
96 GutenbergControls::load();
97 KubioFrontPageRevertNotice::load();
98 ThirdPartyPluginAssetLoaderInEditor::load();
99