=== SyncBooking ===
Tags: booking, hotel, BNB, vacation, reservations
Requires at least: 5.0
Tested up to: 7.0
Stable tag: 1.34.2
Requires PHP: 7.2
Contributors: automaticbnb
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

SyncBooking simplifies hotel and BNB reservations with a real-time availability calendar and WooCommerce integration.

== Description ==

SyncBooking simplifies hotel and BNB reservations with a real-time availability calendar and WooCommerce integration.

== External Services ==

This plugin connects to external services to validate API keys, retrieve booking data and load the booking theme fonts.

1. **SyncBooking API**
   Used to send email reminders or retrieve booking details.

   * **What**: API service to send messages or retrieve bookings
   * **Data sent**: User email address and booking code
   * **When**: When a user clicks the "Send Email" or "Retrieve Booking" button
   * **Where**: `https://booking.syncbooking.com/api-send-email/`
   * **Provider**: SyncBooking.com
   * **Terms**: <https://syncbooking.com/terms>
   * **Privacy**: <https://syncbooking.com/privacy>

2. **Google Fonts**
   Loads the Cormorant Garamond and Jost fonts used by the theme01 booking interface.

   * **What**: Font files and standard browser request metadata
   * **Data sent**: Standard browser request metadata only
   * **When**: On SyncBooking booking pages using the theme01 interface
   * **Provider**: Google LLC
   * **Terms**: <https://policies.google.com/terms>
   * **Privacy**: <https://policies.google.com/privacy>

These services are essential for core plugin features.
No personal data is transmitted unless triggered by explicit user actions (e.g., submitting a form).

== Source Code ==

This plugin bundles both custom and third-party JavaScript files.
For compliance with WordPress.org guidelines, the original source is included or referenced.

**Third-party libraries**

* `php/theme-sync/page/website/include/js_calendar/flatpickr/flatpickr.min.js`
  * Flatpickr date picker, bundled locally.
* `php/theme-sync/page/website/include/js_calendar/glightbox/glightbox.min.js`
  * GLightbox image gallery, bundled locally.

**Custom scripts**

* `php/bar-sync/js/bar.js` - booking bar (date-range calendar + submit), custom, not minified.
* `php/theme-sync/page/website/include/js/js_calendar.js` - booking page calendar and search, custom, not minified.
* `php/theme-sync/page/website/include/js/next.js` - booking selection flow, custom, not minified.
* `php/theme-sync/page/website/include/js/js_sendemail.js` - retrieve-booking email flow, custom, not minified.

No build tools (npm, webpack, etc.) are required to use or extend this plugin.
Developers may edit the provided readable source files directly.

== Changelog ==

= 1.34.2 =
* Removed legacy exported CSS/JS, Webfont, Plyr, demo image and unused popup/template assets from the plugin package.
* Booking pages now load only the theme01 stylesheet, Flatpickr, GLightbox and SyncBooking custom scripts.

= 1.34.1 =
* Aligned the booking page header, footer and shell markup with the theme01 plugin booking HTML.
* Improved direct search URLs by reading `syncbooking_depart` and showing API errors inside the results area.

= 1.34.0 =
* Updated the booking page theme to match the latest theme01 HTML.
* Refreshed search result markup compatibility for the injected booking results.
* Functionality unchanged: search, availability, gallery, room selection and checkout flow keep the same hooks and behaviour.

= 1.33.0 =
* Compatibility: tested up to WordPress 7.0.

= 1.32.0 =
* Refreshed plugin admin UI (theme01 palette): cleaner cards, tabs and buttons in the SyncBooking accent colour. Settings and behaviour unchanged.

= 1.31.0 =
* New "Manage booking" page design (theme01): clean centred card with the email-retrieve form, matching header/footer. Same fields and behaviour (enter the booking email to receive the reservation details).

= 1.30.0 =
* New booking page design (theme01): refreshed header/footer, search bar, structure gallery, two-column layout with a sticky customer-support sidebar. Typography and colours follow the structure brand.
* Search, availability calendar (flatpickr) and the booking flow are unchanged: the page keeps the same fields (structure, dates, houses, guests) and still loads the availability results into the page.

= 1.29.0 =
* New booking bar design (theme01): date-range calendar, refreshed typography and layout.
* The bar now follows each structure's brand colour and no longer bundles the old exported CSS/JS (lighter footprint on the host site).
* Functionality unchanged: it still submits arrival, nights, houses, guests and kids to the booking page.

= 1.28.0 =
* Asset cache-busting aligned with the plugin version.
