=== California Court Closures ===
Contributors: calcourtdeadlines
Tags: california, courts, holidays, legal, litigation
Requires at least: 5.0
Tested up to: 6.7
Requires PHP: 7.2
Stable tag: 1.0.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Print every California court closure for the year with one shortcode. The dates are maintained at CalCourtDeadlines.com, so the table does not go stale each January.

== Description ==

Adds one shortcode:

`[court_closures year="2026" layout="list"]`

It prints the California court closures for that year, each with the weekday and the holiday name, and flags the state-only closures. Those are the ones that matter most: a California judicial holiday that is not a federal holiday shows as an ordinary working day in every out-of-state calendar and in most generic date pickers.

Attributes, all optional:

* `year` : 2026 through 2030. Defaults to 2026. A year the Judicial Council has not published yet is labelled as projected in the output.
* `layout` : `list` or `table`. Defaults to `list`.
* `limit` : a whole number, to show only the first few in a sidebar. Omit for the whole year.

Who this is for: law library and county bar resource pages, legal professionals association chapter sites, self-help center pages, and firm resource pages. Anywhere that keeps a hand-typed holiday table and has to remember to update it.

== What it adds to your site ==

One script tag, on the pages that use the shortcode and no others. Nothing else.

* No settings page, no menu item, no dashboard widget.
* No database tables and no options rows. Deactivating removes everything.
* No cookies, no analytics, no tracking of your readers. The widget fetches one URL and renders text. The script is served unminified so you can read it: https://calcourtdeadlines.com/embed.js
* No server-side HTTP request during your page render, so it cannot slow your pages down.
* The calendar renders inside a shadow root, so your theme cannot restyle it and it cannot restyle your theme.
* With JavaScript off, the shortcode prints a plain link to the closure calendar.

== Frequently Asked Questions ==

= Is it free? =

Yes, commercial use included. The one thing asked in return is that the attribution line at the foot of the calendar stays where it is.

= Where do the dates come from? =

The Judicial Council's published court holiday calendar, checked date for date, not derived from Government Code section 6700 alone. The two disagree in the years where a holiday falls on a weekend, and the published calendar is what governs whether a courthouse is shut. The reasoning is at https://calcourtdeadlines.com/methodology

= Does it cover emergency closures? =

No, and nothing can. An individual superior court may also close by order under Government Code section 68115. Those are unpredictable and are not in the list, which the widget says.

= Can I style it? =

Not from your theme's stylesheet, by design: the calendar is in a shadow root so the two cannot interfere. If you need a different look, use the JSON endpoint and render it yourself: https://calcourtdeadlines.com/api/embed/closures?year=2026

= Will the script URL ever change? =

No. Once a page depends on it, that address is a commitment.

== Installation ==

1. Plugins, then Add New, then Upload Plugin, and choose the zip.
2. Activate.
3. Put `[court_closures]` in a post, page, text widget or shortcode block.

== Changelog ==

= 1.0.0 =
* First release. One shortcode, three attributes.
