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