=== Self-Storage Connector for Hontas Manager ===
Contributors: hontasbox, anthoooo
Tags: self-storage, booking, api, shortcode, tenant
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.6
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Official WordPress connector for the Hontas Manager API: storage sites, online booking, tenant account area, and lead forms.

== Description ==

**Self-Storage Connector for Hontas Manager** is the official WordPress extension published by **SAS Hontas box** (SIRET 817 918 642), the company behind the [Hontas Manager](https://hontasmanager.com/) platform for self-storage operators.

It bridges your WordPress site and **your** Hontas Manager instance. After you enter your API base URL and customer token, you can:

* List locations and available offers on your website.
* Let visitors create a tenant account, sign in, and track reservations.
* Send contact requests and prospect forms to your back office.
* Link your “account” and “box selection” pages for consistent navigation.

Public features are exposed through **shortcodes** (for example `[hontas_manager]`).

**Important:** this plugin requires a running Hontas Manager instance and valid API credentials. It is a connector; it does not replace the Hontas Manager SaaS application.

== Installation ==

1. Upload the plugin folder to `wp-content/plugins/` or install it from the Plugins screen.
2. Activate the plugin through the **Plugins** menu in WordPress.
3. Open **Hontas Connector** in the admin menu (settings page title: Self-Storage Connector for Hontas Manager).
4. Set:
   * **API base URL** (e.g. `https://your-domain.tld` without the `/api/...` path);
   * **Customer token** provided by your Hontas Manager administrator;
   * Optional URLs for the **tenant account** and **box selection** pages used in internal links.
5. Place the documented shortcodes on the pages you need.

== Frequently Asked Questions ==

= Who develops this plugin? =

SAS Hontas box (29 Avenue du Lycée, 33400 Talence, France). Contact: hontasbox@hontas.fr. This is the official connector for the Hontas Manager product; it is not a third-party integration.

= Do I only need a WordPress.org account? =

No. You need an **API customer token** issued from your Hontas Manager operator space. The plugin does not create that account for you.

= Where is the API URL? =

It is the public URL of your Hontas Manager instance (as described in your setup documentation). If unsure, ask whoever hosts your Hontas Manager instance.

= Does the plugin send data off my site? =

Yes. Forms and API calls (login, reservations, prospects, contact, etc.) reach **your** Hontas Manager server at the configured base URL. Data is not sent to WordPress.org.

= Can I translate the UI? =

The text domain is `self-storage-connector-hontas-manager`. You can ship `.mo` files under `wp-content/languages/plugins/` or use a translation plugin.

== Screenshots ==

1. Settings: API base URL, customer token, and optional account / box page URLs.
2. Example front-end listing of sites and offers (shortcodes).
3. Tenant journey: login, reservations, and documents depending on your Hontas Manager configuration.

*(Replace with real screenshots in the `assets/` directory of your WordPress.org SVN checkout when you publish.)*

== Changelog ==

= 1.0.6 =
* Load bundled translations via `load_plugin_textdomain()` so French (`fr_FR`) locale files are applied.

= 1.0.5 =
* French translation files (`languages/self-storage-connector-hontas-manager-fr_FR.po` and `.mo`).

= 1.0.4 =
* Shortcode/filter returns: call account renderer directly (no do_shortcode) and apply wp_kses on public HTML output.
* intl-tel-input updated to 25.15.0.

= 1.0.3 =
* WordPress.org review: enqueue contact/locations CSS and JS (no inline style/script tags).
* Sanitize video embed HTML with wp_kses before output.
* Update bundled Bootstrap to 5.3.8 and intl-tel-input to 23.1.1.

= 1.0.2 =
* Renamed for WordPress.org guidelines: display name and slug `self-storage-connector-hontas-manager`.
* Documented official publisher (SAS Hontas box). Author and text domain updated.

= 1.0.1 =
* WordPress.org metadata alignment and documentation.
* Added `readme.txt`, GPL `license.txt`, uninstall cleanup, and translation loading hook.

= 1.0.0 =
* Initial public release: API integration, shortcodes, tenant area, and forms.

== Upgrade Notice ==

= 1.0.6 =
Fixes loading of bundled French (fr_FR) translation files.

= 1.0.5 =
Adds bundled French (fr_FR) translation files.

= 1.0.4 =
Escaping and intl-tel-input library update for WordPress.org review.

= 1.0.3 =
Maintenance release for WordPress.org guidelines (assets enqueue, escaping, vendor updates).

= 1.0.2 =
If you previously installed a copy named `hontas-manager`, deactivate it and install this package instead. Shortcodes and stored options are unchanged.

== External services ==

This plugin talks to **the Hontas Manager instance you configure** (base URL + customer token). Requests target that host’s `/api/customer/...` endpoints.

* **Data sent:** depends on features used (login credentials, prospect details, contact messages, reservation data, etc.), only when an end user performs an action.
* **Terms:** governed by your agreement with the Hontas Manager operator and your privacy policy.
* **Front-end assets:** Bootstrap, Font Awesome, and intl-tel-input are bundled under `assets/vendor/` and loaded from your own site (no remote CDN).
