=== Escale Reservation ===
Contributors: escaleapp
Tags: booking calendar, availability calendar, vacation rental, direct booking, holiday cottage
Requires at least: 6.3
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Show your Escale booking calendar, availability, rates or a search across all your places on your site, with a block or a shortcode.

== Description ==

[Escale](https://escale.voyage) helps independent holiday rental hosts (cottages, B&Bs, small apartments) take direct bookings. This plugin puts the Escale widgets on your WordPress site, without copying any code.

Four widgets, each available as a block (search for « Escale » in the block inserter) or as a shortcode:

* **Booking calendar**: your calendar with the price of each night, the total of the stay (length of stay discount, cleaning, tourist tax if you enabled it) and the booking request. `[escale_reservation slug="my-cottage"]`
* **Availability only**: free and booked nights over 1, 2, 3, 6 or 12 months, without prices, with a « Book » button. `[escale_calendrier slug="my-cottage" mois="3"]`
* **Rates**: your seasons with the price per night, minimum stay, length of stay discounts and cleaning fee. `[escale_tarifs slug="my-cottage"]`
* **Search across all your places**: the guest picks dates and number of guests, sees which of your places are free and the total price, and books. `[escale_recherche hote="abcd2345efgh"]`

Optional attributes on every shortcode: `couleur="#2F7D5B"` (accent colour, otherwise the one chosen in Escale) and `langue="en"` (fr, en, de or nl; otherwise the language of your site when Escale speaks it).

Each widget adjusts its height to its content. If a guest sends a booking request, it arrives in your Escale account: you accept it there, and card payments go to your own Stripe account.

= What you need =

An Escale account with a published booking page. The address of your page (the `slug`) and your search ID (the `hote` value) are shown in Escale, under « Add to your website ». Escale has a free plan; see [escale.voyage/tarifs](https://escale.voyage/tarifs).

== External services ==

This plugin is an interface to the Escale service (https://escale.voyage), run by Escale, France. It is needed to show your calendar, prices and booking form, which are stored in your Escale account.

* What is loaded: each widget is a frame (iframe) loaded from https://escale.voyage when a visitor opens a page containing it. No script is loaded from Escale by the plugin; the small script that adjusts the frame height is included in the plugin.
* What is sent: the visitor's browser requests the widget page from escale.voyage, which receives the usual technical data of any web request (IP address, browser, the address of the page containing the frame as referrer). The widget sets no cookie and contains no tracking or advertising. If the visitor sends a booking request, the details they type in (name, email, phone, dates, number of guests) are sent to Escale and passed on to you, the host.
* Nothing is sent by your WordPress server: the plugin makes no request of its own and stores no option.

Terms of use: https://escale.voyage/cgu
Privacy policy: https://escale.voyage/confidentialite

== Installation ==

1. In WordPress, go to Plugins, Add New Plugin, and search for « Escale Reservation », or upload the zip file downloaded from Escale.
2. Activate the plugin.
3. Edit a page, add the « Escale » block and fill in the address of your booking page. Or paste a shortcode copied from Escale.
4. Update the page.

== Frequently Asked Questions ==

= Where do I find my slug and my search ID? =

In Escale, under « Add to your website ». Choose the widget, then WordPress: the shortcode is ready to copy, with your values in it.

= Does it work on WordPress.com? =

On WordPress.com, installing plugins depends on your plan. Without plugins, Escale also gives you a code to paste in a « Custom HTML » block, or a simple link.

= The widget shows « Online booking unavailable » =

Your booking page is not published, or the address is wrong. Publish it in Escale, under Settings, then check the slug.

= Can I restrict the widget to my own site? =

Yes, in Escale (widget options): list your domains, and the widget only shows on them.

= Is the widget translated? =

The widgets speak French, English, German and Dutch. Without a `langue` attribute, they follow the language of your site, or else the guest's browser.

== Screenshots ==

1. The booking calendar with prices and total on a page.
2. The availability calendar over three months.
3. The rates of the seasons.
4. The search across all your places, with the total for the chosen dates.
5. The « Escale » block and its settings in the editor.

== Changelog ==

= 1.0.1 =
* Translations now come from translate.wordpress.org: bundled language files and load_plugin_textdomain() removed.

= 1.0.0 =
* First version: booking calendar, availability calendar, rates and search, as a block and as shortcodes.

== Upgrade Notice ==

= 1.0.1 =
Translations are delivered by WordPress.org language packs.

= 1.0.0 =
First version.
