add Main.php

This commit is contained in:
Arne Govaerts 2020-07-23 15:23:26 +02:00
parent 84a4f9b4fb
commit 62183fcd41

20
Main.php Normal file
View 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');
}
}
}

View file

@ -1,5 +1,5 @@
[Plugin description]
name = "Matomo"
name = "Matomo for Known"
version = 0.0.1
author = "Arne Govaerts"
author_email = "arne@q4.re"