-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUpsEditorial.php
More file actions
49 lines (39 loc) · 892 Bytes
/
UpsEditorial.php
File metadata and controls
49 lines (39 loc) · 892 Bytes
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
<?php
/**
* Plugin Name: Upstatement Editorial
* Description: Enhance the WordPress editorial experience.
* Version: 1.0.0
*
* @package Upstatement\Editorial
*/
namespace Upstatement\Editorial;
define( 'UPS_EDITORIAL_PLUGIN_DIR', __DIR__ );
define( 'UPS_EDITORIAL_PLUGIN_FILE', __FILE__ );
/** Autoloader */
require_once 'vendor/autoload.php';
/** Include template functions. */
require_once 'Template.php';
/**
* Plugin entrypoint.
*/
class UpsEditorial {
/**
* Register the plugin.
*
* @return void
*/
public static function register() {
Config::read();
Assets::register();
if ( Config::get( 'author_panel' ) ) {
Taxonomy\Author::register();
}
if ( Config::get( 'article_topper_panel' ) ) {
Meta\ArticleTopper::register();
}
if ( Config::get( 'attachment_credit' ) ) {
Meta\AttachmentCredit::register();
}
}
}
UpsEditorial::register();