forked from humanmade/altis-cms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathload.php
35 lines (32 loc) · 769 Bytes
/
load.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
<?php
/**
* Altis CMS Module.
*
* @package altis/cms
*/
namespace Altis\CMS; // phpcs:ignore
use Altis;
// Register core module.
add_action( 'altis.modules.init', function () {
$default_settings = [
'enabled' => true,
'branding' => true,
'favicon' => '/vendor/altis/cms/assets/favicon.ico',
'large-network' => true,
'login-logo' => '/vendor/altis/cms/assets/logo.svg',
'reusable-blocks' => true,
'default-theme' => 'base',
'remove-emoji' => true,
'xmlrpc' => true,
'feeds' => true,
'network-ui' => [
'disable-spam' => true,
],
'authorship' => false,
'local-avatars' => true,
];
$options = [
'defaults' => $default_settings,
];
Altis\register_module( 'cms', __DIR__, 'CMS', $options, __NAMESPACE__ . '\\bootstrap' );
}, 5 );