=== AI Post Summarizer Lite for WordPress ===
Contributors: sabbir37
Tags: ai, summarize, tldr, post summary, content summary
Requires at least: 6.0
Tested up to: 7.1
Stable tag: 1.2.2
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Add an instant AI button to summarize WordPress posts. Provide quick TLDR summaries for readers. No API key needed. Works with ChatGPT & Google AI.

== Description ==

**The easiest way to add an AI-powered summary button to your WordPress blog posts - no API key, no subscriptions, zero server costs. 100% free.**

**AI Post Summarizer Lite** allows your visitors to instantly generate a concise **TLDR** (Too Long; Didn't Read) summary of any article with a single click. Powered by **ChatGPT** and **Google AI**, readers can digest long articles in seconds, boosting reader retention and engagement.

Modern web visitors scan before they read. Give your audience instant access to key takeaways while keeping your hosting lightning-fast and your privacy intact.

**Zero API Keys Required** · **100% Free** · **Client-Side Execution** · **GDPR & Privacy Safe**

= ⚡ Why Store Owners & Bloggers Choose This Plugin =

* **Zero API Keys Required** — Works instantly after activation. No OpenAI accounts, no Google Cloud setup, and no billing configurations.
* **Zero Server Overhead** — All AI prompt generation happens in the visitor's browser. Zero impact on your server CPU or hosting bill.
* **100% Privacy & GDPR Compliant** — No visitor data, cookies, or personal information is ever collected, stored, or transmitted to tracking servers.
* **Tested with WordPress 7.1** — Fully certified and compatible with modern WordPress releases.

= 🎯 Key Features =

* **One-Click Instant Summaries** — Visitors click once and get an instant AI-generated TLDR summary in a new tab.
* **ChatGPT & Google AI Support** — Let readers choose between OpenAI's ChatGPT or Google AI for their preferred summary experience.
* **Floating Action Button (FAB)** — Sleek floating widget that smoothly accompanies readers as they scroll through long articles.
* **Flexible In-Content Placement** — Display summary buttons before post content, after post content, or in both locations simultaneously.
* **Customizable Button Styles** — Match your website branding with Square, Rounded, or modern Pill button styles.
* **Granular Size Controls** — Independently adjust button size and typography size (Small, Medium, Large) for desktop and mobile devices.
* **Performance-First Design** — CSS and JS scripts are strictly conditionally loaded only on single post pages. Zero impact on sitewide speed.
* **Theme & Page Builder Friendly** — Works out-of-the-box with Gutenberg Block Editor, Classic Editor, Elementor, Divi, and standard WordPress themes.
* **Translation Ready** — Fully localized and internationalized for multilingual websites.

= 🔒 How It Works =

1. The plugin generates an unobtrusive "Summarize with AI" button on your selected posts.
2. When a reader clicks the button, a smart prompt is prepared using the post's title and article text.
3. The prompt opens directly in ChatGPT or Google AI in a new browser tab.
4. The AI instantly generates a concise, readable TLDR summary for the reader.

**No data ever touches external servers from your WordPress backend.** Everything executes securely on the client side.

= 🔐 Privacy & Data Protection =

AI Post Summarizer Lite is built from the ground up with data privacy principles:
* **No personal data collection** — No visitor metrics, IP addresses, or personal info are stored.
* **No cookies or trackers** — Completely cookie-free.
* **Direct client-to-service links** — Content is sent only via the user's explicit interaction.
* **100% Compliant** with GDPR, CCPA, and PECR regulations.

== Installation ==

= Automatic Installation =

1. In your WordPress admin dashboard, navigate to **Plugins > Add New**.
2. Search for **"AI Post Summarizer"**.
3. Click **Install Now**, then click **Activate**.
4. Navigate to **AI Summarizer** in your sidebar to configure button appearance and positioning.

= Manual Installation =

1. Download the plugin ZIP package.
2. In your WordPress admin dashboard, go to **Plugins > Add New > Upload Plugin**.
3. Choose the ZIP file and click **Install Now**, then **Activate**.
4. Go to **AI Summarizer** in your sidebar to customize your options.

== Frequently Asked Questions ==

= Do I need an OpenAI API key or paid subscription? =
No. That is the core advantage of AI Post Summarizer Lite. It utilizes client-side prompt routing directly to ChatGPT or Google AI. You do not need any API keys, tokens, or paid subscriptions.

= Will this plugin slow down my website? =
Not at all. The plugin assets (CSS and JS) are lightweight and conditionally loaded only on single post views where the button is enabled. It makes zero background API requests from your server, maintaining 100% PageSpeed and Core Web Vitals scores.

= Does it work with page builders like Elementor and Divi? =
Yes. The plugin integrates via WordPress standard content filters (`the_content`) and works smoothly alongside Gutenberg, Elementor, Divi, and other popular builders.

= Can I customize the button appearance? =
Yes. From the admin settings, you can choose between Square, Rounded, and Pill designs, select independent button and label sizes, configure button colors, and enable the Floating Action Button (FAB).

= Is this plugin GDPR compliant? =
Yes, 100%. The plugin sets no cookies, tracks no analytics, and does not transmit any visitor data to external servers.

= Does the AI summary get stored in my WordPress database? =
No. Summaries are dynamically generated in the user's browser session. No content or summary data is stored in your database, preventing database bloat.

== Screenshots ==

1. **Admin Settings Dashboard** — Clean, user-friendly options for button styling, positioning, and floating widget toggles.
2. **Post View with AI Buttons** — Branded ChatGPT and Google AI summary buttons displayed cleanly within article content.
3. **Floating Action Button (FAB)** — A subtle floating AI widget offering readers quick summaries while scrolling.
4. **Mobile Responsive Display** — Perfectly proportioned summary buttons on mobile screens.

== Changelog ==

= 1.2.2 =
* Compatibility: Officially tested and confirmed fully compatible with WordPress 7.1.
* Security: Hardened parameter validation and sanitization across all admin views.
* Performance: Optimized asset enqueuing logic to ensure minimal footprint on single post views.
* Enhancement: Refined repository tags and search discoverability.

= 1.2.1 =
* Improvement: Enhanced core features and UI responsiveness for a smoother administrative workflow.
* Compatibility: Officially tested and confirmed fully compatible with WordPress 7.0.

= 1.2.0 =
* Feature: Floating Action Button — Introduced a floating summary widget for instant AI access on any post.
* Improvement: Enhanced flexibility and customization options.
* Improvement: Core performance and reliability optimizations.

= 1.1.0 =
* Feature: Integrated Google AI alongside ChatGPT for one-click summaries.
* Feature: Added independent Label Size and Button Size controls.
* Security: Hardened file access with strict ABSPATH checks across all files.

= 1.0.0 =
* Initial public release on WordPress.org.
* One-click AI summary button for WordPress posts.
* 100% client-side operation with zero server load.
