-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMain.php
More file actions
29 lines (22 loc) · 846 Bytes
/
Main.php
File metadata and controls
29 lines (22 loc) · 846 Bytes
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\FooterJS {
class Main extends \Idno\Common\Plugin
{
function registerPages()
{
// Administration page
\Idno\Core\Idno::site()->routes()->addRoute('admin/footerjs', '\IdnoPlugins\FooterJS\Pages\Admin');
\Idno\Core\Idno::site()->template()->extendTemplate('shell/footer', 'footerjs/footer');
\Idno\Core\Idno::site()->template()->extendTemplate('shell/head', 'footerjs/header');
\Idno\Core\Idno::site()->template()->extendTemplate('admin/menu/items', 'admin/footerjs/menu');
}
}
function registerTranslations()
{
\Idno\Core\Idno::site()->language()->register(
new \Idno\Core\GetTextTranslation(
'footerjs', dirname(__FILE__) . '/languages/'
)
);
}
}