kirki
Last commit date
ComponentLibrary
3 days ago
app
2 days ago
assets
2 days ago
bootstrap
3 weeks ago
config
3 weeks ago
customizer
3 weeks ago
database
3 weeks ago
includes
2 days ago
languages
2 days ago
libraries
1 week ago
routes
3 days ago
vendor
1 week ago
config.php
3 weeks ago
kirki.php
2 days ago
readme.txt
2 days ago
kirki.php
78 lines
| 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.1.1 |
| 11 | * Author: Kirki |
| 12 | * Author URI: https://kirki.com |
| 13 | * License: GPLv2 or later |
| 14 | * License URI: https://www.gnu.org/licenses/gpl-2.0.html |
| 15 | * Text Domain: kirki |
| 16 | * Domain Path: /languages |
| 17 | * Requires at least: 5.9 |
| 18 | * Requires PHP: 7.4 |
| 19 | */ |
| 20 | |
| 21 | use Kirki\HelperFunctions; |
| 22 | |
| 23 | if (!defined('ABSPATH')) { |
| 24 | exit; // Exit if accessed directly. |
| 25 | } |
| 26 | |
| 27 | // Define KIRKI_VERSION early to prevent bundled Kirki versions from loading. |
| 28 | if ( ! defined( 'KIRKI_VERSION' ) ) { |
| 29 | define( 'KIRKI_VERSION', '6.1.1' ); |
| 30 | } |
| 31 | |
| 32 | require_once plugin_dir_path( __FILE__ ) . 'config.php'; |
| 33 | require_once __DIR__ . '/vendor/autoload.php'; |
| 34 | require_once __DIR__ . '/customizer/class-customizer.php'; |
| 35 | require_once __DIR__ . '/includes/KirkiBase.php'; |
| 36 | |
| 37 | do_action( 'kirki_loaded' ); |
| 38 | |
| 39 | if ( !class_exists('KirkiMain') && !class_exists('Droip') ) { |
| 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 | // TODO: This method will be removed in future version |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | /** |
| 52 | * Initilizes the main plugin |
| 53 | * |
| 54 | * @return \Kirki |
| 55 | */ |
| 56 | if (!function_exists('KirkiMain')) { |
| 57 | /** |
| 58 | * This function for entry point |
| 59 | */ |
| 60 | function KirkiMain() |
| 61 | { |
| 62 | return KirkiMain::init(); |
| 63 | } |
| 64 | |
| 65 | try { |
| 66 | // kick-off the plugin. |
| 67 | KirkiMain(); |
| 68 | } catch (Exception $e) { |
| 69 | } |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | add_action('init', 'kirki_boot_application', 0); |
| 74 | |
| 75 | function kirki_boot_application() |
| 76 | { |
| 77 | require_once KIRKI_PLUGIN_PATH . '/bootstrap/app.php'; |
| 78 | } |