forked from andre-pullinen/ads
-
Notifications
You must be signed in to change notification settings - Fork 2
/
extend.php
29 lines (25 loc) · 1.28 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
<?php
namespace Flagrow\Ads;
use Illuminate\Contracts\Events\Dispatcher;
use Flarum\Extend;
return [
(new Extend\Frontend('admin'))
->css(__DIR__ . '/resources/less/admin.less')
->js(__DIR__.'/js/dist/admin.js'),
(new Extend\Frontend('forum'))
->css(__DIR__ . '/resources/less/forum.less')
->js(__DIR__.'/js/dist/forum.js')
->content(Listeners\AddAdsenseJs::class),
new Extend\Locales(__DIR__.'/resources/locale'),
// (new Extend\Event())
// ->subscribe(Listeners\LoadSettingsFromDatabase::class),
(new Extend\Settings)
->serializeToForum('flagrow.ads.under-header', 'flagrow.ads.under-header')
->serializeToForum('flagrow.ads.between-posts', 'flagrow.ads.between-posts')
->serializeToForum('flagrow.ads.under-nav-items', 'flagrow.ads.under-nav-items')
->serializeToForum('flagrow.ads.between-n-posts', 'flagrow.ads.between-n-posts')
->serializeToForum('flagrow.ads.start-from-post', 'flagrow.ads.start-from-post')
->serializeToForum('flagrow.ads.start-from-post', 'flagrow.ads.start-from-post')
->serializeToForum('flagrow.ads.between-n-posts', 'flagrow.ads.between-n-posts')
->serializeToForum('flagrow.ads.header-only-frontpage', 'flagrow.ads.header-only-frontpage'),
];