-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathindex.php
More file actions
47 lines (42 loc) · 757 Bytes
/
index.php
File metadata and controls
47 lines (42 loc) · 757 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
namespace Oblik\KirbyGit;
use Kirby\Cms\App;
require_once 'lib/util.php';
load([
'Oblik\\KirbyGit\\Git' => 'lib/Git.php'
], __DIR__);
App::plugin('oblik/git', [
'areas' => [
'git' => function () {
return [
'label' => 'Git',
'icon' => 'box',
'menu' => true,
'views' => [
[
'pattern' => 'git',
'action' => function () {
return [
'component' => 'k-git-view'
];
}
]
]
];
}
],
'options' => [
'bin' => 'git',
'repo' => kirby()->root('index'),
'remote' => 'origin',
'merge' => 'master',
'log' => false
],
'sections' => [
'git' => require 'lib/section.php'
],
'api' => [
'routes' => require 'lib/routes.php'
],
'hooks' => require 'lib/hooks.php'
]);