=== Avintas ===
Contributors: appavintas
Tags: restaurant, reservations, booking, gift vouchers, events
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

Booking, gift vouchers, events and the menu from Avintas on your WordPress site, without code.

== Description ==

Avintas is a reservation service for restaurants (https://avintas.be). This plugin puts the Avintas widgets on your WordPress site without writing code:

* **Booking** — the booking form on a page, or a floating button on every page.
* **Gift vouchers** — guests buy a gift voucher for your restaurant.
* **Events** — your upcoming ticketed events.
* **Menu** — the menu you keep in Avintas.

You connect the site once with a connection code from the Avintas dashboard. Colours, button texts and languages are managed in Avintas; the site follows automatically. On a multilingual site (Polylang, WPML) each widget follows the language of the page it is on.

Every widget runs in a frame served by avintas.be. The plugin itself never stores or processes guest data.

**This plugin connects to a service.** An Avintas account is required (paid subscription, see https://avintas.be/en/pricing); without one the plugin shows nothing. Terms: https://avintas.be/en/terms · Privacy: https://avintas.be/en/privacy

== Installation ==

1. Install and activate the plugin.
2. In the Avintas dashboard, under Booking widget → WordPress, create a connection code.
3. Open "Avintas" in the WordPress admin menu, paste the code and click Connect.
4. Add an Avintas block in the editor, or use a shortcode: `[avintas_booking]`, `[avintas_voucher]`, `[avintas_events]`, `[avintas_menu]`. Add `lang="fr"` to a shortcode to force one language on one page.

== Frequently Asked Questions ==

= Where do I find the connection code? =

In the Avintas dashboard under Booking widget → tab WordPress. The code is shown once; create a new one if you lose it.

= Does the plugin store guest data? =

No. Bookings, payments and tickets happen in a frame on avintas.be. The plugin stores only the connection code (encrypted) and a copy of your widget settings.

= Can I change colours and texts in WordPress? =

No, they come from the Avintas dashboard so you keep them in one place. What you change there is on the site within fifteen minutes.

= What happens if I revoke the connection code? =

The widgets disappear from the site until a new code is pasted. Administrators see a notice; visitors see nothing.

== Privacy ==

The plugin loads Avintas's own embed script (https://avintas.be/embed.js) on pages that carry a widget; that script opens the widget in an iframe on avintas.be. Avintas sets no cookies before a guest interacts with a form. Guest data entered in a widget is processed by Avintas under its privacy policy: https://avintas.be/en/privacy. The plugin sends the site's hostname to Avintas with each configuration refresh, so the restaurant can see which site uses its connection code.

== Screenshots ==

1. The Avintas page in wp-admin: the connection to your restaurant, the display options, and the blocks and shortcodes that put the widgets on a page.

== Changelog ==

= 1.0.0 =
* First release: booking, voucher, events and menu widgets; connection code; floating button; page-language support for Polylang and WPML.
