=== Czech Opening Hours ===
Contributors: socionet
Tags: opening hours, czech, holidays, local business, schema
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Opening hours with Czech state holidays built in (Easter included), an "open now" line that never goes stale, and schema.org markup for Google.

== Description ==

Czech Opening Hours is for the small business that closes on Good Friday, Easter Monday and 28 October and does not want to remember it every year. Set your weekly hours once, tick the holidays you are closed on, and the plugin does the rest.

**What you get**

* **Czech state holidays built in.** All thirteen state holidays, including the moving ones (Good Friday and Easter Monday are computed for every year), so nothing to update next year.
* **"Open now" line that tells the truth.** "Open now, we close at 17:00." or "Closed now. Public holiday: Easter Monday. Next opening: Tuesday at 8:00." On sites behind a page cache the line refreshes itself once a minute.
* **Weekly table** with today highlighted, a lunch break (two intervals a day), hours past midnight, and a note for holidays and exceptions.
* **Exceptions that win.** A summer break, inventory day, a short Christmas Eve: from-to dates, a note for visitors, closed or special hours.
* **Structured data for Google.** schema.org LocalBusiness markup with your hours and the upcoming closures, so search results can show them. You choose the business type. Switch it off if your SEO plugin already prints one.
* **Block and shortcode.** A block "Opening hours" for the block editor, and `[otevreci_doba]` for the classic editor, widgets and page builders.
* **Czech and English interface** (cs_CZ translation included).

**Privacy and quality**

* No tracking, no external requests, no ads, no upsell. Everything runs on your server.
* One option in the database, removed completely when you delete the plugin.
* Accessible markup: a status region, a real table with row headers, the open and closed state is never shown by colour alone.

**Shortcode**

`[otevreci_doba]` shows the status and the weekly table.

* `status="no"` hides the "open now" line, `table="no"` hides the table.
* `upcoming="3"` adds the next three closures or special days.
* `live="no"` turns off the once-a-minute refresh of the status line.

`[czech_opening_hours]` is an alias.

The plugin is made by [Socionet](https://socionet.cz/), a Czech web design studio.

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/`, or install it from Plugins > Add New.
2. Activate it.
3. Open Settings > Opening hours and fill in your hours.
4. Add the block "Opening hours" to a page, or put `[otevreci_doba]` where the hours should appear.

== Frequently Asked Questions ==

= Which holidays are included? =

The thirteen Czech state holidays: 1 January, Good Friday (from 2016), Easter Monday, 1 May, 8 May, 5 July, 6 July, 28 September, 28 October, 17 November, 24 December, 25 December and 26 December. You choose the ones you are closed on. By default all are ticked except Christmas Eve.

= My shop has different rules on a holiday. =

Add an exception for that date with the hours you keep. An exception always wins over the holiday list.

= Does it work behind a cache plugin? =

Yes. The "open now" line asks the site for the current status once a minute and rewrites itself, so a cached page does not show yesterday's answer. Without JavaScript the line shows the status at the time the page was built.

= Which time zone does it use? =

The one in Settings > General. Set it to Europe/Prague.

= Does it conflict with my SEO plugin? =

If your SEO plugin already prints LocalBusiness data, turn off "Print structured data" in the settings to avoid duplicates.

== Screenshots ==

1. The weekly table with the "open now" line on a page.
2. Settings: weekly hours, holidays, exceptions and business details.
3. The block in the editor.
4. Settings on a phone.

== Changelog ==

= 1.0.0 =
* First release.

== Upgrade Notice ==

= 1.0.0 =
First release.
