-
Notifications
You must be signed in to change notification settings - Fork 3
/
Main.php
37 lines (28 loc) · 1.27 KB
/
Main.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
<?php
namespace IdnoPlugins\Status {
class Main extends \Idno\Common\Plugin
{
function registerPages()
{
\Idno\Core\Idno::site()->routes()->addRoute('/status/edit/?', '\IdnoPlugins\Status\Pages\Edit');
\Idno\Core\Idno::site()->routes()->addRoute('/status/edit/:id/?', '\IdnoPlugins\Status\Pages\Edit');
\Idno\Core\Idno::site()->routes()->addRoute('/reply/edit/?', '\IdnoPlugins\Status\Pages\Edit');
\Idno\Core\Idno::site()->routes()->addRoute('/reply/edit/:id/?', '\IdnoPlugins\Status\Pages\Edit');
\Idno\Core\Idno::site()->routes()->addRoute('/status/delete/:id/?', '\IdnoPlugins\Status\Pages\Delete');
\Idno\Core\Idno::site()->routes()->addRoute('/reply/delete/:id/?', '\IdnoPlugins\Status\Pages\Delete');
}
function registerContentTypes()
{
parent::registerContentTypes();
\Idno\Common\ContentType::register($this->getNamespace() . '\\RepliesContentType');
}
function registerTranslations()
{
\Idno\Core\Idno::site()->language()->register(
new \Idno\Core\GetTextTranslation(
'status', dirname(__FILE__) . '/languages/'
)
);
}
}
}