scottboms / microseasons
Kirby Micro Seasons plugin
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 1
Forks: 1
Open Issues: 0
Type:kirby-plugin
Requires
- php: >8.1.0 <8.4.0
- getkirby/cms: ^4.0 || ^5.0
- getkirby/composer-installer: ^1.1
README
Output information for one of the 72 Japanese micro season based on the current date directly into your Kirby templates and customize using the provided options in your Kirby config.php
file.
Requirements
- Kirby 4.x or 5.x
Installation
Kirby CLI
kirby plugin:install scottboms/kirby-microseasons
Git Submodule
$ git submodule add https://github.com/scottboms/kirby-microseasons.git site/plugins/kirby-microseasons
Copy and Paste
- Download the contents of this repository as a Zip file.
- Rename the extracted folder to
kirby-microseasons
and copy it into thesite/plugins/
directory in your Kirby project.
Usage
In any template, drop in the following line to include the output from this plugin in your site.
<?= snippet('microseasons') ?>
Configuration Options
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.
'scottboms.microseasons' => [
'wrapper' => 'div', // e.g. div, article, section, span, etc.
'class' => 'microseasons',
'includedates' => True, // True | False
'dateformat' => 'M d, Y' // e.g. 'M d', 'Y-m-d', etc.
],
Section
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.
sections:
microseasons:
type: microseasons
Disclaimer
This plugin is provided "as is" with no guarantee. Use it at your own risk and always test before using it in a production environment. If you identify an issue, typo, etc, please create a new issue so I can investigate.