=== HaiPosto Booking ===
Contributors: luomocheride
Tags: booking, appointments, calendar, haiposto, reservations
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.5
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Add a HaiPosto booking button to your WordPress site.

== Description ==

HaiPosto Booking connects your WordPress site to your business booking page on [HaiPosto](https://haiposto.it).

The plugin loads the official HaiPosto widget and displays a customizable button that opens the booking page in a new tab.

**HaiPosto account required**

You need an active HaiPosto account with a configured business. Sign up at [haiposto.it](https://haiposto.it) and enter only your business slug in the plugin settings (e.g. `miosalone` if your page is `https://miosalone.haiposto.it/`).

**Features**

* Shortcode `[haiposto]`
* Gutenberg block "HaiPosto Book"
* Classic WordPress widget
* Configure slug, button text, color, and display mode

**External service (HaiPosto)**

This plugin relies on HaiPosto as an external service. When the button is visible on your site, WordPress loads JavaScript from `https://haiposto.it/embed/v1/widget.js` and visitors are redirected to the booking page at `https://{slug}.haiposto.it/`.

For development environments, developers can change the platform domain using the WordPress filter `haiposto_booking_platform_url` (default: `https://haiposto.it`).

HaiPosto legal documentation:

* [Terms and conditions](https://haiposto.it/terms)
* [Privacy policy](https://haiposto.it/privacy-policy)

== Installation ==

1. Upload the `haiposto-booking` folder to `/wp-content/plugins/` or install the zip from Plugins → Add New → Upload.
2. Activate the plugin.
3. Go to Settings → HaiPosto Booking.
4. Enter your HaiPosto business slug (e.g. `miosalone` for `https://miosalone.haiposto.it/`).
5. Add the `[haiposto]` shortcode to a page or use the Gutenberg block.

== Frequently Asked Questions ==

= Do I need a HaiPosto account? =

Yes. The plugin displays a button that links to your business booking page on HaiPosto. Without an active account, the service cannot be used.

= Where do I find my business slug? =

It is the part before the HaiPosto domain, for example `miosalone` for `https://miosalone.haiposto.it/`. You can also find it in the HaiPosto dashboard under "Integrate on your website".

= Does the plugin send data to external servers? =

Yes. It loads the JavaScript widget from HaiPosto (`haiposto.it`) and opens the booking page on your business HaiPosto subdomain. See HaiPosto [privacy policy](https://haiposto.it/privacy-policy) and [terms](https://haiposto.it/terms).

= Can I use a fixed floating button? =

Yes. Set the mode to "Fixed button bottom right" in the plugin settings, or use `[haiposto mode="floating"]`.

== Changelog ==

= 1.0.5 =
* Added Italian translation (it_IT) for the admin interface.
* Bundled language files and text domain loading.

= 1.0.4 =
* Translated plugin description and admin strings to English for WordPress.org.

= 1.0.3 =
* Updated "Tested up to" to WordPress 7.0.

= 1.0.2 =
* Fixed plugin header: distinct author URI and plugin URI.

= 1.0.1 =
* Simplified settings: only business slug required; platform and booking URLs are derived automatically.

= 1.0.0 =
* Initial release: shortcode, Gutenberg block, classic widget.
