forked from PerJensen/elgg_connect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
elgg-plugin.php
79 lines (70 loc) · 1.54 KB
/
elgg-plugin.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?php
/**
* Elgg Landing Theme
* @author Nikolai Shcherbin
* @license GNU Affero General Public License version 3
* @copyright (c) Nikolai Shcherbin 2022
* @link https://wzm.me
**/
return [
'plugin' => [
'name' => 'Elgg Landing Theme',
'version' => '2.1.0',
'dependencies' => [
'activity' => [
'position' => 'after',
'must_be_active' => false,
],
'groups' => [
'position' => 'after',
'must_be_active' => false,
],
],
'activate_on_install' => true,
],
'actions' => [
'admin/elgg_theme/cover' => [
'controller' => \wZm\ElggTheme\Actions\CoverAction::class,
'access' => 'admin',
],
'admin/elgg_theme/logo' => [
'controller' => \wZm\ElggTheme\Actions\LogoAction::class,
'access' => 'admin',
],
],
'events' => [
'register' => [
'menu:page' => [
\wZm\ElggTheme\Menus\SettingsManu::class => [],
],
],
],
'view_extensions' => [
'admin.css' => [
'elgg_theme/elgg_theme_admin.css' => [],
],
'elgg.css' => [
'elgg_theme/elgg_theme.css' => [],
],
'river/sidebar' => [
'elgg_theme/sidebar' => [],
],
],
'view_options' => [
'graphics/cover.jpg' => ['simplecache' => true],
],
'views' => [
'default' => [
'elgg_theme/' => elgg_get_data_path() . 'elgg_theme/',
],
],
'settings' => [
'topbar_logo_text' => true,
'landing_action' => true,
'display_members' => true,
'display_groups' => false,
'activity_sidebar' => false,
'sidebar_profile_icon' => true,
'sidebar_friends' => true,
],
];