-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathaspire-explorer.php
More file actions
56 lines (49 loc) · 1.45 KB
/
aspire-explorer.php
File metadata and controls
56 lines (49 loc) · 1.45 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
<?php
/**
* AspireExplorer - AspirePress Repository browser.
*
* @package aspire-explorer
* @author AspireExplorer
* @copyright AspireExplorer
* @license GPLv2
*
* Plugin Name: AspireExplorer
* Plugin URI: https://aspirepress.org/
* Description: AspirePress Repository browser.
* Version: 0.2.0
* Author: AspirePress
* Author URI: https://docs.aspirepress.org/aspireexplorer/
* Requires at least: 5.3
* Requires PHP: 7.4
* Tested up to: 6.7
* License: GPLv2
* License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
* Text Domain: aspireexplorer
* Domain Path: /languages
* GitHub Plugin URI: https://github.com/aspirepress/aspireexplorer
* Primary Branch: main
*/
if ( ! defined( 'ABSPATH' ) ) {
die;
}
if ( ! defined( 'AE_VERSION' ) ) {
define( 'AE_VERSION', '0.2.0' );
}
add_action(
'plugins_loaded',
function () {
if ( ! defined( 'AE_DIR_URL' ) ) {
define( 'AE_DIR_URL', plugin_dir_url( __FILE__ ) );
}
if ( ! defined( 'AE_DIR_PATH' ) ) {
define( 'AE_DIR_PATH', __DIR__ );
}
AspireExplorer\Controller\Main::get_instance();
}
);
require_once __DIR__ . '/includes/autoload.php';
/**
* Register activation/deactivation hooks.
*/
register_activation_hook( __FILE__, [ 'AspireExplorer\Controller\Main', 'on_activate' ] );
register_deactivation_hook( __FILE__, [ 'AspireExplorer\Controller\Main', 'on_deactivate' ] );