-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.php
More file actions
65 lines (57 loc) · 1.56 KB
/
plugin.php
File metadata and controls
65 lines (57 loc) · 1.56 KB
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
62
63
64
65
<?php
/**
* Plugin Name: Power Element | 一些自製的 Shortcode, Elementor Widget
* Plugin URI: https://github.com/zenbuapps/wp-power-element
* Description: 一些自製的 Shortcode, Elementor Widget
* Version: 0.0.10
* Requires at least: 5.7
* Requires PHP: 8.1
* Author: J7
* Author URI: https://github.com/zenbuapps/wp-power-element
* License: GPL v2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: power_element
* Domain Path: /languages
* Tags: elementor, widget, shortcode
*/
declare (strict_types = 1);
namespace J7\PowerElement;
if ( \class_exists( 'J7\PowerElement\Plugin' ) ) {
return;
}
require_once __DIR__ . '/vendor/autoload.php';
/**
* Class Plugin
*/
final class Plugin {
use \J7\WpUtils\Traits\PluginTrait;
use \J7\WpUtils\Traits\SingletonTrait;
/**
* Constructor
*/
public function __construct() {
// $this->required_plugins = array(
// array(
// 'name' => 'WooCommerce',
// 'slug' => 'woocommerce',
// 'required' => true,
// 'version' => '7.6.0',
// ),
// array(
// 'name' => 'WP Toolkit',
// 'slug' => 'wp-toolkit',
// 'source' => 'Author URL/wp-toolkit/releases/latest/download/wp-toolkit.zip',
// 'required' => true,
// ),
// );
$this->init(
[
'app_name' => 'Power Element',
'github_repo' => 'https://github.com/zenbuapps/wp-power-element',
'callback' => [ Bootstrap::class, 'instance' ],
'lc' => 'ZmFsc2'
]
);
}
}
Plugin::instance();