| 开发者 | noroshilab |
|---|---|
| 更新时间 | 2026年11月14日 12:23 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[noroshi_calendar] shortcode: number of months, legend, previous/next month buttons (no page reload), start of week.[noroshi_calendar months="2" prev="0" next="6" legend="true" start_of_week="1" categories="closed,pm-off"]
months – months shown at once (1–12)prev / next – how many months visitors can go back / forwardlegend – true or falsenavigation – false hides the previous/next buttonsstart_of_week – 0 Sunday, 1 Mondaycategories – show only these categories (slugs, comma separated)year / month – show a fixed month instead of the current one[noroshi_calendar] shortcode.The downloaded Cabinet Office list covers the years it publishes (usually up to the next year). Years after that are calculated from the current Act on National Holidays. The dates of the vernal and autumnal equinox days are officially fixed each February for the following year, so calculated years are marked as such on the National holidays tab.
Yes. Use the categories attribute of the shortcode, or the setting of the block and the widget.
Dates entered for a category always win over weekday rules. Among the same kind of rule, the category lower in the list wins. Special business days override weekday rules and national holidays.
Yes. All months within the navigation range are in the page, and the "today" marker and the starting month are adjusted in the browser.