-
Notifications
You must be signed in to change notification settings - Fork 6
/
NaveePlugin.php
57 lines (46 loc) · 1.46 KB
/
NaveePlugin.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
<?php
namespace Craft;
class NaveePlugin extends BasePlugin {
public function getName()
{
return Craft::t('Navee');
}
public function getVersion()
{
return '1.3.0';
}
public function getDeveloper()
{
return 'The Outfit, Inc';
}
public function getDeveloperUrl()
{
return 'http://fromtheoutfit.com/navee';
}
public function hasCpSection()
{
return true;
}
public function getDocumentationUrl()
{
return 'https://github.com/fromtheoutfit/navee/wiki';
}
public function getReleaseFeedUrl()
{
return 'https://raw.githubusercontent.com/fromtheoutfit/navee/master/releases.json';
}
/**
* Register control panel routes
*/
public function registerCpRoutes()
{
return array(
'navee' => array('action' => 'navee/node/nodeIndex'),
'navee/navigations' => array('action' => 'navee/navigations/navigationIndex'),
'navee/navigations/new' => array('action' => 'navee/navigations/editNavigation'),
'navee/navigations/(?P<navigationId>\d+)' => array('action' => 'navee/navigations/editNavigation'),
'navee\/node\/(?P<navigationHandle>{handle})\/new' => array('action' => 'navee/node/editNode'),
'navee\/node\/(?P<navigationHandle>{handle})\/(?P<nodeId>\d+)' => array('action' => 'navee/node/editNode'),
);
}
}