forked from gergo85/oc-tracking
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlugin.php
More file actions
61 lines (55 loc) · 1.98 KB
/
Plugin.php
File metadata and controls
61 lines (55 loc) · 1.98 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?php namespace Indikator\Tracking;
use System\Classes\PluginBase;
use Backend;
use BackendAuth;
class Plugin extends PluginBase
{
public function pluginDetails()
{
return [
'name' => 'indikator.tracking::lang.plugin.name',
'description' => 'indikator.tracking::lang.plugin.description',
'author' => 'indikator.tracking::lang.plugin.author',
'icon' => 'icon-street-view',
'homepage' => 'https://github.com/gergo85/oc-tracking'
];
}
public function registerNavigation()
{
return [
'tracking' => [
'label' => 'indikator.tracking::lang.plugin.name',
'url' => Backend::url('indikator/tracking/googleevent'),
'icon' => 'icon-street-view',
'iconSvg' => 'plugins/indikator/tracking/assets/images/tracking-icon.svg',
'permissions' => ['indikator.tracking.*'],
'order' => 380,
'sideMenu' => [
'googleevent' => [
'label' => 'indikator.tracking::lang.menu.googleevent',
'url' => Backend::url('indikator/tracking/googleevent'),
'icon' => 'icon-google',
'permissions' => ['indikator.tracking.google_event'],
'order' => 100
]
]
]
];
}
public function registerPermissions()
{
return [
'indikator.tracking.google_event' => [
'tab' => 'indikator.tracking::lang.plugin.name',
'label' => 'indikator.tracking::lang.permission.google_event',
'roles' => ['publisher']
]
];
}
public function registerComponents()
{
return [
'Indikator\Tracking\Components\GoogleEvent' => 'google_event'
];
}
}