-
Notifications
You must be signed in to change notification settings - Fork 19
/
index.php
36 lines (32 loc) · 1.02 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
34
35
36
<?php
// support manual installation in plugins folder
@include_once __DIR__ . '/vendor/autoload.php';
// don't load plugin if it's disabled in the config.
if (option('thathoff.git-content.disable', false)) {
return;
}
$kirbyGit = new Thathoff\GitContent\KirbyGit();
Kirby::plugin('thathoff/git-content', [
'hooks' => $kirbyGit->getHooks(),
'routes' => $kirbyGit->getRoutes(),
'api' => [
'routes' => $kirbyGit->getApiRoutes()
],
'areas' => [
'git-content' => require __DIR__ . '/src/areas/git-content.php',
],
'options' => [
'path' => null,
'pull' => null,
'push' => null,
'commit' => null,
'cronHooksEnabled' => null,
'cronHooksSecret' => null,
'commitMessage' => ':action:(:item:): :url:',
'windowsMode' => null,
'gitBin' => null,
'displayErrors' => null,
'disableBranchManagement' => null,
'disable' => null,
],
]);