=== Bukio Booking – Table Reservation Widget ===
Contributors: bukioapp
Tags: restaurant, booking, reservation, table booking, widget
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Embed a Bukio table reservation form on your WordPress site. Guests book directly — no iframe, no redirect.

== Description ==

**Bukio Booking – Table Reservation Widget** lets restaurant owners embed a fully functional booking form on their WordPress website.

The widget connects to your [Bukio](https://bukio.hu) account and provides:

* **Real-time availability** — guests see available time slots instantly
* **Full booking flow** — party size, date, duration, time selection, contact info
* **Restaurant info panel** — opening hours, contact details, amenities, social links
* **Area selection** — with image gallery, features, and seasonal info
* **21 color themes** — from minimal to neon, matching any website design
* **4 languages** — Hungarian, English, German, Spanish
* **Policy display** — privacy policy, terms, cancellation policy modals
* **Mobile-friendly** — fully responsive design
* **No iframe** — the widget renders natively in your page, no scrollbar issues
* **Lightweight** — single JavaScript file, zero dependencies

= How It Works =

1. Create a free account at [bukio.hu](https://bukio.hu)
2. Set up your restaurant (areas, tables, opening hours, rules)
3. Install this plugin on your WordPress site
4. Add `[bukio_booking slug="your-restaurant-slug"]` to any page
5. Guests can now book a table directly from your website

= Shortcode =

`[bukio_booking slug="your-restaurant-slug"]`

= Shortcode Attributes =

* **slug** — Your restaurant slug from Bukio (visible in the URL: bukio.hu/booking/your-slug)
* **lang** — Language: `hu`, `en`, `de`, or `es` (default: `hu`)
* **theme** — Color theme (default: `default`). See Themes section below.
* **lang_switcher** — Show a language selector on the widget: `true` / `false` (default: admin setting)
* **langs** — Restrict the language selector to a subset, e.g. `hu,en`

= Available Themes =

default, classic, elegant, rustic, modern, dark, coastal, autumn, pasztell, neon, erdei, vintage, mediterranean, gastro, asian, boho, minimal, cafe, luxury, ocean, fuego

= Non-WordPress Usage =

The widget also works on any HTML page:

`<div data-bukio-widget data-restaurant-slug="your-slug" data-lang="hu" data-theme="default"></div>`
`<script src="https://bukio.hu/js/widget.js" defer></script>`

= External Service =

This plugin connects to the **Bukio** platform (bukio.hu) to load the booking widget and process reservations. When the widget loads, it fetches restaurant data (name, areas, opening hours, policies) from the Bukio API and sends booking submissions to Bukio.

* **Service provider:** Bukio (Studio Bromo — Nagy György EV.)
* **Service URL:** [https://bukio.hu](https://bukio.hu)
* **Privacy Policy:** [https://www.bukio.hu/hu/dokumentumok/adatkezeles](https://www.bukio.hu/hu/dokumentumok/adatkezeles)
* **Terms of Service:** [https://www.bukio.hu/hu/dokumentumok/aszf](https://www.bukio.hu/hu/dokumentumok/aszf)

Data transmitted: restaurant slug, guest name, email, phone number, party size, selected date/time, and special requests. No data is stored on your WordPress server.

== Installation ==

1. Upload the `bukio-booking` folder to `/wp-content/plugins/`
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Go to **Settings → Bukio** and enter your restaurant slug
4. Add the shortcode `[bukio_booking]` to any page or post

== Frequently Asked Questions ==

= Do I need a Bukio account? =

Yes. You need a free account at [bukio.hu](https://bukio.hu) to set up your restaurant and get your slug.

= Is the widget free? =

The WordPress plugin is free. Bukio offers both free and paid plans for restaurants.

= Can I use multiple widgets on one page? =

Yes. Each shortcode creates an independent widget instance. You can even use different slugs for different restaurants.

= Does it work with page builders? =

Yes. The shortcode works with Elementor, Divi, WPBakery, Gutenberg, and any builder that supports shortcodes.

= What data is sent to Bukio? =

Only the booking details: guest name, email, phone, party size, date, time, and special requests. The plugin itself does not track visitors, set cookies, or run analytics. If the restaurant has configured analytics or marketing integrations in their Bukio account, those may run inside the widget according to the restaurant's own configuration and privacy policy.

= Can I customize the colors? =

Yes. Choose from 21 built-in themes in Settings → Bukio, or override per shortcode with the `theme` attribute.

== Screenshots ==

1. The booking widget embedded on a restaurant page
2. Theme selection and live shortcode preview in the admin settings
3. Restaurant info panel with opening hours
4. Area info with photo, capacity and features

== Changelog ==

= 1.0.2 =
* Getting started guide on the settings page with Bukio registration link
* Live shortcode preview with copy button — updates as you change the settings
* New "Language switcher" default option (lang_switcher can still override it per shortcode)
* Settings page rebuilt on the WordPress Settings API
* Admin styles and theme picker moved to enqueued assets (no inline scripts)
* Tested up to WordPress 7.0
* Clarified privacy wording in the FAQ

= 1.0.1 =
* Language switcher support in the shortcode (lang_switcher, langs attributes)
* Widget loaded from the canonical www host

= 1.0.0 =
* Initial release
* 21 color themes
* 4 language support (HU, EN, DE, ES)
* Restaurant info panel with tabs
* Area info modal with image gallery
* Policy modals
* Admin settings page with visual theme picker

== Upgrade Notice ==

= 1.0.2 =
Settings API rework and WordPress 7.0 compatibility.

= 1.0.0 =
Initial release of the Bukio Table Reservation Widget.
