-
Notifications
You must be signed in to change notification settings - Fork 0
/
Plugin.php
46 lines (35 loc) · 1.08 KB
/
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
<?php
namespace Kanboard\Plugin\TaskConnect;
use Kanboard\Core\Plugin\Base;
class Plugin extends Base
{
public function initialize()
{
// Hook into the task dropdown to include the custom option
$this->template->hook->attach('template:task:dropdown', 'TaskConnect:task/dropdown');
// Add a custom route for fetching task info
$this->route->addRoute('/task/connect/:task_id', 'TaskConnectController', 'show', 'plugin');
// Add JavaScript to the layout
$this->hook->on('template:layout:js', ['template' => 'plugins/TaskConnect/assets/taskconnect.js']);
}
public function getPluginName()
{
return 'TaskConnect';
}
public function getPluginDescription()
{
return 'Faz o gerenciamento das caixas odontológicas.';
}
public function getPluginAuthor()
{
return 'Cloter Migliorini Filho';
}
public function getPluginVersion()
{
return '1.0.0';
}
public function getPluginHomepage()
{
return 'https://github.com/yourusername/TaskConnect';
}
}