=== Triplandoo ===
Contributors: triplandoo
Tags: triplandoo, booking, travel, iframe, elementor
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 0.1.14
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Embed Triplandoo booking pages in WordPress with a shortcode, block editor block, and Elementor widget.

== Description ==

Triplandoo embeds hosted Triplandoo booking pages in WordPress. It provides:

* A `[triplandoo_booking]` shortcode.
* A server-rendered `Triplandoo Booking` block for the block editor.
* An Elementor widget when Elementor is active.
* Optional height, color, language, heading, subheading, and support phone parameters.

The plugin is an interface to the Triplandoo booking service. A Triplandoo booking iframe URL is required before visitors can make bookings through the embedded page. The plugin only renders HTTPS iframe URLs from `triplandoo.com` or its subdomains.

The plugin itself does not collect visitor data. The embedded booking page is loaded from Triplandoo, so site owners should mention Triplandoo in their privacy policy where required.

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/triplandoo`, or install the plugin through the WordPress Plugins screen.
2. Activate the plugin through the Plugins screen.
3. Add a Triplandoo booking iframe URL to a shortcode, block, or Elementor widget.
4. Optionally adjust default height and iframe title under Settings > Triplandoo.

Example shortcode:

`[triplandoo_booking url="https://app.triplandoo.com/booking?uuid=..."]`

Example shortcode with options:

`[triplandoo_booking url="https://app.triplandoo.com/booking?uuid=..." language="de" height_mode="auto" accent="#0057ff"]`

== Frequently Asked Questions ==

= Does this plugin require a Triplandoo service? =

Yes. The plugin embeds a hosted Triplandoo booking page, so you need a Triplandoo booking iframe URL.

= Can editors embed non-Triplandoo iframe URLs? =

No. The plugin only renders HTTPS iframe URLs from `triplandoo.com` or its subdomains.

= Does the plugin work without Elementor? =

Yes. The shortcode and block editor block work without Elementor. The Elementor widget is only registered when Elementor is active.

= Which languages are supported? =

The embed controls support German and English and pass `language=de` or `language=en` to the booking page.

= Does this plugin collect personal data? =

The plugin does not store booking data in WordPress. Visitors interact with the hosted Triplandoo booking page inside the iframe.

== Changelog ==

= 0.1.13 =
* Use [triplandoo_booking] as the primary WordPress shortcode.
* Keep compatibility aliases for previously copied shortcode snippets.

= 0.1.12 =
* Align package-facing plugin identifiers with the triplandoo slug.
* Rename the main plugin file to triplandoo.php.
* Use the [triplandoo] shortcode for new embeds.

= 0.1.11 =
* Update the plugin text domain to match the WordPress.org slug triplandoo.
* Package release ZIPs with the triplandoo/ plugin directory.

= 0.1.10 =
* Updated plugin and author URLs to the canonical `www.triplandoo.com` host and `/wordpress` plugin overview.
* Removed the explicit translation loader because WordPress.org loads plugin translations automatically.

= 0.1.9 =

* Add a saved integration phone number for the booking call button.
* Add block, Elementor, and shortcode `support_phone` overrides for the booking call button.

= 0.1.8 =

* Replace the free-text language field with a German/English selector in block and Elementor embeds.
* Make the booking iframe honor `language=de` and `language=en` query parameters directly.

= 0.1.7 =

* Add auto/manual height mode to block and Elementor embeds.
* Add optional accent override to block and Elementor embeds.
* Force embedded booking URLs to light theme by default.
* Support iframe resize messages for auto-height embeds.

= 0.1.6 =

* Move the iframe URL from global plugin settings into each shortcode, block, and Elementor widget instance.
* Keep legacy saved base iframe URLs as a fallback for existing embeds.

= 0.1.5 =

* Add a server-rendered Triplandoo Booking block for the WordPress block editor.
* Add an Elementor Triplandoo Booking widget with iframe preview support.
* Reuse the shortcode iframe renderer across shortcode, block, and Elementor output.

= 0.1.4 =

* Improve activation checks for incomplete plugin packages.
* Improve package validation in the release build script.

= 0.1.3 =

* Package the plugin with the standard WordPress top-level plugin folder.

= 0.1.2 =

* Support PHP 7.4 and newer.
* Add package layout validation to the ZIP build script.
* Add guarded bootstrap checks for incomplete uploads.

= 0.1.1 =

* Internal packaging fix for WordPress hosts that create plugin folders from upload filenames.

= 0.1.0 =

* Initial plugin scaffold with settings page, shortcode, and responsive iframe assets.
