=== 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.2
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 floating chat button to your WordPress site, so visitors can reach you in one tap on the messaging app they already use — WhatsApp, Telegram, Instagram, Facebook Messenger, phone or email.

Most chat-button plugins show one button per app, or a single WhatsApp link. Floatsy puts all your channels behind **one tidy button** that fans out on click, and gives WhatsApp a real chat-style popup with your name, photo and online status.

= Why Floatsy? =

* **One button, every channel** — no stack of icons covering your page.
* **A popup that feels like WhatsApp** — welcome message, agent photo and online/offline status from your business hours.
* **Design it with a live preview** — see the button change as you edit, before you save.
* **Business hours that use your timezone** — overnight shifts supported.
* **Light and private** — one small CSS and one small JS file (no jQuery), loaded only where the widget is shown. No cookies, no external requests from your visitors' browsers.
* **11 admin 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.

= Does it work with caching plugins? =

Yes. The widget does not depend on the page being generated fresh — even the time shown in the chat bubble is set in the visitor's browser.

= Is it accessible? =

The buttons are real HTML buttons with labels, they work with the keyboard, and Escape closes the open widget. Animations are turned off for visitors who ask their system for reduced motion.

= What happens to my data if I delete the plugin? =

Deleting Floatsy from the Plugins screen removes its settings and statistics from your database. If another Floatsy copy is still installed (for example the free version next to PRO), nothing is removed, so your PRO setup stays intact.

= How do I get help? =

Post in the [support forum](https://wordpress.org/support/plugin/floatsy-chat-widget/) or use the "Contact Support" button in the plugin's settings page.

= 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.2 =
* NEW: "Contact Support" button in the settings sidebar
* NEW: Deleting the plugin now removes its settings and statistics (kept while another Floatsy copy is installed)
* IMPROVED: Admin panel fully translated into all 11 languages
* IMPROVED: Code follows the WordPress Coding Standards, with documentation for every function

= 3.0.1 =
* IMPROVED: After buying PRO, the settings page shows a one-click "Install PRO now" button instead of upgrade prompts

= 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.2 =
Complete translations for all 11 languages, a Contact Support button and cleaner code. No changes to how your widget looks.

= 3.0.1 =
One-click PRO installation after purchase.

= 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.
