=== Bookpage24 – Booking page for Beds24 ===
Contributors: bookpage24
Tags: beds24, booking engine, hotel, reservation, direct booking
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

Replace the standard Beds24 booking page with your own: photos, real room names, your colours, your languages, on your WordPress site.

== Description ==

Bookpage24 connects to your Beds24 account and gives your guests a booking page that looks like your hotel, not like a channel manager. This plugin places that booking engine on your WordPress site.

* **Block and shortcode**: add the "Bookpage24 booking engine" block, or `[bookpage24]`, to any page.
* **Book now button**: `[bookpage24_button]` links to your hosted booking page with the visitor's language.
* **Languages**: follows WPML, Polylang or the site language. English, German, French, Italian, Spanish.
* **Live prices**: availability and prices are read from Beds24 at every search and checked again before booking.
* **No card data on your site**: payments and card guarantees happen on Beds24's secure pages.
* **Fallback**: the block carries a “Book now” link to your Beds24 page; if the engine cannot load, the link stays.

You need a Bookpage24 account (free trial) connected to your Beds24 account.

== Installation ==

1. Upload the plugin and activate it.
2. Go to Settings → Bookpage24, enter your property identifier (shown in your Bookpage24 dashboard) and save: the plugin fetches your Beds24 booking page address as fallback link.
3. In Bookpage24, under Settings → Allowed websites, add this site's address.
4. Add the "Bookpage24 booking engine" block or the `[bookpage24]` shortcode to a page.

== Frequently Asked Questions ==

= Does it store guest or card data in WordPress? =
No. The engine runs on Bookpage24's servers and writes bookings into your Beds24. Cards are entered on Beds24's secure pages only.

= Can I keep my existing "Book now" buttons? =
Yes. Point them to your hosted page, or use `[bookpage24_button text="Book now"]`. You can pre-fill dates: `[bookpage24_button arrival="2027-03-12" departure="2027-03-14" adults="2"]`.

= Which languages are supported? =
The engine shows the languages you enabled in Bookpage24. The plugin picks the visitor's language from WPML, Polylang or the site locale, or you can force one with `lang="de"`.

== Changelog ==

= 1.0.0 =
* First release: block, shortcodes, settings page, language detection.
