=== UW-Madison Archive Notice ===
Contributors: uwmadison
Tags: accessibility, ada, archive, notice, banner
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 1.0.2
License: MIT
License URI: https://opensource.org/licenses/MIT

Adds a UW-Madison archive notice banner to a WordPress site for ADA Title II compliance.

== Description ==

Designates a web page or entire site as "archived" using the UW-Madison archive notice web component. Under ADA Title II, web content created prior to April 24, 2026 can be designated as archived, and in which case does not need to meet WCAG 2.1 AA criteria as long as visitors can request an accessible version.

The plugin provides four ways to render the banner:

1. **Site-wide** - Show the banner on every page and post. Configured in *Settings -> Archive Notice*.
2. **Per-post** - Enable the banner on individual posts or pages via a meta box. Configured in *Settings -> Archive Notice*.
3. **Shortcode** - `[uw_archive_notice email="team@wisc.edu" date="February 19, 2026"]`.
4. **Block** - Insert the "Archive Notice" block in the block editor.
5. **PHP template tag** - Call `uw_madison_archive_banner( [ 'email' => ..., 'archive_date' => ..., 'scope' => ... ] )` from a theme template.

The banner's JavaScript is loaded from the UW-Madison CDN:
`https://cdn.wisc.cloud/archive-notice/uw-archive-notice.min.js`

== Installation ==

1. Upload the plugin zip via *Plugins -> Add New -> Upload Plugin*, or unzip into `wp-content/plugins/`.
2. Activate the plugin in *Plugins*.
3. Go to *Settings -> Archive Notice* to configure.

== Frequently Asked Questions ==

= Where does the CSS come from? =

The banner is a custom element that encapsulates its own styles inside shadow DOM. The plugin ships no component CSS.

= Can I translate the banner text? =

Not currently. The user-facing banner strings live inside the web component and are not surfaced through the plugin.

= What happens when a post has per-post settings AND site-wide is on? =

Site-wide wins. The mode setting is mutually exclusive: when set to site-wide, the site-wide banner renders on every page and any stored per-post settings are ignored. Switching the mode back to per-post reactivates those stored settings.

== Changelog ==

= 1.0.0 =
* Initial release.
