| 1 |
<?php |
| 2 |
/* THIS_FILE_IS_FREE */ |
| 3 |
/** |
| 4 |
* Kirki |
| 5 |
* |
| 6 |
* @package kirki |
| 7 |
* Plugin Name: Kirki |
| 8 |
* Plugin URI: https://kirki.com |
| 9 |
* Description: Kirki is an all-in-one no-code builder that empowers users to build professional-grade WordPress sites without writing any code. It’s a promising glimpse into the future of website development. |
| 10 |
* Version: 6.0.7 |
| 11 |
* Author: Kirki |
| 12 |
* Author URI: https://kirki.com |
| 13 |
* Text Domain: kirki |
| 14 |
* Domain Path: /languages |
| 15 |
* Requires at least: 5.0 |
| 16 |
* Requires PHP: 7.0 |
| 17 |
*/ |
| 18 |
|
| 19 |
use Kirki\HelperFunctions; |
| 20 |
|
| 21 |
if ( ! defined( 'ABSPATH' ) ) { |
| 22 |
exit; // Exit if accessed directly. |
| 23 |
} |
| 24 |
|
| 25 |
// Define KIRKI_VERSION early to prevent bundled Kirki versions from loading. |
| 26 |
if ( ! defined( 'KIRKI_VERSION' ) ) { |
| 27 |
define( 'KIRKI_VERSION', '6.0.7' ); |
| 28 |
} |
| 29 |
|
| 30 |
|
| 31 |
if ( ! class_exists( 'KirkiProMain' ) && ! class_exists( 'KirkiMain' ) && ! class_exists( 'Droip' ) ) { |
| 32 |
require_once __DIR__ . '/vendor/autoload.php'; |
| 33 |
require_once __DIR__ . '/customizer/class-customizer.php'; |
| 34 |
require_once __DIR__ . '/includes/KirkiBase.php'; |
| 35 |
|
| 36 |
if (!defined('KIRKI_PLUGIN_FILE')) { |
| 37 |
define('KIRKI_PLUGIN_FILE', plugin_dir_path(__FILE__) . 'kirki.php'); |
| 38 |
} |
| 39 |
|
| 40 |
final class KirkiMain extends KirkiBase { |
| 41 |
|
| 42 |
protected function get_plugin_file() { |
| 43 |
return __FILE__; |
| 44 |
} |
| 45 |
|
| 46 |
protected function load_version_specific_events() { |
| 47 |
} |
| 48 |
} |
| 49 |
|
| 50 |
/** |
| 51 |
* Initilizes the main plugin |
| 52 |
* |
| 53 |
* @return \Kirki |
| 54 |
*/ |
| 55 |
if ( ! function_exists( 'KirkiMain' ) ) { |
| 56 |
/** |
| 57 |
* This function for entry point |
| 58 |
*/ |
| 59 |
function KirkiMain() { |
| 60 |
return KirkiMain::init(); |
| 61 |
} |
| 62 |
|
| 63 |
try { |
| 64 |
// kick-off the plugin. |
| 65 |
KirkiMain(); |
| 66 |
} catch ( Exception $e ) { |
| 67 |
HelperFunctions::store_error_log( wp_json_encode( $e ) ); |
| 68 |
} |
| 69 |
} |
| 70 |
} |