-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
elgg-plugin.php
125 lines (122 loc) · 2.99 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<?php
use ColdTrick\TheWireTools\Notifications\CreateTheWireEventHandler;
use Elgg\Blog\GroupToolContainerLogicCheck;
use Elgg\Router\Middleware\GroupPageOwnerGatekeeper;
require_once(dirname(__FILE__) . '/lib/functions.php');
return [
'plugin' => [
'version' => '14.0.1',
'dependencies' => [
'thewire' => [
'position' => 'after',
],
]
],
'settings' => [
'enable_group' => 'no',
'extend_widgets' => 'yes',
'extend_activity' => 'no',
],
'actions' => [
'thewire/add' => [],
'thewire_tools/toggle_feature' => [],
],
'events' => [
'container_logic_check' => [
'object' => [
\ColdTrick\TheWireTools\GroupToolContainerLogicCheck::class => [],
],
],
'entity:url' => [
'object:widget' => [
'\ColdTrick\TheWireTools\Widgets::widgetTitleURL' => [],
],
],
'export:counters' => [
'opensearch' => [
'\ColdTrick\TheWireTools\Plugins\OpenSearch::exportCounter' => [],
],
],
'group_tool_widgets' => [
'widget_manager' => [
'\ColdTrick\TheWireTools\Plugins\WidgetManager::groupToolBasedWidgets' => [],
],
],
'handlers' => [
'widgets' => [
'\ColdTrick\TheWireTools\Plugins\Groups::registerWidget' => [],
],
],
'register' => [
'menu:entity' => [
'\ColdTrick\TheWireTools\Menus\Entity::registerFeature' => [],
'\ColdTrick\TheWireTools\Menus\Entity::registerImprove' => ['priority' => 501],
],
'menu:owner_block' => [
'\ColdTrick\TheWireTools\Menus\OwnerBlock::registerGroup' => [],
],
'menu:social' => [
'\ColdTrick\TheWireTools\Menus\Social::registerReshare' => [],
],
],
'supported_types' => [
'entity_tools' => [
'\ColdTrick\TheWireTools\Plugins\EntityTools::registerTheWire' => [],
],
],
'tool_options' => [
'group' => [
'\ColdTrick\TheWireTools\Plugins\Groups::registerGroupTool' => [],
],
],
],
'notifications' => [
'object' => [
'thewire' => [
'create' => CreateTheWireEventHandler::class,
],
],
],
'routes' => [
'collection:object:thewire:group' => [
'path' => '/thewire/group/{guid}',
'resource' => 'thewire/group',
'middleware' => [
GroupPageOwnerGatekeeper::class,
],
],
],
'view_extensions' => [
'elgg.css' => [
'forms/thewire/add.css' => [],
'thewire_tools/thread.css' => [],
],
'forms/thewire/add.css' => [
'thewire_tools/extends/forms/thewire/add.css' => [],
],
'page/layouts/elements/filter' => [
'thewire_tools/group_activity' => ['priority' => 400],
],
'river/filter' => [
'thewire_tools/activity_post' => ['priority' => 400],
],
'thewire/sidebar' => [
'thewire_tools/extends/thewire/sidebar' => ['priority' => 400],
],
],
'view_options' => [
'thewire_tools/reply_loader' => ['ajax' => true],
'thewire_tools/reshare' => ['ajax' => true],
'thewire_tools/reshare_list' => ['ajax' => true],
'thewire_tools/thread' => ['ajax' => true],
],
'widgets' => [
'index_thewire' => [
'context' => ['index'],
'multiple' => true,
],
'thewire_post' => [
'context' => ['index', 'dashboard'],
],
],
];