-
Notifications
You must be signed in to change notification settings - Fork 0
/
cs-element-bucket.php
61 lines (52 loc) · 2.06 KB
/
cs-element-bucket.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php
/**
* Plugin Name: Advanced Element Bucket Addons for Elementor
* Plugin URI: https://github.com/codexshaper/element-bucket/
* Description: A premium elements bucket for elementor.
* Version: 1.0.0
* Requires at least: 5.2
* Requires PHP: 7.4
* Author: CodexShaper
* Author URI: https://codexshaper.com/
* License: GPL v2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: cs-element-bucket
* Domain Path: /languages
*
* @package ElementBucket
*
* Elementor tested up to: 3.24.4
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
define( 'CS_ELEMENT_BUCKET_VERSION', '1.0.0' );
define( 'CS_ELEMENT_BUCKET_CLI', true );
define( 'CS_ELEMENT_BUCKET__FILE__', __FILE__ );
define( 'CS_ELEMENT_BUCKET_PLUGIN_BASE', plugin_basename( CS_ELEMENT_BUCKET__FILE__ ) );
define( 'CS_ELEMENT_BUCKET_PATH', plugin_dir_path( CS_ELEMENT_BUCKET__FILE__ ) );
define( 'CS_ELEMENT_BUCKET_ASSETS_PATH', CS_ELEMENT_BUCKET_PATH . 'assets/' );
define( 'CS_ELEMENT_BUCKET_MODULES_PATH', CS_ELEMENT_BUCKET_PATH . 'modules/' );
define( 'CS_ELEMENT_BUCKET_URL', plugins_url( '/', CS_ELEMENT_BUCKET__FILE__ ) );
define( 'CS_ELEMENT_BUCKET_ASSETS_URL', CS_ELEMENT_BUCKET_URL . 'assets/' );
define( 'CS_ELEMENT_BUCKET_MODULES_URL', CS_ELEMENT_BUCKET_URL . 'modules/' );
define( 'CS_ELEMENT_BUCKET_MODULE_PREFIX', 'eb-module' );
define( 'CS_ELEMENT_BUCKET_WIDGET_PREFIX', 'eb-widget' );
/**
* Load gettext translate for our text domain.
*
* @since 1.0.0
*
* @return void
*/
function cseb_load_plugin() {
require_once trailingslashit( CS_ELEMENT_BUCKET_PATH ) . 'vendor/autoload.php';
require_once trailingslashit( CS_ELEMENT_BUCKET_PATH ) . 'inc/helpers.php';
if ( class_exists( 'CodexShaper\ElementBucket\Plugin' ) ) {
CodexShaper\ElementBucket\Plugin::instance();
}
if ( class_exists( 'CodexShaper\ElementBucket\Managers\ConsoleManager' ) ) {
CodexShaper\ElementBucket\Managers\ConsoleManager::instance();
}
}
add_action( 'plugins_loaded', 'cseb_load_plugin' );