-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
executable file
·37 lines (33 loc) · 1.12 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
37
<?php
@include_once __DIR__ . '/vendor/autoload.php';
load([
'texnixe\\Spreadsheet\\SpreadsheetLoader' => 'classes/SpreadsheetLoader.php',
'texnixe\\Spreadsheet\\CacheHandler' => 'classes/CacheHandler.php',
'texnixe\\Spreadsheet\\HtmlGenerator' => 'classes/HtmlGenerator.php',
//'texnixe\\Spreadsheet\\PageGenerator' => 'classes/PageGenerator.php',
], __DIR__);
Kirby::plugin('texnixe/spreadsheet', [
'options' => [
'cache' => true,
'expires' => (60*24*7), // minutes
'tagDefaults' => [
'sheet' => false,
'header' => true,
'class' => 'kirby-spreadsheet',
],
'pageGeneratorDefaults' => [
'header' => true,
'parentPage' => 'home',
'slugField' => 'lastname',
'template' => 'article',
'status' => 'listed',
'sheet' => false,
],
],
'snippets' => [
'spreadsheet-table' => __DIR__ . '/snippets/spreadsheet-table.php',
],
'tags' => [
'spreadsheet' => require_once __DIR__ . '/tags/spreadsheet.php',
],
]);