=== MyBookSlot ===
Contributors: codepower2026
Tags: booking, calendar, appointments, scheduling, embed
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.1.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Booking pages for small teams, embedded in WordPress via shortcode or Gutenberg block.

== Description ==

MyBookSlot is hosted online booking for independent professionals and small teams — one flat price for up to 15 people. Clients book in their own language and time zone. Google and Apple calendar sync, plus email and SMS reminders, keep everyone on schedule.

This plugin embeds a MyBookSlot booking page on any WordPress post or page with a shortcode or Gutenberg block. Choose an inline calendar, a floating book button, or a click-to-open button.

A free plan is available. Team includes a 14-day trial with no card required. Create your booking page at [mybookslot.com](https://mybookslot.com/).

= Features =

* Shortcode `[mybookslot]` (alias `[mbs]`)
* Gutenberg block “MyBookSlot Embed”
* Settings page for default booking path and layout
* Layouts: inline, floating button, element-click
* Loads the MyBookSlot embed only on pages that use the shortcode or block

= Shortcode examples =

`[mybookslot link="alex" type="inline"]`

`[mbs link="alex/30min" type="floating" text="Book a call"]`

= Staging override =

Define `MYBOOKSLOT_EMBED_JS_URL` in `wp-config.php`, or use the `mybookslot_embed_js_url` filter, to point the embed script at a staging origin.

Operated by [Codepower OÜ](https://codepower.io/) (Estonia).

== Installation ==

1. Upload the `mybookslot` folder to `/wp-content/plugins/`, or install the zip via Plugins → Add New → Upload.
2. Activate the plugin through the Plugins menu.
3. Go to Settings → MyBookSlot and set your default booking path (for example `username` or `username/30min`).
4. Add the shortcode or the MyBookSlot Embed block to a page.

== Frequently Asked Questions ==

= Do I need a MyBookSlot account? =

Yes. Sign up at [mybookslot.com](https://mybookslot.com/), create your event types, then paste the booking path into the plugin settings, shortcode, or block.

= Is there a free plan? =

Yes. MyBookSlot offers a free plan. Team includes a 14-day trial with no card required. See [mybookslot.com](https://mybookslot.com/) for current plans.

= Where is booking data hosted? Is it GDPR-friendly? =

Booking data is processed by MyBookSlot and hosted on Contabo in Germany (EU). See the [Privacy Policy](https://mybookslot.com/privacy) and [Terms](https://mybookslot.com/terms).

= Can I embed a team booking page? =

Yes. Use a team booking path the same way as a personal path (for example `team/event-slug`).

= Which languages does the booking page support? =

Clients can book in their preferred language and time zone. The WordPress plugin UI strings use the `mybookslot` text domain for translation.

= Where do I find my booking path? =

Sign in at [mybookslot.com](https://mybookslot.com/), open your event types, and copy the path (for example `username/30min`).

= Can I use this on a staging site? =

Yes. Point the embed script at your staging origin with the `MYBOOKSLOT_EMBED_JS_URL` constant or the `mybookslot_embed_js_url` filter.

== Screenshots ==

1. Booking page embedded inline on a WordPress page
2. Floating book button opening the booking modal
3. MyBookSlot Embed block in the block editor
4. Settings page (default booking path and layout)

== External services ==

This plugin embeds booking UI from **MyBookSlot** (https://mybookslot.com/).

* **What is loaded:** the browser loads `https://mybookslot.com/embed/embed.js` and a booking iframe from mybookslot.com.
* **What data is sent:** the plugin itself does not send your WordPress site data to MyBookSlot. Visitors enter booking details (such as name, email, and any questions you configured) on mybookslot.com inside the embed; those details are submitted to MyBookSlot so the appointment can be created.
* **When:** only on pages or posts that contain the `[mybookslot]` / `[mbs]` shortcode or the MyBookSlot Embed block. Pages without the embed do not load the script.
* **Terms of Service:** https://mybookslot.com/terms
* **Privacy Policy:** https://mybookslot.com/privacy

== Changelog ==

= 1.1.1 =
* Improve WordPress.org readme: product description, FAQ, screenshots, upgrade notice.
* Strengthen External services disclosure (what is loaded, what the plugin sends, when).
* Refresh wp.org assets (banners, icons, screenshots).

= 1.1.0 =
* WordPress.org readiness: GPLv2, metadata, uninstall.php, block.json.
* Register embed.js via wp_register_script / wp_add_inline_script (no raw script tags).
* Validate layout type; safer inline container styles.
* Document external services; remove affiliate promo from readme/settings.

= 1.0.1 =
* Document affiliate program on the settings page and readme.

= 1.0.0 =
* Initial release: shortcode, Gutenberg block, settings page.

== Upgrade Notice ==

= 1.1.1 =
Documentation and wp.org assets refresh for directory submission readiness. No functional changes.

= 1.1.0 =
WordPress.org readiness: safer script loading, uninstall cleanup, and external services disclosure.
