-
Notifications
You must be signed in to change notification settings - Fork 0
/
extend.php
49 lines (44 loc) · 2.04 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
43
44
45
46
47
48
49
<?php
/*
* This file is part of litalino/flarum-adblock.
*
* Copyright (c) 2023 Khatvongsong.
* https://khatvongsong.vn
*
* For the full copyright and license information, please view the LICENSE.md
* file that was distributed with this source code.
*/
namespace Litalino\Adblock;
use Flarum\Extend;
use Flarum\Api\Event\Serializing;
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 Extend\Settings)
->serializeToForum('litalino-adblock.adblock-div', 'litalino-adblock.adblock-div'),
(new Extend\Settings)
->serializeToForum('litalino-adblock.adblock-img', 'litalino-adblock.adblock-img'),
(new Extend\Settings)
->serializeToForum('litalino-adblock.adblock-url', 'litalino-adblock.adblock-url'),
(new Extend\Settings)
->serializeToForum('litalino-adblock.adblock-alt', 'litalino-adblock.adblock-alt'),
(new Extend\Settings)
->serializeToForum('litalino-adblock.adblock-action', 'litalino-adblock.adblock-action'),
(new Extend\Settings)
->serializeToForum('litalino-adblock.adblock-supportUsTitle', 'litalino-adblock.adblock-supportUsTitle'),
(new Extend\Settings)
->serializeToForum('litalino-adblock.adblock-supportUsMessage', 'litalino-adblock.adblock-supportUsMessage'),
(new Extend\Settings)
->serializeToForum('litalino-adblock.adblock-supportRedirectUrl', 'litalino-adblock.adblock-supportRedirectUrl'),
(new Extend\Settings)
->serializeToForum('litalino-adblock.adblock-notice-element', 'litalino-adblock.adblock-notice-element'),
(new Extend\Settings)
->serializeToForum('litalino-adblock.adblock-notice-method', 'litalino-adblock.adblock-notice-method'),
(new Extend\Settings)
->serializeToForum('litalino-adblock.adblock-notice-content', 'litalino-adblock.adblock-notice-content'),
];