=== Frenchy Patient Contact Button for Medical Clinics ===
Contributors: frenchysystems
Tags: contact button, clinic, medical, healthcare, whatsapp
Requires at least: 6.0
Tested up to: 6.9
Stable tag: 1.0.1
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

The smart contact button that knows when your clinic is open — and when it's not.

== Description ==

Patient Contact Button for Medical Clinics adds a smart floating contact button to your clinic website. Unlike generic contact plugins, this one understands how private clinics work: split schedules (morning and afternoon shifts), temporary closures for holidays, and multiple contact channels for different patient needs.

**Key features:**

* **Smart schedule logic** — configure morning and afternoon shifts for each day of the week. The button automatically shows a different message when the clinic is closed.
* **Split schedule support** — built for clinics that open in the morning and re-open in the afternoon, with a break in between.
* **Temporary closure mode** — set a date range for holidays or exceptional closures with a custom message for patients.
* **Multiple contact channels** — messaging app, direct call, and Google Business Profile review link.
* **Smart channel visibility** — the call button is hidden when the clinic is closed (no one picks up). The review button is always visible. The message channel works at any time with a different pre-filled text depending on whether the clinic is open or not.
* **Mobile and desktop control** — show or hide the button independently on each device type.
* **Translation-ready. Spanish defaults included.** All visible texts are editable from the admin panel.
* **International phone support** — country selector with the most common countries. Works for any clinic worldwide.
* **No external API calls. No database tables. No tracking.** Everything stored in wp_options.

Developed by [Frenchy.es](https://frenchy.es) — part of PLANORA, the patient acquisition system for private clinics.

== Installation ==

1. Upload the \`frenchy-patient-contact-button\` folder to \`/wp-content/plugins/\`
2. Activate the plugin from the **Plugins** menu in WordPress
3. Go to **Settings → Patient Contact Button** to configure your clinic's schedule and contact channels

== Frequently Asked Questions ==

= Does this plugin work with all WordPress themes? =
Yes. The button appears automatically on all pages of your website, regardless of the theme you use.

= Is the plugin available in Spanish? =
Yes. All texts in the admin panel and the button itself are in Spanish by default. You can also edit any text from the settings panel.

= Is it difficult to set up? =
No. Just enter your schedule, your WhatsApp or phone number, and activate the channels you want. The button will be live on your website in less than 5 minutes.

= Can I use it without WhatsApp? =
Yes. You can activate only the direct call channel or the Google review link, or any combination of the three channels.

= Does the plugin store any visitor data? =
No. The plugin does not collect, store or transmit any visitor data. It simply generates links that open in the visitor's device.

= What happens when the clinic is closed? =
The message channel shows a different pre-filled text ("Hi, could you contact me when you open?"). The call button is hidden. The review button remains visible.

= Does it work for clinics outside Spain? =
Yes. The country selector supports the most common countries and a custom-prefix field for any other country.

== Screenshots ==

1. Floating contact button on a clinic website — open state with menu expanded
2. Floating contact button — closed state
3. Admin panel — Schedule configuration with split morning/afternoon shifts
4. Admin panel — Contact channels configuration
5. Admin panel — Temporary closure configuration

== Changelog ==

= 1.0.1 =
* Fix admin schedule shift toggles reliability in WordPress admin.

= 1.0.0 =
* Initial release

== Upgrade Notice ==

= 1.0.1 =
Maintenance release with admin fixes.

= 1.0.0 =
Initial release.
