PluginProbe ʕ •ᴥ•ʔ
Kubio AI Page Builder / 2.6.6
Kubio AI Page Builder v2.6.6
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 / plugin.php
kubio Last commit date
build 7 months ago defaults 11 months ago languages 7 months ago lib 7 months ago migrations 11 months ago static 11 months ago vendor 11 months ago LICENSE.txt 4 years ago composer.json 1 year ago plugin.php 7 months ago readme.txt 7 months ago
plugin.php
100 lines
1 <?php
2
3 /**
4 * Plugin Name: Kubio
5 * Plugin URI: https://kubiobuilder.com
6 * Description: Using the power of AI, Kubio gives you a head start by generating a first draft of your website, which you can further customize to your liking.
7 * Author: ExtendThemes
8 * Author URI: https://extendthemes.com
9 * Version: 2.6.6
10 * License: GPL3+
11 * License URI: https://www.gnu.org/licenses/gpl-2.0.txt
12 * Text Domain: kubio
13 * Domain Path: /languages
14 * Requires PHP: 7.4
15 * Requires at least: 5.8
16 *
17 */
18
19 // Exit if accessed directly.
20 if ( ! defined( 'ABSPATH' ) ) {
21 exit;
22 }
23
24 // skip loading free version if the Kubio Page Builder PRO is active
25 if ( ! function_exists( 'kubio_is_free_and_pro_already_active' ) ) {
26
27 function kubio_is_free_and_pro_already_active( $base_path ) {
28 $plugin_name = plugin_basename( $base_path );
29 $is_free = strpos( $plugin_name, 'pro' ) === false;
30
31 // these two should be deleted?
32 // $flags_option = get_option( '__kubio_instance_flags' );
33 // update_option( '__kubio_instance_flags', $flags_option );
34
35 $pro_builder_is_active = false;
36 if ( $is_free ) {
37 $active_plugins = get_option( 'active_plugins' );
38 $pro_builder_is_active = in_array( 'kubio-pro/plugin.php', $active_plugins );
39 }
40
41 return $is_free && $pro_builder_is_active;
42 }
43 }
44 if ( kubio_is_free_and_pro_already_active( __FILE__ ) ) {
45 return;
46 }
47
48
49 if ( defined( 'KUBIO_VERSION' ) ) {
50 return;
51 }
52
53 define( 'KUBIO_VERSION', '2.6.6' );
54 define( 'KUBIO_BUILD_NUMBER', '451' );
55
56 define( 'KUBIO_ENTRY_FILE', __FILE__ );
57 define( 'KUBIO_ROOT_DIR', plugin_dir_path( __FILE__ ) );
58 define( 'KUBIO_ROOT_URL', untrailingslashit( plugin_dir_url( __FILE__ ) ) );
59
60 define( 'KUBIO_BUILD_DIR', plugin_dir_path( __FILE__ ) . '/build' );
61 define( 'KUBIO_LOGO_URL', plugins_url( '/static/kubio-logo.svg', __FILE__ ) );
62 define( 'KUBIO_LOGO_PATH', plugin_dir_path( __FILE__ ) . '/static/kubio-logo.svg' );
63 define( 'KUBIO_LOGO_SVG', file_get_contents( KUBIO_LOGO_PATH ) );
64
65 define( 'KUBIO_WPML_BLOCK_DEFAULTS_ID', 'Kubio Defaults' );
66
67 if ( ! defined( 'KUBIO_CLOUD_URL' ) ) {
68 define( 'KUBIO_CLOUD_URL', 'https://cloud.kubiobuilder.com' );
69 }
70
71 if ( ! defined( 'KUBIO_INCLUDE_TEST_SNIPPETS' ) ) {
72 define( 'KUBIO_INCLUDE_TEST_SNIPPETS', false );
73 }
74
75
76 if ( ! defined( 'KUBIO_MINIMUM_WP_VERSION' ) ) {
77 define( 'KUBIO_MINIMUM_WP_VERSION', '6.5' );
78 }
79
80
81 define( 'KUBIO_SLUG', str_replace( wp_normalize_path( WP_PLUGIN_DIR ) . '/', '', wp_normalize_path( __DIR__ ) ) );
82
83 if ( ! function_exists( 'kubio_url' ) ) {
84 function kubio_url( $path = '' ) {
85 static $url;
86 if ( ! $url ) {
87 $url = plugins_url( '', __FILE__ );
88 }
89 return $url . '/' . ltrim( $path, '/' );
90 }
91 }
92
93 /**
94 * @var \Composer\Autoload\ClassLoader $kubio_autoloader ;
95 */
96 global $kubio_autoloader;
97 $kubio_autoloader = require_once plugin_dir_path( __FILE__ ) . 'vendor/autoload.php';
98
99 require_once 'lib/init.php';
100