=== LocalBook Booking ===
Contributors: localbook
Tags: booking, appointments, calendar, reservations, scheduling
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.1.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Embed your LocalBook booking page in WordPress with a shortcode or block. Visitors book appointments without creating an account.

== Description ==

LocalBook Booking connects your WordPress site to your LocalBook booking portal. Add the shortcode or the block to any page and your visitors can pick a service, choose a free time slot and confirm the appointment — no account and no password required.

**Features**

* Shortcode `[localbook]` with the attributes `slug`, `height` and `theme`
* Block editor block "LocalBook Booking" with slug and height controls
* Automatic iframe height, so there is no inner scrollbar
* Light, dark or automatic color scheme
* Works with the payment methods enabled in your LocalBook portal (card, TWINT, PayPal or cash on site)
* Translation ready

**How it works**

The plugin renders an iframe that loads your public booking page from the LocalBook service. Appointments, services and payments are managed in your LocalBook account; the plugin itself stores only your portal slug in the WordPress options table.

== External services ==

This plugin embeds a booking page from the LocalBook service (https://localbook.store) in an iframe and loads a small script that adjusts the iframe height.

* What is sent: the request to `https://localbook.store/embed/<your-portal-slug>` is made by the visitor's browser when a page containing the shortcode or block is displayed. It includes the data any browser request contains (IP address, user agent, referrer) plus the details a visitor voluntarily submits in the booking form (name, email address, phone number, selected service and time).
* When it is sent: only on pages where you insert the shortcode or block.
* Why: to display the booking page and process the appointment in your LocalBook account.
* Service terms: https://localbook.store/agb — Privacy policy: https://localbook.store/datenschutz

A LocalBook account is required to use this plugin.

== Installation ==

1. Upload the plugin ZIP under "Plugins → Add New → Upload Plugin", or install it from the WordPress plugin directory.
2. Activate the plugin.
3. Open "Settings → LocalBook" and save your portal slug.
4. Add `[localbook]` to a page, or insert the "LocalBook Booking" block.

== Frequently Asked Questions ==

= Are any plugin features locked or limited? =

No. All plugin features (shortcode, block, height, color scheme, multiple portals) are included and work without a licence key, activation, usage limit or time limit. The plugin is free software under GPLv2 or later. A LocalBook account is needed because the booking page and the appointment data live in that service, exactly like other embed plugins for hosted services.

= Does the plugin execute or download external code? =

No. All scripts and styles ship with the plugin and are loaded from your own site. The booking page is displayed in an iframe; no code is downloaded from our servers and executed in WordPress.

= Where do I find my portal slug? =

It is the part after /b/ in your portal link, for example `localbook.store/b/my-business`.

= Do I need a LocalBook account? =

Yes. The plugin displays a booking page that is hosted by the LocalBook service.

= Can I use several booking pages on one site? =

Yes. Pass the slug per instance: `[localbook slug="second-location"]`.

= Does the iframe resize automatically? =

Yes. The booking page reports its height to the parent window and the plugin applies it, so no inner scrollbar appears.

= Does the plugin store personal data in WordPress? =

No. Only the portal slug is stored as a WordPress option. Booking data is processed by the LocalBook service.

== Changelog ==

= 1.1.2 =
* "Tested up to" header added to the main plugin file for consistency.
* Front-end script and style are registered earlier on `init`, so the block always resolves its style handle.
* Readme cleanup for the plugin directory check.

= 1.1.1 =
* Compatibility confirmed with WordPress 7.0 ("Tested up to" updated).

= 1.1.0 =
* Block registration moved to block.json, including a color scheme control.
* English source strings plus a translation template (.pot).
* New stylesheet for the embed container and admin notices.
* Filter `localbook_base_url` for custom LocalBook installations.
* Settings link on the plugins screen and uninstall cleanup.

= 1.0.0 =
* First release: shortcode, settings page, block, automatic height.

== Upgrade Notice ==

= 1.1.2 =
Maintenance release: consistent version headers and more reliable asset registration.

= 1.1.1 =
Compatibility update for WordPress 7.0.

= 1.1.0 =
Recommended update: standards-compliant block registration, translation template and uninstall cleanup.
