
外掛標籤
開發者團隊
原文外掛簡介
Eigyo Calendar (営業日カレンダー) is a business day calendar that shows when your shop or office is open, on a clean monthly calendar. “Eigyo” (営業) means “open for business” in Japanese.
Set your regular closing days once, and the calendar keeps itself up to date. Japanese national holidays, substitute holidays and citizens’ holidays are calculated automatically from the holiday law, so there is no holiday list to update every year.
Features
Regular closing days by weekday (for example every Sunday)
Closing days by week of the month (for example the 2nd and 4th Wednesday, or the last Friday)
Japanese national holidays, calculated automatically (2000-2099)
Special closing days and special business days for exceptions. Type the dates, or click them on a month calendar on the settings screen
“Today’s status” text: “Open today” or “Closed today, our next business day is …”
Previous and next month buttons, so visitors can look up to 24 months ahead (and back)
Stays right on cached pages: once the script runs, “today” and the status text follow the visitor’s clock, in your site’s time zone
Choose the calendar colors on the settings screen, with a preview and a warning when the text is hard to read
Three ways to add it: blocks, shortcodes and a classic widget
Lightweight: no jQuery. The stylesheet and one small script (23 KB, about 7 KB compressed) load only where a calendar or today’s status is shown, and the calendar works without the script
Accessible: real tables with captions and headers, closed days are marked with text (not only color), today is announced to screen readers, the buttons and the date picker work with the keyboard
Easy to restyle with CSS custom properties
Import closing days from XO Event Calendar or Biz Calendar, with one-click undo
Translation ready
Shortcodes
[eigyo_calendar] shows the calendar. Use months="1" to months="3" to change the number of months. Add nav="0" to hide the previous and next month buttons on that calendar, or nav="1" to show them when they are turned off on the settings screen.
[eigyo_status] shows whether you are open today.
Changing the colors
Choose the colors under Settings > Eigyo Calendar > Colors. The preview on that screen changes as you pick them.
You can also add this to Appearance > Customize > Additional CSS (or your theme’s stylesheet). It takes priority over the colors on the settings screen:
.bdcal { --bdcal-closed-bg: #fff4e5; --bdcal-closed-color: #8a4b00; --bdcal-today-ring: #1a56db; }
Other properties: --bdcal-sun-color, --bdcal-sat-color, --bdcal-border, --bdcal-header-bg.
