-
Notifications
You must be signed in to change notification settings - Fork 4
/
mangapress.php
executable file
·55 lines (43 loc) · 1.29 KB
/
mangapress.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
<?php
/**
* @package MangaPress
* @version $Id$
* @author Jessica Green <support@manga-press.com>
*/
//phpcs:disable
/*
Plugin Name: Manga+Press Comic Manager
Plugin URI: http://www.manga-press.com/
Description: Turns WordPress into a full-featured Webcomic Manager. Be sure to visit <a href="http://www.manga-press.com/">Manga+Press</a> for more info.
Version: 4.0.0-rc.3
Author: Jess Green
Author URI: http://www.jessgreen.io
Text Domain: mangapress
Domain Path: /languages
*/
//phpcs:enable
use MangaPress\Bootstrap;
use MangaPress\Install;
if (!class_exists('WP')) {
die('No access allowed!');
}
require_once __DIR__ . '/vendor/autoload.php';
if (!defined('MP_VERSION')) {
define('MP_VERSION', '4.0.0-rc.3');
}
if (!defined('MP_DOMAIN')) {
define('MP_DOMAIN', 'mangapress');
}
if (!defined('MP_BASENAME')) {
define('MP_BASENAME', plugin_basename(__FILE__));
}
if (!defined('MP_ABSPATH')) {
define('MP_ABSPATH', trailingslashit(dirname(WP_PLUGIN_DIR . DIRECTORY_SEPARATOR . MP_BASENAME)));
}
if (!defined('MP_URLPATH')) {
define('MP_URLPATH', plugin_dir_url(__FILE__));
}
$install = Install::get_instance();
register_activation_hook(__FILE__, [$install, 'do_activate']);
register_deactivation_hook(__FILE__, [$install, 'do_deactivate']);
(new Bootstrap())->init();