-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathelgg-plugin.php
110 lines (108 loc) · 2.35 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
<?php
use ColdTrick\BlogTools\FieldsHandler;
use ColdTrick\BlogTools\Forms\PrepareFields;
return [
'plugin' => [
'version' => '14.0',
'dependencies' => [
'blog' => [
'position' => 'after',
],
],
],
'settings' => [
'featured_menu' => true,
'archive_menu' => false,
'advanced_publication' => 'no',
],
'actions' => [
'blog/save' => [],
'blog_tools/toggle_featured' => [
'access' => 'admin',
],
],
'routes' => [
'collection:object:blog:featured' => [
'path' => '/blog/featured',
'resource' => 'blog/featured',
],
'collection:object:blog:tag' => [
'path' => '/blog/tag/{tag}/{lower?}/{upper?}',
'resource' => 'blog/tag',
'requirements' => [
'lower' => '\d+',
'upper' => '\d+',
],
],
],
'events' => [
'cron' => [
'fifteenmin' => [
'\ColdTrick\BlogTools\Cron::publication' => [],
],
],
'entity:url' => [
'object' => [
'\ColdTrick\BlogTools\Widgets::widgetUrl' => [],
],
],
'fields' => [
'object:blog' => [
FieldsHandler::class => ['priority' => 501],
],
],
'form:prepare:fields' => [
'blog/save' => [
PrepareFields::class => [],
],
],
'group_tool_widgets' => [
'widget_manager' => [
'\ColdTrick\BlogTools\Widgets::groupTools' => [],
],
],
'register' => [
'menu:blog_archive' => [
'\ColdTrick\BlogTools\Menus\BlogArchive::addArchive' => [],
],
'menu:entity' => [
'\ColdTrick\BlogTools\Menus\Entity::register' => [],
],
'menu:filter:blog/group' => [
'\ColdTrick\BlogTools\Menus\Filter::groupTabs' => [],
],
'menu:filter:filter' => [
'\ColdTrick\BlogTools\Menus\Filter::addFeatured' => [],
'\ColdTrick\BlogTools\Menus\Filter::addArchive' => [],
],
],
'view_vars' => [
'blog/sidebar/archives' => [
'\ColdTrick\BlogTools\Views::preventBlogArchiveSidebar' => [],
],
'object/elements/imprint/contents' => [
'\ColdTrick\BlogTools\Views::addPublicationDateImprint' => [],
],
],
],
'view_extensions' => [
'elgg.css' => [
'widgets/index_blog/content.css' => [],
],
'forms/blog/save' => [
'blog_tools/edit/publication_options' => [],
],
'object/blog/elements/sidebar' => [
'blog_tools/sidebar/related' => [],
],
],
'widgets' => [
'blog' => [
'context' => ['profile', 'dashboard', 'groups'],
],
'index_blog' => [
'context' => ['index'],
'multiple' => true,
],
],
];