=== Floatsy — Chat Button Widget ===
Contributors: berkayyavuz61
Tags: whatsapp, chat button, floating chat, click to chat, telegram
Requires at least: 5.6
Tested up to: 7.1
Requires PHP: 7.0
Stable tag: 3.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Beautiful floating chat buttons for WhatsApp, Telegram, Instagram, Facebook, phone and email. WhatsApp popup, business hours, live preview.

== Description ==

**Floatsy** adds a beautiful, fully customizable floating chat button to your WordPress website. Visitors reach you in one tap on the messaging apps they already use. No coding — everything is set up from a modern admin panel with a live preview.

> 🌍 **11 admin panel languages**: English, Türkçe, 中文, Español, العربية, हिन्दी, Português, Русский, 日本語, Deutsch, Français

= Free features =

**Chat platforms**
* WhatsApp — WhatsApp-style popup chat or direct link
* Telegram, Instagram, Facebook Messenger
* Click-to-call phone and click-to-email buttons
* Show up to 2 platforms at the same time — one main button fans out into both

**WhatsApp popup chat**
* Agent name, profile photo and status text
* Welcome message and pre-filled message
* Online / offline status from your business hours

**Business hours**
* Working days and hours in your site's timezone (overnight shifts supported)
* Custom offline message

**Design**
* Circle and rounded-square shapes, solid and gradient styles
* Pulse animation, notification badge, tooltip
* Brand color per platform
* Live preview in the settings page

**Visibility**
* Show / hide on desktop and mobile — globally or per platform
* Hide on specific pages
* Display delay

= Floatsy PRO =

Upgrade from inside the plugin (Floatsy Chat → Upgrade) to unlock:

* **Unlimited platforms** at the same time + 9 more: Viber, Signal, LINE, Discord, TikTok, X, Snapchat, SMS and any custom link
* **WhatsApp team** — multiple agents with their own number, photo, role and working hours; visitors choose who to talk to
* **Click statistics** — clicks per platform and per day, widget opens and click-through rate, stored in your own database
* **Greeting bubble** — a friendly message pops up above the button after a few seconds
* **Smart triggers** — show the widget after scrolling or on exit intent, auto-open the chat
* **Dynamic messages** — {page_title}, {page_url}, {product_name}, {product_price} in pre-filled messages
* **All designs** — 5 extra shapes incl. "Pill + text" button, 5 extra styles (outline, glass, 3D, neon, ring), 6 attention animations, 3 sizes, custom icon, custom CSS
* **Advanced display rules** — logged-in users / guests, only on selected pages, hide on post types, hide on WooCommerce cart & checkout

== Installation ==

1. Go to **Plugins → Add New** and search for "Floatsy", or upload `floatsy-chat-widget.zip`
2. Activate the plugin
3. Go to **Floatsy Chat** in the left menu
4. Enable the platforms you want and enter your details
5. Click **Save Settings** — done!

== Frequently Asked Questions ==

= How do I set up WhatsApp? =

Go to the Platforms tab, enable WhatsApp and enter your phone number with country code, digits only. Example: 905551234567 for Turkey, 15551234567 for USA.

= How many platforms can I show? =

The free version shows up to 2 platforms at the same time (sites that had more enabled before version 3.0 keep them). Floatsy PRO removes the limit and adds 9 more platforms.

= What happens with multiple platforms? =

A single main button appears. Clicking it fans out all platform buttons with a smooth animation — no clutter on your site.

= How do business hours work? =

Enable Business Hours, choose working days and hours. Hours use the timezone from Settings → General. Outside those hours, the WhatsApp popup shows your offline message.

= Does it slow down my website? =

No. One small CSS and one small JS file (no jQuery) load only on pages where the widget is shown.

= Does Floatsy collect any data? =

The plugin uses the Freemius SDK. On activation you can choose to opt in to share basic, non-sensitive site data (WordPress and PHP version, plugin version, site URL and admin email) with the developer to get security and feature updates — or skip it. Nothing is sent if you skip. See the [Freemius privacy policy](https://freemius.com/privacy/).

Click statistics in Floatsy PRO are stored only in your own database — no cookies and no personal data.

= Can I change the admin panel language? =

Yes. Open the Language tab and pick one of 11 languages, including right-to-left Arabic.

== Screenshots ==

1. WhatsApp-style popup chat with agent photo and online status
2. One button fans out into all your chat platforms
3. Platforms tab — enable a platform and fill in your details
4. Appearance tab with live preview
5. PRO — WhatsApp team: visitors choose who to talk to
6. PRO — Greeting bubble and "Pill + text" button
7. PRO — Click statistics dashboard
8. Business hours in your own timezone

== Changelog ==

= 3.0.0 =
* NEW: Floatsy PRO (unlimited platforms, 9 more platforms, WhatsApp team, click statistics, greeting bubble, triggers, dynamic messages, more designs, display rules)
* NEW: Live preview in the Appearance tab
* NEW: Button styles (solid, gradient) and animation picker
* NEW: Profile photo for the WhatsApp popup
* NEW: Settings page remembers the open tab after saving
* IMPROVED: Redesigned buttons — smoother shadows, hover and open/close animation
* IMPROVED: Keyboard support — Escape closes the widget, buttons are real buttons
* IMPROVED: Admin panel no longer loads Google Fonts
* FIX: Business hours now use the site timezone instead of UTC, and support overnight hours
* FIX: The widget could be clicked while still hidden by the display delay
* FIX: Platform hints showed raw keys instead of text
* FIX: Chinese and Japanese admin translations were empty
* CHANGE: The free version shows up to 2 platforms at once; existing sites keep the platforms they already had enabled
* CHANGE: The optional Google Analytics usage ping from 2.1.0 was removed; opt-in usage data now goes through Freemius

= 2.1.0 =
* NEW: Optional, opt-in anonymous usage statistics
* IMPROVED: Missing translations now fall back to English

= 2.0.0 =
* NEW: Multi-platform support — WhatsApp, Telegram, Instagram, Facebook, Phone, Email
* NEW: Smart fan-out animation when multiple platforms are active
* NEW: Per-platform hide on mobile / hide on desktop controls
* NEW: Per-platform custom colors and labels
* IMPROVED: Admin panel redesigned with platform management cards
* IMPROVED: 11 admin panel languages (added Turkish)

= 1.0.0 =
* Initial release with WhatsApp floating button

== Upgrade Notice ==

= 3.0.0 =
Big update: new button designs, live preview, profile photo, timezone fix for business hours and Floatsy PRO. All your settings are kept.
