-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
45 lines (40 loc) · 1 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
38
39
40
41
42
43
44
45
<?php
/**
* Kirby Japanese Microseasons Plugin
*
* @author Scott Boms <[email protected]>
* @license MIT
**/
load([
'scottboms\Microseasons\Season' => __DIR__ . '/classes/Microseasons.php'
]);
use Scottboms\Microseasons\Season;
use Kirby\Toolkit\Date;
use Composer\Semver\Semver;
use Kirby\Cms\App as Kirby;
// validate Kirby version
if (Semver::satisfies(Kirby::version() ?? '0.0.0', '~4.0 || ~5.0') === false) {
throw new Exception('HTML5 Video Tag requires Kirby 4 or 5');
}
Kirby::plugin(
name: 'scottboms/kirby-microseasons',
info: [
'homepage' => 'https://github.com/scottboms/kirby-microseasons'
],
version: '1.0.8',
extends: [
'options' => [
'cache' => True,
'wrapper' => 'div',
'class' => 'microseasons',
'includedates' => True,
'dateformat' => 'M d'
],
'snippets' => [
'microseasons' => __DIR__ . '/snippets/microseasons.php'
],
'sections' => [
'microseasons' => require __DIR__ . '/sections/microseasons.php'
]
]
);