=== Bordo – table booking for restaurants ===
Contributors: bordo
Tags: restaurant, booking, reservations, table booking, catering
Requires at least: 6.1
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

Let guests book a table, catering or a private event on your restaurant's website, with the Bordo booking widget.

== Description ==

Bordo is a booking system for restaurants. Guests book on your own website, one question at a time, and the bookings land in your Bordo dashboard with a day view, tables, waitlist and reminders.

This plugin puts your Bordo widget on your WordPress site without touching code:

* **A booking button on every page.** It opens the widget in a panel. Where it sits, how it looks, and on which pages and screens it shows are set in the Bordo editor.
* **The widget inside a page.** Add the Bordo block where it should show, or use the shortcode `[bordo]` in the classic editor.
* **Your own links.** Any link to `#boka` on your site, like a "Book a table" item in your menu, opens the booking.

You need a Bordo account, free for one widget and up to 50 bookings a month. Sign up at [bordo.se](https://bordo.se).

== External services ==

This plugin loads the booking widget from Bordo (bordo.se), the service the restaurant has an account with. Without it there is nothing to show.

* **What is loaded, and when:** on every page of the site where the button or the widget shows, the visitor's browser loads `https://bordo.se/widget.js` and the widget's settings from `https://bordo.se/w/<widget id>/launcher`. When the visitor opens the widget, it loads from `https://bordo.se/w/<widget id>` in a frame.
* **What is sent:** like any web request, the visitor's IP address and browser details, and which website the request comes from (so the restaurant sees where its widget is used). The button also reports that it was shown or opened, for the restaurant's statistics, with nothing about the visitor. What a guest types into the widget, such as their name, email and phone number, is sent to Bordo only when they book, and is stored for the restaurant.
* **Cookies:** the widget sets no cookies. It may remember in the browser's local storage that a visitor has already seen a speech bubble.

Bordo's privacy policy: https://bordo.se/privacy (Swedish), https://bordo.se/en/privacy (English).

== Installation ==

1. Install and activate the plugin.
2. In Bordo, open your widget and go to Add to website. Copy the line, or just the widget id.
3. In WordPress, go to Settings → Bordo and paste it in Widget id. Save.
4. The booking button now shows on your site. For the widget inside a page, add the Bordo block, or `[bordo]`.

== Frequently Asked Questions ==

= Where do I change how the button looks? =

In the Bordo editor, under Button: its shape, colour, text, icon, where it sits, and when it shows. Changes show on your site without touching WordPress.

= Can I show two different widgets? =

Yes. The button uses the widget under Settings → Bordo. A block or shortcode can show another one: `[bordo widget="another-id"]`, or the block's Widget setting.

= Does it slow down my site? =

The script loads asynchronously, after the page, and the widget itself only loads when a guest opens it.

== Changelog ==

= 1.0.0 =
* First version: the booking button, the block and the shortcode.
