-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
extend.php
29 lines (22 loc) · 885 Bytes
/
extend.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
<?php
/*
* This file is part of davwheat/custom-sidenav-links.
*
* Copyright (c) 2021 David Wheatley.
*
* For the full copyright and license information, please view the LICENSE.md
* file that was distributed with this source code.
*/
namespace Davwheat\CustomSidenavLinks;
use Flarum\Extend;
use Davwheat\CustomSidenavLinks\Extend\ExtensionSettings;
return [
(new Extend\Frontend('forum'))->js(__DIR__ . '/js/dist/forum.js')->css(__DIR__ . '/less/forum.less'),
(new Extend\Frontend('admin'))->js(__DIR__ . '/js/dist/admin.js')->css(__DIR__ . '/less/admin.less'),
new Extend\Locales(__DIR__ . '/locale'),
(new ExtensionSettings())
->addKey('davwheat-custom-sidenav-links.link-data')
->addKey('davwheat-custom-sidenav-links.position')
->addKey('davwheat-custom-sidenav-links.top-spacer')
->addKey('davwheat-custom-sidenav-links.bottom-spacer'),
];