=== PosLimitless Booking === Contributors: poslimitless Tags: booking, reservation, escape-game, gift-card, events Requires at least: 5.8 Tested up to: 6.9 Requires PHP: 7.4 Stable tag: 2.6.20 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Online booking system, client portal, gift cards and events for leisure centers. == Description == PosLimitless Booking integrates PosLimitless booking modules directly into your WordPress site. **Included modules:** * **Booking** — Full booking system with calendar, time slot selection and online payment (Stripe, Monetico, Sogecommerce, CAWL) * **Confirmation** — Summary and payment page with promo codes, gift cards and options * **Client Portal** — Secure client portal with booking history, gift cards and photos * **Gift Card** — Online gift card purchase with customization and live preview * **Events** — Display public center events with registration **Features:** * 5 visual styles per module (Classic, Grid, Glassmorphism, Immersive, Dashboard) * Full customization of colors, fonts and effects * 6 pre-configured color packs * Live preview in the WordPress admin * Dark mode / light mode * Mobile responsive * Secure multi-gateway payment == Installation == 1. Upload the `poslimitless-booking` folder to `/wp-content/plugins/` 2. Activate the plugin in the Plugins menu 3. Go to PosLimitless > Configuration 4. Enter your Center ID and API Key (available in POS Limitless > API Keys) 5. Insert shortcodes into your pages == Shortcodes == * `[poslimitless_booking]` — Booking module * `[poslimitless_espace_client]` — Client portal * `[poslimitless_bon_cadeau]` — Gift cards * `[poslimitless_verif_bon_cadeau]` — Gift card balance check * `[poslimitless_roue_chance]` — Lucky wheel * `[poslimitless_event]` — Events == Frequently Asked Questions == = Where can I find my Center ID and API Key? = Log in to POS Limitless (poslimitless.web.app), go to Configuration > API Keys. You will find your Center ID there and can generate your API Key. = How do I customize the appearance? = Each module has its own appearance page in the PosLimitless menu. You can choose from 5 visual styles and customize all colors. = Which payment methods are supported? = Stripe, Monetico, Sogecommerce and CAWL. Configuration is done in POS Limitless. == Changelog == = 2.6.20 = * Confirmation: new "Blocs personnalisés" section in WordPress admin > PosLimitless > Confirmation appearance. Admins can configure up to 3 free-form rich-text blocks, each placeable independently at 4 possible positions in the confirmation funnel (before Vos coordonnées / before Envie d'aller plus loin / before Mode de paiement / before Finalisation). Each block has its own enable toggle, position selector, WYSIWYG content (bold, italic, underline, color, font size, alignment, lists, hyperlink, removeformat), optional background color, and optional image picked from the WP media library. Disabled blocks aren't rendered. The richtext sanitization allowlist was extended server-side with `

`, `

` (text-align) and `` (src whitelisted to http(s)/relative — blocks data:/javascript:), and the client `` parser was upgraded to map `font-size` (px/em/rem/%/pt, plus CSS named sizes) and `text-align` to safe React style props. Block cards inherit each view's native card style (Vue 1 → 5) so they visually blend with the rest of the funnel. = 2.6.19 = * Chat: the "displayed name" introduced in 2.6.18 is now a WordPress-local option instead of being stored in the POS Limitless backend. Changing it no longer requires a backend deployment — set it in PosLimitless > Configuration > Chat en direct > "Nom affiché dans le widget" (right next to the position selector), save, reload. The value is passed to the chat widget via wp_localize_script and overrides the center name on the fly. Backend-side `widgetTitle` field was removed. = 2.6.18 = * Chat: new "displayed name" field in WordPress admin > PosLimitless > Configuration > Chat en direct > Apparence. Lets the admin override the name shown in the chat widget header with a commercial / brand name (e.g. "Escape Room Paris") instead of the internal center name ("test"). Left empty, the widget falls back to the center name as before. 60-char max. = 2.6.17 = * Chat: new "email required" toggle in WordPress admin > PosLimitless > Configuration > Chat en direct. When enabled, the pre-chat email field is marked "(obligatoire)" instead of "(optionnel)", carries the HTML5 `required` attribute, and the widget validates the email format client-side before opening the conversation. When disabled (default), the email stays optional. The setting is pushed to and read from the backend chat config, so it applies uniformly across all entry points. = 2.6.16 = * Chat: fix view-switching regression introduced in 2.6.12. The `display: flex !important` rule added to the pre-chat container was beating the inline `style.display = "none"` that the widget's `showView()` sets when transitioning to the active conversation view. Result: after clicking "Démarrer la conversation", the pre-chat form stayed visible on top of the messages list and input zone — they all rendered stacked together. Removed the `!important` on `display` (kept it on `flex-direction` and `flex`) so JS can still toggle the view. = 2.6.15 = * Chat: form fields, welcome bubble, message list and footer were sticking to the left and right edges of the chat window because the widget's own internal `* { padding: 0 }` reset (specificity 1,0,1) was beating the per-container padding rules (specificity 0,1,0). All container paddings (header, welcome, pre-chat form, messages list, input zone, footer, individual message bubbles) are now forced with `!important` so they survive the cascade and the content gets proper side breathing room. = 2.6.14 = * Confirmation: the 3 payment-mode subtitles (configured per site in WordPress admin > PosLimitless > Confirmation appearance) are now rich-text. Plain `