=== Logicrays Mailchimp Signup form with popup ===
Contributors: logicrays, priteshm
Tags: mailchimp, newsletter, signup, popup, email
Requires at least: 5.8
Tested up to: 7.1
Stable tag: 1.1.2
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Mailchimp subscriber form with modal popup, shortcode support, and a "don't show again" option.

== Description ==
**Logicrays Mailchimp Signup Form with Popup** is a lightweight, easy-to-use WordPress plugin that helps you grow your email subscriber list by connecting your website directly to your Mailchimp account.

With an elegant modal popup and simple shortcode implementation, you can capture leads and newsletter subscribers on any post, page, or widget.

### Key Features:
* **Direct Mailchimp Integration:** Connect seamlessly with the Mailchimp API v3 using your API key and Audience / List ID.
* **Modal Popup Form:** Display an attractive email subscription popup on any page using the `[LRM_WP_MAILCHIMP]` shortcode.
* **Customizable Texts:** Easily customize the popup's top title, subtitle, and submit button label from the admin settings.
* **"Don't Show Again" Option:** Includes a cookie-based checkbox so returning visitors aren't repeatedly prompted once dismissed.
* **Duplicate Subscriber Check:** Automatically checks if an entered email address is already subscribed to avoid duplicate entries.
* **Enable / Disable Toggle:** Quickly toggle the popup visibility on or off from the admin settings without removing the shortcode.
* **Clean & Lightweight:** Built using modern WordPress coding standards with secure nonce verification and sanitized input handling.

### How It Works:
1. Enter your Mailchimp API key and List ID in **LR Mailchimp settings**.
2. Customize your modal title, subtitle, and button text.
3. Paste the shortcode `[LRM_WP_MAILCHIMP]` into any post, page, or widget.

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/` or install it via the WordPress plugin installer.
2. Activate the plugin through the **Plugins** menu in WordPress.
3. Navigate to **LR Mailchimp settings** in your WordPress admin menu to configure your Mailchimp credentials and popup texts.
4. Add the shortcode `[LRM_WP_MAILCHIMP]` to any page, post, or widget where you want the subscription popup to appear.

== Frequently Asked Questions ==

= How do I display the popup? =

Add the shortcode `[LRM_WP_MAILCHIMP]` to any page, post, or widget area.

= Where do I configure Mailchimp settings? =

Go to **LR Mailchimp settings** in the WordPress admin menu to set your Mailchimp API Key, List ID, and customize form text.

= How does the "Don't show again" feature work? =

When visitors check "Don't show me again!", a secure browser cookie is stored so the popup will not be displayed to them on subsequent visits.

== Changelog ==

= 1.1.2 =
* Fixed form nonce verification scope.
* Updated compatibility tested up to WordPress 7.1.

= 1.1.1 =
* Refactored the plugin into object-oriented classes with a single bootstrap file.
* Moved scripts and styles to `wp_enqueue_scripts` / `admin_enqueue_scripts` instead of `wp_head`.
* Improved Mailchimp handling: check a single member by hash instead of listing all members.
* Broader internationalization, escaping, and admin UI cleanup (external admin CSS, `h1` titles).

= 1.1 =
* Security and coding standards improvements.
* Added nonce verification and input sanitization.
* Fixed Plugin Check issues.

== Upgrade Notice ==

= 1.1.2 =
Nonce verification and compatibility update.

= 1.1.1 =
Refactor and standards update; same shortcode and option keys.

= 1.1 =
Recommended security and standards update for all users.
