=== Adisistemak Booking Embed for ADI Camping ===
Contributors: adisistemak
Tags: booking, camping, reservations, iframe, shortcode
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Embed the ADI Camping booking system on your WordPress site with a block or shortcode.

== Description ==

Adisistemak Booking Embed for ADI Camping embeds your public reservation page into WordPress using a Gutenberg block or a shortcode. Visitors book on the ADI Camping service; this plugin does not store reservation data in WordPress.

**External service**

This plugin relies on the **ADI Camping** booking system. When a page with the block or shortcode is viewed, the visitor’s browser loads the booking interface from the HTTPS URL you configure (typically an ADI Camping host) inside an iframe.

* Service: [https://www.adicamping.com](https://www.adicamping.com)
* Support: admin@adicamping.com
* Terms and privacy: see [https://www.adicamping.com](https://www.adicamping.com) for current Terms of Use and Privacy Policy for the booking service.

An ADI Camping account and a configured camping location may be required for bookings to complete. By default the embed uses:

`https://app.adicamping.com/public-reservation-booking?camp=camping-roble-verde-principal`

Change the URL under **Settings → Adisistemak Booking**, or override it per block/shortcode with the `url` / `camp` attributes.

**Usage — two ways to add the booking form**

**Way 1 — Gutenberg block (recommended)**

1. Optionally set your public booking HTTPS URL under **Settings → Adisistemak Booking**.
2. Edit a page, click **+**, search for **camping** or **booking**, and insert **Adisistemak Booking Embed for ADI Camping**.
3. Optionally set width, height, URL, or camp in the sidebar, then publish and view the page.

**Way 2 — Shortcode**

1. Edit a page and add a Shortcode block (or paste into classic content).
2. Add `[adisistemak_booking]`.
3. Optionally: `[adisistemak_booking height="1000px" width="100%" camp="your-camp-slug"]`.

Block sidebar / shortcode options:

* `width` – iframe width (default `100%`)
* `height` – iframe height (default `600px`)
* `url` – override the settings URL for one embed only (must be HTTPS)
* `camp` – camp slug passed as a query parameter to the booking page

Alias shortcode: `[adisistemak_booking_widget]` (same attributes).

== Installation ==

1. Upload the `adisistemak-booking-for-adi-camping` folder to `/wp-content/plugins/`, or install the zip via **Plugins → Add New**.
2. Activate **Adisistemak Booking Embed for ADI Camping**.
3. Optionally change the booking URL under **Settings → Adisistemak Booking**.
4. Add the **Adisistemak Booking Embed for ADI Camping** block in the editor, or add `[adisistemak_booking]` to any page or post.

== Frequently Asked Questions ==

= How do I add the booking form? =

There are two ways:

**Way 1 — Gutenberg block (recommended):** Edit a page, click **+**, search for **camping** or **booking**, select **Adisistemak Booking Embed for ADI Camping**, optionally set options in the sidebar, then publish and view the page.

**Way 2 — Shortcode:** Add `[adisistemak_booking]` in a Shortcode block (or classic content). Optionally: `[adisistemak_booking height="1000px" camp="your-camp-slug"]`.

= Do I need an ADI Camping account? =

Yes. The plugin only embeds the booking UI. Completing bookings depends on the ADI Camping service.

= Where is reservation data stored? =

In the ADI Camping service, not in your WordPress database. This plugin only outputs an iframe (and stores the booking URL option you configure).

= What URL is used by default? =

`https://app.adicamping.com/public-reservation-booking?camp=camping-roble-verde-principal`

Change it site-wide under Settings, or per block/shortcode with `url` / `camp`.

= Can I customize size and camp? =

Yes. Use the block sidebar, or:

`[adisistemak_booking height="1000px" width="100%" camp="your-camp-slug"]`

= Is the embed responsive? =

Yes. The plugin ships local CSS that adapts on smaller screens.

= I cannot find the block =

Search for **camping** or **booking**. Confirm the plugin is active, then hard-refresh the editor. You can also use the shortcode `[adisistemak_booking]` instead.

== Screenshots ==

1. Block editor – insert the Adisistemak Booking Embed for ADI Camping block and configure width, height, or camp slug in the sidebar.
2. Settings page – set your default booking URL under Settings → Adisistemak Booking.
3. Frontend – the booking system displayed in an iframe on your page.

== Changelog ==

= 1.0.0 =
* Initial release.
* Gutenberg block **Adisistemak Booking Embed for ADI Camping**.
* Shortcodes `[adisistemak_booking]` and `[adisistemak_booking_widget]`.
* Settings page for HTTPS booking URL.
* Responsive iframe embed with optional width, height, url, and camp attributes.

== Upgrade Notice ==

= 1.0.0 =
Initial release. Use the block or shortcode with the default ADI Camping booking URL; override under Settings if needed.
