=== Cal24h ===
Contributors: gvadev
Donate link: https://cal24h.com
Tags: booking, calendar, appointments, scheduling, events
Requires at least: 5.8
Tested up to: 6.8
Requires PHP: 7.4
Stable tag: 1.2.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Embed the Cal24h booking experience in WordPress with a shortcode, Gutenberg block, or floating modal.

== Description ==

Cal24h is an online booking platform that lets you publish event calendars, appointment forms, and catalogues. This plugin embeds any Cal24h organization or event on your WordPress site with just a shortcode or block, while offering a floating button modal for persistent calls to action.

**Highlights**

* Gutenberg block with an inspector panel to configure organization, event, language, and appearance.
* Shortcode `[cal24h]` supporting attributes for iframe or floating-button display modes.
* Settings page (`Settings → Cal24h`) to define default values such as organization slug, event slug, language, and colors.
* Theme personalization parameters for the stepper (primary colors, step labels, card backgrounds, stepper background).
* Responsive floating button that opens a customizable modal overlay.
* Ready-to-ship translations and language loading for both editor and front end. Included locales: ar, bn_BD, da_DK, de_DE, el, en_US, es_ES, fa_IR, fi, fr_FR, he_IL, hi_IN, id_ID, it_IT, ja, ko_KR, nb_NO, nl_NL, pa_IN, pt_BR, pt_PT, ru_RU, sv_SE, sw, tr_TR, ur, wo, zh_CN.
* Paste-friendly slugs: you can paste a full Cal24h URL (e.g., `https://cal24h.com/integration/org/event`) into settings or shortcode attributes — the plugin extracts the correct organization/event automatically.

== Installation ==

1. Upload the `cal24h` folder to the `/wp-content/plugins/` directory or install the ZIP via the WordPress dashboard.
2. Activate the plugin through the “Plugins” menu.
3. Go to “Settings → Cal24h” to enter your Cal24h organization or event identifiers, default language, and style options.
4. Add the `[cal24h]` shortcode or the “Cal24h” block to any page or post.
5. (Optional) Override shortcode attributes per instance to switch language, event, or modal display.

== Frequently Asked Questions ==

= Where do I find my organization or event slugs? =

The Cal24h dashboard lists the organization and event slugs in each record. Copy the slug you want to display and paste it into the plugin settings or shortcode/block attributes.

= Can I customize the floating button? =

Yes. You can change the button label, background color, text color, and placement (e.g. `fixed:bottom-right`, `fixed:top-left`, `absolute:bottom-right`) via the settings page or shortcode attributes.

= Does the plugin detect the visitor language automatically? =

You can define a default language in the settings. You may also pass a language code (for example `fr`, `en`, `es`) in the shortcode or block attributes to force a specific locale for that instance.

== Screenshots ==

1. Cal24h settings page inside the WordPress admin.
2. Gutenberg block with configuration options in the editor.
3. Floating Cal24h button displayed on the front end.

== Changelog ==

= 1.2.0 =
* Added stepper personalization parameters (primary/text colors, step labels, card backgrounds, stepper background) for shortcode, block, and default settings.

= 1.1.0 =
* Simplified slug handling: accept full Cal24h URLs and combined forms (e.g., `org/event`, `org:event`) in settings, shortcode, and block attributes.
* Added and bundled many translations (see list above) for editor and frontend strings.
* Improved asset loading to comply with WordPress best practices: front assets are registered globally and only enqueued when needed (or via a filter).
* Updated WordPress.org banner images.

= 1.0.0 =
* Initial public release of the Cal24h plugin.

== Upgrade Notice ==

= 1.2.0 =
Stepper personalization parameters added for theme customization.

= 1.1.0 =
Enhancements and translations added; improved asset loading and slug handling.

= 1.0.0 =
First public release.
