=== eTermin Booking Integration ===
Contributors: eTermin
Tags: etermin, booking, appointment, calendar, schedule
Requires at least: 6.0
Tested up to: 7.0
Stable tag: 1.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Easily integrate the eTermin.net online appointment scheduling calendar into your WordPress website via Shortcode.

== Description ==

This plugin allows you to embed the **eTermin.net** online booking calendar directly into your WordPress pages or posts. It provides a simple settings page to store your WebID and a flexible shortcode for placement.

It automatically handles the integration via iFrame and includes the necessary scripts to adjust the height of the calendar dynamically.

== External Services ==

This plugin relies on the 3rd party service **eTermin.net** to function. It uses this service in two ways:

1.  **Booking Calendar (iFrame):** It embeds the calendar interface via an iFrame directly from `https://www.eTermin.net`.
2.  **Resizing Script:** It loads an external JavaScript file (`resizecustomersitescroll.min.js`) directly from `https://www.eTermin.net` to handle the automatic height adjustment of the calendar.

**Data Privacy Description**
When the calendar is loaded (via the Shortcode), the user's IP address and browser information (User Agent) are sent to `https://www.eTermin.net` to retrieve the calendar content and the Javascript file. This is required for the technical functionality of the service.

**Service Provider**
This service is provided by eTermin GmbH.
* [Terms of Service](https://www.etermin.net/en/online-appointment-scheduling-terms)
* [Privacy Policy](https://www.etermin.net/en/online-appointment-scheduling-privacy-policy)

== Installation ==

1.  Upload the plugin files to the `/wp-content/plugins/etermin-booking` directory, or install the plugin through the WordPress plugins screen.
2.  Activate the plugin through the 'Plugins' screen in WordPress.
3.  Go to the new menu item **eTermin** in your dashboard side menu.
4.  Enter your eTermin **WebID** (the suffix of your booking URL) and save changes.
5.  Use the shortcode `[etermin]` on any page or post to display the calendar.

== Frequently Asked Questions ==

= Do I need an eTermin account? =
Yes, you need an active account at eTermin.net to use this plugin. The plugin visualizes your existing calendar.

= Where do I find my WebID? =
Login to your eTermin dashboard. Look at the URL of your booking page (e.g., `https://www.etermin.net/my-practice`). The part after the slash (`my-practice`) is your WebID.

= Can I change the size of the calendar? =
Yes. The default height is 1600px, but it will try to auto-resize using the external script. You can force a starting height via shortcode: `[etermin height="1000px"]`.

== Screenshots ==

1. The settings page where you enter your WebID.
2. The calendar embedded on a page.

== Changelog ==

= 1.2 =
* Updated to use official eTermin resize script.
* Added detailed External Service disclosure to Readme regarding the external script loading.

= 1.1 =
* Added settings page for easier configuration.
* Fixed sanitization for settings.

= 1.0 =
* Initial release.