-
Notifications
You must be signed in to change notification settings - Fork 3
/
Main.php
28 lines (21 loc) · 848 Bytes
/
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
<?php
namespace IdnoPlugins\Text {
class Main extends \Idno\Common\Plugin
{
function registerPages()
{
\Idno\Core\Idno::site()->routes()->addRoute('/entry/edit/?', '\IdnoPlugins\Text\Pages\Edit');
\Idno\Core\Idno::site()->routes()->addRoute('/entry/edit/:id/?', '\IdnoPlugins\Text\Pages\Edit');
\Idno\Core\Idno::site()->routes()->addRoute('/entry/delete/:id/?', '\IdnoPlugins\Text\Pages\Delete');
\Idno\Core\Idno::site()->routes()->addRoute('/entry/:id/.*', '\Idno\Pages\Entity\View');
}
function registerTranslations()
{
\Idno\Core\Idno::site()->language()->register(
new \Idno\Core\GetTextTranslation(
'text', dirname(__FILE__) . '/languages/'
)
);
}
}
}