add Main.php
This commit is contained in:
parent
84a4f9b4fb
commit
62183fcd41
2 changed files with 21 additions and 1 deletions
20
Main.php
Normal file
20
Main.php
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
|
||||
namespace IdnoPlugins\Matomo {
|
||||
|
||||
use Idno\Common\Plugin;
|
||||
|
||||
class Main extends Plugin {
|
||||
|
||||
function registerPages()
|
||||
{
|
||||
|
||||
\Idno\Core\Idno::site()->template()->extendTemplate('account/menu/items', 'matomo/menu');
|
||||
\Idno\Core\Idno::site()->addPageHandler('account/matomo/?','IdnoPlugins\Matomo\Pages\Account');
|
||||
\Idno\Core\Idno::site()->template()->extendTemplate('shell/head','matomo/head');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -1,5 +1,5 @@
|
|||
[Plugin description]
|
||||
name = "Matomo"
|
||||
name = "Matomo for Known"
|
||||
version = 0.0.1
|
||||
author = "Arne Govaerts"
|
||||
author_email = "arne@q4.re"
|
||||
|
|
Loading…
Reference in a new issue