-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathelgg-plugin.php
67 lines (66 loc) · 1.46 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
<?php
return [
'entities' => [
[
'type' => 'object',
'subtype' => 'checkin',
'class' => 'ElggCheckinCover',
'searchable' => true,
],
],
'settings' => [
'google_api_key' => '',
],
'actions' => [
'checkin/upload' => [],
],
'routes' => [
'default:object:checkin' => [
'path' => '/checkin',
'resource' => 'checkin/all',
],
'collection:object:checkin:all' => [
'path' => '/checkin/all',
'resource' => 'checkin/all',
],
'collection:object:checkin:owner' => [
'path' => '/checkin/owner/{username}',
'resource' => 'checkin/owner',
],
'collection:object:checkin:friends' => [
'path' => '/checkin/friends/{username}',
'resource' => 'checkin/friends',
],
'collection:object:checkin:map' => [
'path' => '/checkin/map/',
'resource' => 'checkin/map',
],
'collection:object:checkin:group' => [
'path' => '/checkin/group/{guid}',
'resource' => 'checkin/owner',
],
'add:object:checkin' => [
'path' => '/checkin/add/{guid}',
'resource' => 'checkin/upload',
'middleware' => [
\Elgg\Router\Middleware\Gatekeeper::class,
],
],
'edit:object:checkin' => [
'path' => '/checkin/edit/{guid}',
'resource' => 'checkin/edit',
'middleware' => [
\Elgg\Router\Middleware\Gatekeeper::class,
],
],
'view:object:checkin' => [
'path' => '/checkin/view/{guid}/{title?}',
'resource' => 'checkin/view',
],
],
'widgets' => [
'checkin' => [
'context' => ['profile', 'dashboard'],
],
],
];