=== CannaComply Footer Compliance Widget ===
Contributors: cannacomply
Tags: cannabis, compliance, footer, dispensary, NYS OCM
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
Stable tag: 1.6.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

A compliance aid that adds a NYS OCM-compliant footer section with mandatory warnings, HOPEline info, license display, and dispensary verification link. Does not constitute legal advice.

== Description ==

CannaComply Footer Compliance Widget automatically adds a legally compliant footer section to every page of your WordPress cannabis dispensary website. It includes all mandatory NYS Office of Cannabis Management (OCM) warnings, the HOPEline contact information, your license number, and a link to the OCM dispensary verification page.

**Disclaimer:** This plugin is provided as a compliance aid and does not constitute legal advice. CannaComply is not affiliated with the New York State Office of Cannabis Management (OCM) or any government agency. While this plugin implements currently required warning text, it does not guarantee full regulatory compliance. Dispensary operators are responsible for ensuring all aspects of their website comply with applicable laws and regulations. Consult a licensed attorney for legal guidance.

**Features:**

* Mandatory cannabis warning statement
* Rotating health warnings (daily or random)
* NYS HOPEline contact information with clickable phone, text, and web links
* License number display
* OCM dispensary verification link
* Configurable warning font (4 OCM-approved fonts)
* Configurable warning font size (12-20px, clamped for compliance)
* Two display modes: Standard (full yellow box) and Minimal Bar (slim bottom bar)
* Auto-insert via wp_footer or use the [cannacomply_footer] shortcode
* Fully responsive design with three breakpoints
* All CSS uses !important to prevent theme overrides
* Accessible markup with ARIA attributes

== Installation ==

1. Upload the `cannacomply-footer-widget` folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Go to Settings > CannaComply Footer to configure your business name and license number.

== Frequently Asked Questions ==

= Can I customize the warning text? =

No. The warning text is legally mandated by the NYS OCM and cannot be modified. The plugin ensures exact compliance with the required wording.

= Can I change the footer font? =

You can choose from four OCM-approved fonts for the warning box: Helvetica, Arial, Times New Roman, and Calibri. The font size can be set between 12px and 20px.

= Can I place the footer manually instead of auto-inserting? =

Yes. Disable the "Auto-Insert Footer" option in settings and use the `[cannacomply_footer]` shortcode wherever you want the compliance footer to appear.

= Will my theme override the footer styling? =

No. All CSS properties use !important to ensure compliance styling cannot be broken by any theme.

== Changelog ==

= 1.6.0 =
* Changed license display prefix from "License #" to "License:" (no hash symbol)

= 1.5.0 =
* Added subtle callout link to CannaComply free website compliance scan on settings page

= 1.4.0 =
* Added regulatory reference notice on settings page (9 NYCRR Parts 128 & 129, adopted Dec 3 2025)
* Added legal disclaimer on settings page and plugin description
* Key disclaimers: compliance aid, not legal advice, not affiliated with OCM, no guarantee of compliance

= 1.3.0 =
* Fixed OCM dispensary verification URL (was 404, now points to correct page)
* Reordered yellow box: business name and license number now appear first
* Removed redundant "Licensed by NYS OCM" prefix — just shows "License #[NUMBER]"
* Added visual separator between identity block and warnings in standard mode
* Minimal bar mode also shows identity first with dot separators

= 1.2.0 =
* Added Display Mode setting: Standard (default) and Minimal Bar
* Minimal Bar mode renders all compliance text in a slim yellow bar at page bottom
* Tightened spacing in Standard mode — less dead space, still readable
* Font size slider minimum lowered from 14px to 12px
* Both modes respect admin font and font size settings

= 1.1.0 =
* Yellow warning box now wraps all compliance content (warnings, HOPEline, business name, license)
* Updated to bright yellow (#FFE600) background per OCM requirement
* All text inside yellow box is bold (font-weight: 700)
* Links inside yellow box use dark blue (#1a4d8f) for contrast
* Business name now displayed alongside license number in yellow box
* All text inside yellow box is centered

= 1.0.0 =
* Initial release.
