=== AD Pro Forms ===
Contributors: altaydagistan, freemius
Tags: contact form, forms, form builder, drag and drop
Requires at least: 5.0
Tested up to: 6.9
Requires PHP: 7.2
Stable tag: 1.1.3
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

A lightweight WordPress contact form plugin with a drag-and-drop builder, entry management, spam protection, and email notifications.

== Description ==

AD Pro Forms is a lightweight, fast, and secure WordPress contact form plugin.

**Free features include:**

* **Visual Form Builder** — Drag-and-drop interface to create forms without writing code
* **Unlimited Forms** — Create and manage as many forms as you need
* **Field Types** — Text, email, phone, number, textarea, radio, checkbox, select, and HTML text fields
* **Entry Management** — View, expand, mark as read/unread, and delete individual entries in the admin
* **Admin Email Notifications** — Automatic notification to the site admin on every form submission
* **Spam Protection** — Built-in honeypot field and rate limiting on every form
* **Shortcode Support** — Embed any form anywhere with `[adpf_form id="your-form-id"]`
* **Lightweight & Fast** — CSS and JS assets load only on pages where a form is present

**Pro version features** (separate plugin, available at [https://altaydagistan.com/ad-pro-forms-constructeur-de-formulaires-wordpress/])

* **User Confirmation Emails** — Automatically send a professional confirmation to every form submitter
* **HTML Email Notifications** — Fully branded HTML emails with logo, custom colors, and dynamic placeholders. Includes live preview and one-click test send
* **Per-form Recipients & Custom Templates** — Customise subject lines and message content. Route each form's notifications to a different inbox
* **Custom Redirect URL** — Send visitors to any thank-you page or funnel step after submission
* **CSV Export** — Download all entries as a clean, structured spreadsheet
* **Advanced Entry Management** — Filter by form or read/unread status. Bulk-mark as read or bulk-delete in one action
* **Global Styling Panel** — Full control over colors, typography, spacing, borders, and backdrop blur — applied across all forms at once
* **Cloudflare Turnstile** — Invisible, frictionless bot protection powered by Cloudflare
* **Form Duplication** — Clone any form in one click — a massive time-saver for designers and agencies
* **Field Reordering** — Move fields step-by-step with arrow controls, confirmed with an animation on each move
* **White Label Mode** — Remove all plugin branding for client or agency use (Business plan)

== Installation ==

1. Upload the `ad-pro-forms` folder to `/wp-content/plugins/`
2. Activate the plugin via the **Plugins** menu in WordPress
3. Go to **AD Pro Forms > Forms** to create your first form
4. Copy the shortcode (e.g. `[adpf_form id="contact"]`) and paste it into any page or post
5. *(Optional)* Configure email settings under **AD Pro Forms > Settings**

== Frequently Asked Questions ==

= How do I display a form? =

After creating a form in **AD Pro Forms > Forms**, copy the shortcode shown in the form list and paste it into any page, post, or widget.

= Does this plugin store form submissions? =

Yes. All submissions are stored in your WordPress database and viewable under **AD Pro Forms > Form Entries**. The plugin itself does not send form data to any external server. See the Third Party Services section below for details on the Freemius SDK included in this plugin.

= What spam protection is included in the free version? =

Every form automatically includes a honeypot field and rate limiting. Cloudflare Turnstile (CAPTCHA-free bot protection) is available in the Pro version.

= Is this plugin GDPR-friendly? =

The plugin stores submission data (including IP address) in your database. You are responsible for disclosing this in your site's privacy policy. See the Privacy Policy section below for details on third-party data handling via Freemius.

== Third Party Services ==

This plugin integrates the **Freemius** SDK, which handles upgrade flows, plugin update delivery, and optional user feedback. Freemius runs on external servers operated by Freemius Ltd.

**What data may be sent:** When a site administrator opts in during the activation prompt, Freemius may collect non-sensitive technical data including the site URL, WordPress version, PHP version, and plugin version. No form submission data is ever shared with Freemius.

**Data collection is opt-in only** — nothing is transmitted without explicit administrator consent during the Freemius activation flow.

* Freemius Terms of Service: [https://freemius.com/terms/](https://freemius.com/terms/)
* Freemius Privacy Policy: [https://freemius.com/privacy/](https://freemius.com/privacy/)

Outside of Freemius, this plugin does **not** connect to any external servers. All form submission data is stored locally in your WordPress database only.

== Privacy Policy ==

This plugin stores form submission data (including the submitter's IP address and user agent) in your WordPress database. You are responsible for disclosing this in your site's privacy policy. For third-party data handling via the Freemius SDK, see the Third Party Services section above.

== Screenshots ==

1. Frontend contact form — user created contact for can be seen on the right of the screenshot.
2. Drag and Drop form builder.
3. Entry management dashboard.
4. Settings

== Changelog ==

= 1.1.3 =
* Improved About page layout
* Replaced Settings page upgrade window with the richer About page Pro card design
* Added Styling submenu with Colors, Layout, and Typography sections
* Colors: color pickers for Button/Accent, Text, Label, Border, Success, and Error colors
* Layout: range sliders for Border Radius, Field Padding, and Field Spacing
* Typography: Font Size slider and Label Position toggle (Above / Inside placeholder)
* Frontend CSS variables now read from saved styling settings instead of hardcoded defaults
* Button and field hover color auto-computed as a lighter shade of the primary color

= 1.1.2 =
* Improved admin UI: icons on buttons and tabs throughout the plugin
* Added 4px rounded corners consistently across tables, buttons, and panels
* Added Pro features upgrade card inside the form settings editor
* Rounded corners on forms list and entries tables

= 1.1.1 =
* Added French (fr_FR) translation
* Added dismissable review invitation notice for admins
* Updated Pro version feature list in About and Settings pages to reflect current features
* Fixed undefined array key warning on entries page

= 1.1.0 =
* Removed locked/gated UI to comply with WordPress.org Plugin Directory guidelines
* Enabled Freemius WordPress.org compatibility mode
* Improved third-party service documentation in readme

= 1.0.0 =
* Initial release
* Drag-and-drop form builder with text, email, phone, number, textarea, radio, checkbox, select, and HTML text fields
* Entry management: view, expand, mark as read/unread, delete
* Admin email notifications on form submission
* Honeypot spam protection and rate limiting
* Shortcode support: `[adpf_form id="..."]`
* Object cache support for database queries

== Upgrade Notice ==

= 1.1.3 =
New Styling panel with color pickers, layout sliders, and label position toggle. Improved About and Settings page UI.

= 1.1.2 =
Admin UI improvements: icons, rounded corners, and Pro upgrade card in form editor.

= 1.1.1 =
Minor content update.

= 1.1.0 =
Compliance update for the WordPress.org Plugin Directory.

= 1.0.0 =
Initial release.

