-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
33 lines (32 loc) · 1.17 KB
/
index.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
29
30
31
32
33
<?php
Kirby::plugin('pixelopen/kirby-plausible', [
'snippets' => [
'plausible' => __DIR__ . '/snippets/plausible.php',
],
'areas' => [
'plausible' => function ($kirby) {
return [
'label' => t('pixelopen.plausible.panel.name'),
'icon' => 'chart',
'menu' => true,
'link' => 'plausible',
'views' => [
[
'pattern' => 'plausible',
'action' => function () {
return [
'component' => 'plausible',
'title' => t('pixelopen.plausible.panel.title'),
'props' => [
'plausibleLink' => option('pixelopen.plausible.plausibleLink'),
'height_iframe' => option('pixelopen.plausible.height_iframe') ?? 2000,
],
];
},
],
],
];
},
],
'translations' => require __DIR__ . '/i18n.php',
]);