| 1 |
<?php |
| 2 |
/** |
| 3 |
* Plugin Name: WDesignKit - Elementor & Gutenberg Starter Templates, Patterns, Cloud Workspace & Widget Builder |
| 4 |
* Plugin URI: https://wdesignkit.com/ |
| 5 |
* Description: Your All-in-One solution for effortless WordPress website creation and collaboration. With over 1,000+ Elementor and WordPress website templates, a library of 100+ pre-made widgets for Elementor, Gutenberg Blocks, and Bricks, along with a cloud workspace for collaboration and more. |
| 6 |
* Version: 2.5.3 |
| 7 |
* Author: POSIMYTH |
| 8 |
* Author URI: https://posimyth.com/ |
| 9 |
* Text Domain: wdesignkit |
| 10 |
* Domain Path: /languages |
| 11 |
* Requires PHP: 7.4 |
| 12 |
* License: GPLv3 |
| 13 |
* License URI: https://opensource.org/licenses/GPL-3.0 |
| 14 |
* |
| 15 |
* @package wdesignkit |
| 16 |
*/ |
| 17 |
|
| 18 |
/** If this file is called directly, abort. */ |
| 19 |
if ( ! defined( 'ABSPATH' ) ) { |
| 20 |
exit; |
| 21 |
} |
| 22 |
|
| 23 |
if ( version_compare( PHP_VERSION, '7.4', '<' ) ) { |
| 24 |
add_action( |
| 25 |
'admin_notices', |
| 26 |
function () { |
| 27 |
echo '<div class="notice notice-error"><p>' . |
| 28 |
sprintf( |
| 29 |
/* translators: %s: minimum required PHP version */ |
| 30 |
esc_html__( 'WDesignKit requires PHP %s or higher. Please update PHP to use this plugin.', 'wdesignkit' ), |
| 31 |
'7.4' |
| 32 |
) . |
| 33 |
'</p></div>'; |
| 34 |
} |
| 35 |
); |
| 36 |
return; |
| 37 |
} |
| 38 |
|
| 39 |
define( 'WDKIT_VERSION', '2.5.3' ); |
| 40 |
define( 'WDKIT_FILE', __FILE__ ); |
| 41 |
define( 'WDKIT_PATH', plugin_dir_path( __FILE__ ) ); |
| 42 |
define( 'WDKIT_PBNAME', plugin_basename( __FILE__ ) ); |
| 43 |
define( 'WDKIT_BDNAME', basename( dirname( __FILE__ )) ); |
| 44 |
define( 'WDKIT_URL', plugins_url( '/', __FILE__ ) ); |
| 45 |
define( 'WDKIT_HOSTURL', site_url() ); |
| 46 |
define( 'WDKIT_INCLUDES', WDKIT_PATH . '/includes/' ); |
| 47 |
define( 'WDKIT_ASSETS', WDKIT_URL . 'assets/' ); |
| 48 |
define( 'WDKIT_TEXT_DOMAIN', 'wdesignkit' ); |
| 49 |
define( 'WDKIT_SERVER_SITE_URL', 'https://wdesignkit.com/' ); |
| 50 |
define( 'WDKIT_SERVER_API_URL', 'https://api.wdesignkit.com/' ); |
| 51 |
define( 'WDKIT_DOCUMENT', 'https://learn.wdesignkit.com/docs/' ); |
| 52 |
|
| 53 |
/** Widget Builder path*/ |
| 54 |
define( 'WDKIT_SERVER_PATH', wp_upload_dir()['baseurl'] . '/wdesignkit' ); |
| 55 |
define( 'WDKIT_BUILDER_PATH', wp_upload_dir()['basedir'] . '/wdesignkit' ); |
| 56 |
define( 'WDKIT_GET_SITE_URL', get_site_url() ); |
| 57 |
|
| 58 |
require WDKIT_PATH . 'includes/class-wdkit-wdesignkit.php'; |