-
Notifications
You must be signed in to change notification settings - Fork 1
/
excalibur.php
44 lines (37 loc) · 1.55 KB
/
excalibur.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
<?php
/**
* Plugin Name: Excalibur
* Plugin URI: https://github.com/pressbooks/excalibur/
* GitHub Plugin URI: pressbooks/excalibur
* Release Asset: true
* Requires at least: WordPress 6.5
* Requires Plugins: pressbooks
* Description: Excalibur is a SWORD protocol client for Pressbooks.
* x-release-please-start-version
* Version: 0.8.1
* x-release-please-end
* Author: Pressbooks (Book Oven Inc.)
* Author URI: https://pressbooks.org
* Requires PHP: 8.1
* Text Domain: excalibur
* License: GPL v3 or later
* Network: True
*
* @package Excalibur
* @author Pressbooks (Book Oven Inc.)
* @license GPL-3.0-or-later
*/
// -------------------------------------------------------------------------------------------------------------------
// Class autoloader
// -------------------------------------------------------------------------------------------------------------------
\HM\Autoloader\register_class_path( 'Excalibur', __DIR__ . '/inc' );
// -------------------------------------------------------------------------------------------------------------------
// Requires
// -------------------------------------------------------------------------------------------------------------------
require( __DIR__ . '/inc/protocol/swordv1/namespace.php' );
// -------------------------------------------------------------------------------------------------------------------
// Hooks
// -------------------------------------------------------------------------------------------------------------------
if ( is_admin() ) {
$p = new \Excalibur\Dspace\Admin();
}