=== Otelvya Booking ===
Contributors: otelvya
Tags: hotel, booking, booking engine, reservations, channel manager
Requires at least: 5.8
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Connect your hotel website to Otelvya: search bar, rooms with prices, availability calendar and "Book now" button.

== Description ==

Otelvya Booking links your WordPress website to your Otelvya booking engine, so guests book directly with you, without commission.

* `[otelvya_search]` – search bar (dates, guests) opening your booking engine on the chosen dates.
* `[otelvya_rooms]` – your room types with photos and "from" prices for the next 30 nights.
* `[otelvya_book_button]` – a "Book now" button (`label="…"` to change the text).
* `[otelvya_calendar days="30"]` – minimum price and availability per night (7 to 60 nights).
* "Otelvya" Gutenberg block and classic widget with the same displays.
* Common attributes: `hotel`, `lang` (fr, en, es, ar), `color` (#rrggbb), `theme="dark"`.

Content is rendered on your server from the Otelvya public API v1 and cached for 5 minutes. Prices are never invented: when no price is available the plugin says so.

= External service =

This plugin connects to the Otelvya platform (https://otelvya.com by default, configurable) to read your hotel's public information, rooms, prices and availability. No visitor data is sent by the plugin; bookings are made on the Otelvya booking engine. Terms and privacy policy: https://otelvya.com

== Installation ==

1. Plugins › Add New › Upload Plugin, choose `otelvya-booking.zip`, install and activate.
2. Settings › Otelvya: enter your hotel identifier (shown in Otelvya › Booking engine › Add to your website).
3. Add the "Otelvya" block, a shortcode or the widget to your pages.

== Frequently Asked Questions ==

= Do I need an API key? =

No. The key is optional and only gives your server its own rate limit. Never paste a key into a page.

= Where are payments made? =

On the Otelvya booking engine, in the hotel currency, when the hotel has enabled online payment; otherwise at the hotel.

== Changelog ==

= 1.0.0 =
* First release: shortcodes, block, widget, settings, translations (French, Spanish, Arabic).

== Upgrade Notice ==

= 1.0.0 =
First release.
