=== CalenFox Booking ===
Contributors: calenfox
Tags: booking, appointments, scheduling, calendar, meetings
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Embed your CalenFox booking form into any page with a block or shortcode.

== Description ==

CalenFox Booking embeds the booking form from your CalenFox account into your
WordPress site, so visitors can schedule a meeting with you without leaving
your pages.

The plugin does not render the booking interface itself. It loads the embed
script from the CalenFox service, which means improvements to the booking form
reach your site without a plugin update.

= Features =

* Gutenberg block with a live preview inside the editor
* Shortcode for the classic editor and page builders
* Two formats: an inline form, or a button that opens the form in a modal
* Two views: your full profile page with every meeting type, or a single calendar
* The embedded form resizes itself to fit its content after loading
* Assets load only on pages that actually contain the form

= Usage =

Enter your CalenFox username under Settings → CalenFox, then either add the
"CalenFox Booking" block in the editor, or use the shortcode:

`[calenfox]`

For a specific meeting type shown as a modal button:

`[calenfox slug="your-username" type="12" mode="popup" label="Schedule a call"]`

= Shortcode attributes =

* `slug` — Your CalenFox username. Falls back to the value in the settings.
* `type` — Meeting type ID. When empty, all meeting types are listed.
* `view` — `profile` or `calendar`.
* `mode` — `inline` or `popup`.
* `height` — Initial height in pixels, between 300 and 3000.
* `label` — Text of the modal button.

== External services ==

This plugin connects to CalenFox, a third-party scheduling service, to display
your booking form. A CalenFox account is required.

What the plugin sends and loads:

* It loads the embed script from `https://calenfox.com/embed.js` on pages that
  contain the block or shortcode.
* It embeds `https://calenfox.com/<your-username>/embed` in an iframe. This
  request is made by the visitor's browser and includes the data any web
  request includes, such as IP address and user agent.
* Data your visitors enter into the booking form (such as name, email address
  and answers to your questions) is submitted to CalenFox, not to your
  WordPress site. This plugin does not store that data.

No data is sent to CalenFox from pages that do not contain the block or
shortcode.

Service provider: CalenFox
Terms of service: https://calenfox.com/kullanim-kosullari
Privacy policy: https://calenfox.com/gizlilik-politikasi

If you run your own CalenFox installation, you can point the plugin at it under
Settings → CalenFox → Server address.

== Frequently Asked Questions ==

= Do I need a CalenFox account? =

Yes. A free account is enough.

= Can I change the button colour? =

Yes. Add this to your theme's custom CSS:

`.calenfox-popup-button { --calenfox-color: #0f766e; --calenfox-color-dark: #115e59; }`

= I run my own CalenFox installation =

Enter its address under Settings → CalenFox → Server address.

= Does the plugin slow down my site? =

The embed script and stylesheet are only enqueued on pages that contain the
block or shortcode. Other pages load nothing.

== Changelog ==

= 1.0.0 =
* Initial release.
