TBMS WordPress Plugin

Contributors: taxibasesoftware
Tags: taxi booking, private hire, booking engine, taxi dispatch, cab booking
Requires at least: 5.0
Tested up to: 6.9
Stable tag: 3.3.2
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

TBMS booking and dispatch plugin for WordPress.

Description

TBMS Booking integrates the TBMS booking engine into your WordPress website via an iframe. It automatically creates a full-width booking page and provides a `[booking_engine]` shortcode for use anywhere on your site.

**Features:**
* Automatic booking page creation on activation
* Full-width, responsive iframe layout
* Optional hero section with customisable colours
* Admin settings panel for easy configuration
* Shortcode support for embedding anywhere

Installation

1. Upload the `tbms-booking` folder to `/wp-content/plugins/`.
2. Activate the plugin through the **Plugins** menu in WordPress.
3. Go to **Booking Engine** in the admin menu to configure your settings.
4. A booking page is created automatically at `/booking`.

External Services

This plugin connects to external services operated by **TBMS**. By using this plugin, you agree to the terms and privacy policies of these services.

= TBMS Booking Engine =

* **What it is:** A hosted booking and dispatch platform for taxi and private hire operators.
* **What it is used for:** The plugin embeds the booking engine interface into your WordPress site via an iframe so customers can make bookings directly on your website.
* **What data is sent and when:** When a visitor loads a page containing the `[booking_engine]` shortcode or the dedicated booking page, their browser loads the booking interface directly from `https://booker.taxibasesoftware.com/`. The plugin passes your site URL (`site_url`) as a query parameter so the booking engine can associate bookings with your account. No personal visitor data is collected or transmitted by the plugin itself.
* **Service provider:** TBMS
* **Service URL:** https://booker.taxibasesoftware.com/
* **Terms of Service:** https://taxibasesoftware.com/terms-of-service/
* **Privacy Policy:** https://taxibasesoftware.com/privacy-policy/

= iFrame Resize Widget Script =

* **What it is:** A JavaScript file hosted by TBMS used to dynamically resize the booking iframe to fit its content.
* **What it is used for:** The script listens for `postMessage` events from the iframe and adjusts the iframe height automatically, ensuring a seamless user experience without scroll bars.
* **What data is sent and when:** This script is loaded from `https://booker.taxibasesoftware.com/widget/iframewidget.js` on every page where the booking engine shortcode or booking page is displayed. No personal visitor data is transmitted by this script.
* **Service provider:** TBMS
* **Script URL:** https://booker.taxibasesoftware.com/widget/iframewidget.js
* **Terms of Service:** https://taxibasesoftware.com/terms-of-service/
* **Privacy Policy:** https://taxibasesoftware.com/privacy-policy/

Changelog

= 3.3.2 =
* Moved inline `<style>` block to `wp_add_inline_style()` via `wp_enqueue_scripts` hook
* Moved inline `<script>` block to `wp_add_inline_script()` via `wp_enqueue_scripts` hook
* Added full external service documentation for iframewidget.js in readme
* Added `phpcs:ignore` annotations for correctly-prefixed global variables (PHPCS false positives)
* Added `@package TBMS_Booking` docblock to resolve NonPrefixedClassFound warning
* Replaced `??` null coalescing with `isset()` ternary for broader PHP 7.x compatibility
* Replaced `urlencode()` with `rawurlencode()` for RFC-compliant URL encoding
* Removed `file_put_contents()` — template is bundled in plugin and never written at runtime

= 3.3.1 =
* Security & compliance updates for WordPress.org review
* Fixed all escaping, text domain, direct access, and file writing issues
* Improved external service documentation in readme
* Template now stored in options instead of plugin directory

= 3.1.0 =
* Added hero section with customisable colours
* Added full-width template support

= 3.0.0 =
* Initial public release

== Upgrade Notice ==

= 3.3.2 =
WordPress.org compliance update. Fixes inline style/script issues and adds full external service documentation. Recommended for all users.