forked from hasan-ozbey/flarum-pallet-theme
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathextend.php
42 lines (35 loc) · 1.32 KB
/
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
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
/**
* Fork of Pallet theme for your forum. Original by Hasan Özbey.
*
* LICENSE: For the full copyright and license information,
* please view the LICENSE.md file that was distributed
* with this source code.
*
* @package madeyedeer/flarum-pallet-theme
* @author Adrian McCay <[email protected]>
* @author Hasan Özbey <[email protected]>
* @copyright 2024 Adrian McCay
* @copyright 2020 Hasan Özbey
* @license The MIT License
* @version Release: 0.2.0
* @link https://github.com/MadEyeDeer/flarum-pallet-theme
* @link https://github.com/the-turk/flarum-pallet-theme
*/
namespace MadEyeDeer\Pallet;
use Flarum\Extend;
use MadEyeDeer\Pallet\Middleware\PalletThemeMiddleware;
return [
(new Extend\Frontend('admin'))
->js(__DIR__ . '/js/dist/admin.js')
->css(__DIR__ . '/less/admin.less'),
(new Extend\Frontend('forum'))
->js(__DIR__ . '/js/dist/forum.js')
->css(__DIR__ . '/less/forum.less'),
(new Extend\Locales(__DIR__ . '/locale')),
(new Extend\Settings())
->default('madeyedeer-pallet-theme.show_side_nav_to_guests', true)
->serializeToForum('showSideNavToGuests', 'madeyedeer-pallet-theme.show_side_nav_to_guests', 'boolval'),
(new Extend\Middleware('forum'))
->add(PalletThemeMiddleware::class),
];