PluginProbe ʕ •ᴥ•ʔ
Kubio AI Page Builder / 1.1.0
Kubio AI Page Builder v1.1.0
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 4 years ago defaults 4 years ago languages 4 years ago lib 4 years ago static 4 years ago vendor 4 years ago LICENSE.txt 4 years ago plugin.php 4 years ago readme.txt 4 years ago
plugin.php
80 lines
1 <?php
2 /**
3 * Plugin Name: Kubio
4 * Plugin URI: https://kubiobuilder.com
5 * Description: Kubio is an innovative block-based WordPress website builder that enriches the block editor with new blocks and gives its users endless styling options.
6 * Author: ExtendThemes
7 * Author URI: https://extendthemes.com
8 * Version: 1.1.0
9 * License: GPL3+
10 * License URI: https://www.gnu.org/licenses/gpl-2.0.txt
11 * Text Domain: kubio
12 * Domain Path: /languages
13 * Requires PHP: 7.1.3
14 * Requires at least: 5.8
15 *
16 */
17
18 // Exit if accessed directly.
19 if ( ! defined( 'ABSPATH' ) ) {
20 exit;
21 }
22
23 // skip loading free version if the Kubio Page Builder PRO is active
24 if ( ! function_exists( 'kubio_is_free_and_pro_already_active' ) ) {
25
26 function kubio_is_free_and_pro_already_active() {
27 $plugin_name = plugin_basename( __FILE__ );
28 $is_free = strpos( $plugin_name, 'pro' ) === false;
29
30 $pro_builder_is_active = false;
31 if ( $is_free ) {
32 $active_plugins = get_option( 'active_plugins' );
33 $pro_builder_is_active = in_array( 'kubio-pro/plugin.php', $active_plugins );
34 }
35
36 return $is_free && $pro_builder_is_active;
37 }
38
39 if ( kubio_is_free_and_pro_already_active() ) {
40 return;
41 }
42 }
43
44
45 if ( defined( 'KUBIO_VERSION' ) ) {
46 return;
47 }
48
49 define( 'KUBIO_VERSION', '1.1.0' );
50 define( 'KUBIO_BUILD_NUMBER', '33' );
51
52 define( 'KUBIO_ENTRY_FILE', __FILE__ );
53 define( 'KUBIO_ROOT_DIR', plugin_dir_path( __FILE__ ) );
54 define( 'KUBIO_BUILD_DIR', plugin_dir_path( __FILE__ ) . '/build' );
55 define( 'KUBIO_LOGO_URL', plugins_url( '/static/kubio-logo.svg', __FILE__ ) );
56 define( 'KUBIO_LOGO_PATH', plugin_dir_path( __FILE__ ) . '/static/kubio-logo.svg' );
57 define( 'KUBIO_LOGO_SVG', file_get_contents( KUBIO_LOGO_PATH ) );
58
59 define( 'KUBIO_MINIMUM_WP_VERSION', '5.9' );
60 define( 'KUBIO_SLUG', str_replace( wp_normalize_path( WP_PLUGIN_DIR ) . '/', '', wp_normalize_path( dirname( __FILE__ ) ) ) );
61
62 if ( ! function_exists( 'kubio_dir_path' ) ) {
63 function kubio_dir_path() {
64 return plugin_dir_path( __FILE__ );
65 }
66 }
67 if ( ! function_exists( 'kubio_url' ) ) {
68 function kubio_url( $path ) {
69 return plugins_url( $path, __FILE__ );
70 }
71 }
72
73 /**
74 * @var \Composer\Autoload\ClassLoader $kubio_autoloader ;
75 */
76 global $kubio_autoloader;
77 $kubio_autoloader = require_once plugin_dir_path( __FILE__ ) . 'vendor/autoload.php';
78
79 require_once 'lib/init.php';
80