=== Resevu Booking Widget ===
Contributors: resevu
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 8.0
Stable tag: 0.2.0
License: Proprietary
Short Description: Embed the Resevu booking widget in WordPress with a shortcode or block. All bookings stay in Resevu.

== Description ==
Thin WordPress integration for Resevu. It only lets site owners:
- Save their Resevu tenant ID and optional widget template/language.
- Insert the booking widget via shortcode `[resevu_booking_widget]` or the block “Resevu Widget.”
- Open the Resevu dashboard from the WP admin for managing bookings, payments, and settings.

All booking logic, payments, and availability remain in Resevu; WordPress only embeds the widget script.

== Installation ==
1. Upload the `wordpress-plugin` folder as a plugin (rename to `resevu-booking-widget` if needed).
2. Activate the plugin.
3. Go to “Resevu” in the admin menu, enter your Tenant ID (and optional language/template), and save.
4. Copy the website origin shown on that settings page. In Resevu, open Settings → General and add it under Allowed widget origins.
5. Add `[resevu_booking_widget]` to any page/post or insert the “Resevu Booking Widget” block.
6. The plugin loads `https://www.resevu.com/widget/widget.js` and `widget.css` and injects a container (`.resevu-booking-widget`) so the booking button appears where you place the shortcode/block.

== Frequently Asked Questions ==
= Where do bookings show up? =
In your Resevu dashboard. WordPress does not store or manage bookings.

= How do I change the widget template or language? =
Set defaults in the Resevu settings page. You can override per embed: `[resevu_booking_widget tenant="abc" language="nl" template="oasis"]`.

= Why does the widget say that the domain is not allowed? =
Copy the website origin from WordPress → Resevu. Add that exact value in the Resevu dashboard under Settings → General → Allowed widget origins. Include the scheme (`https://`) and port when your website uses a non-standard port.

== Changelog ==
= 0.2.0 =
- Added a native Gutenberg block with tenant, language, and template controls.
- Added the exact WordPress website origin and allowlist instructions to the settings page.
- Added an automated, reproducible ZIP build for website distribution.
- Updated compatibility metadata for WordPress 7.1.

= 0.1.0 =
- Initial scaffold: settings page, shortcode, basic block renderer.
