-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
config.php
23 lines (20 loc) · 935 Bytes
/
config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
namespace humhub\modules\adsense;
use humhub\modules\adsense\Events;
use humhub\modules\adsense\Module;
use humhub\modules\admin\widgets\AdminMenu;
use humhub\modules\user\widgets\ProfileSidebar;
use humhub\modules\space\widgets\Sidebar as Spacebar;
use humhub\modules\dashboard\widgets\Sidebar as Dashbar;
return [
'id' => 'adsense',
'class' => Module::class,
'namespace' => 'humhub\modules\adsense',
'events' => [
['class' => Dashbar::class, 'event' => Dashbar::EVENT_INIT, 'callback' => [Events::class, 'addAdFrame']],
['class' => Spacebar::class, 'event' => Spacebar::EVENT_INIT, 'callback' => [Events::class, 'addAdFrame']],
['class' => ProfileSidebar::class, 'event' => ProfileSidebar::EVENT_INIT, 'callback' => [Events::class, 'addAdFrame']],
['class' => AdminMenu::class, 'event' => AdminMenu::EVENT_INIT, 'callback' => [Events::class, 'onAdminMenuInit']],
],
];
?>