You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Output information for one of the [72 Japanese micro season](https://www.nippon.com/en/features/h00124/) based on the current date directly into your Kirby templates and customize using the provided options in your Kirby `config.php` file.
4
6
5
7
## Requirements
@@ -10,11 +12,15 @@ Output information for one of the [72 Japanese micro season](https://www.nippon.
@@ -25,26 +31,35 @@ Output information for one of the [72 Japanese micro season](https://www.nippon.
25
31
26
32
In any template, drop in the following line to include the output from this plugin in your site.
27
33
28
-
<?= snippet('microseasons') ?>
34
+
```
35
+
<?= snippet('microseasons') ?>
36
+
```
29
37
30
38
## Configuration Options
31
39
32
40
If you want to modify the wrapper HTML element, change the wrapper class, or output the date information in a custom format, you can configure this using the included plugin options. Date formatting follows the [available format options from PHP](https://www.php.net/manual/en/function.date.php).
33
41
34
-
'scottboms.microseasons' => [
35
-
'wrapper' => 'div', // e.g. div, article, section, span, etc.
36
-
'class' => 'microseasons',
37
-
'includedates' => True, // True | False
38
-
'dateformat' => 'M d, Y' // e.g. 'M d', 'Y-m-d', etc.
39
-
],
42
+
```php
43
+
<?php
44
+
return [
45
+
'scottboms.microseasons' => [
46
+
'wrapper' => 'div', // e.g. div, article, section, span, etc.
47
+
'class' => 'microseasons',
48
+
'includedates' => True, // True | False
49
+
'dateformat' => 'M d, Y' // e.g. 'M d', 'Y-m-d', etc.
50
+
],
51
+
]
52
+
```
40
53
41
54
## Section
42
55
43
56
The plugin also includes a custom `section` type called `microseasons` that you can use to display information within the panel. This can be added to a blueprint and also adopts any defined configuration options.
0 commit comments