-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathPlugin.php
More file actions
47 lines (37 loc) · 1.23 KB
/
Plugin.php
File metadata and controls
47 lines (37 loc) · 1.23 KB
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
<?php
namespace Kanboard\Plugin\EnableAttachmentRenaming;
use Kanboard\Core\Plugin\Base;
class Plugin extends Base
{
public function initialize()
{
$this->template->hook->attach("template:task-file:images:dropdown", "EnableAttachmentRenaming:rename/attachment");
$this->template->hook->attach("template:task-file:documents:dropdown", "EnableAttachmentRenaming:rename/attachment");
$this->template->hook->attach("template:project-overview:images:dropdown", "EnableAttachmentRenaming:rename/attachment");
$this->template->hook->attach("template:project-overview:documents:dropdown", "EnableAttachmentRenaming:rename/attachment");
}
public function getPluginName()
{
return 'EnableAttachmentRenaming';
}
public function getPluginDescription()
{
return 'Add a Button to enable renaming of attachments';
}
public function getPluginAuthor()
{
return 'Tomas Dittmann';
}
public function getPluginVersion()
{
return '1.1.3';
}
public function getPluginHomepage()
{
return "https://github.com/Chaosmeister/EAR";
}
public function getCompatibleVersion()
{
return '>=1.2.23';
}
}