=== Kafash Editorial Enhancer (Lite) ===
Contributors: mkafash61
Donate link: https://marketingplus.ir/
Tags: gutenberg, toc, faq, schema, woocommerce
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Stable tag: 1.2.29
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Per-post editorial enhancements for Gutenberg: TOC, FAQ schema, responsive tables, quote styles, product box, and related posts.

== Description ==

Kafash Editorial Enhancer (Lite) improves the presentation of your WordPress content with per-article toggles.

Features:
* Per-article enhancements (via metabox):
  * H2 color
  * Quote / Pullquote styling (Gutenberg)
  * Table styling + responsive wrapper
  * FAQ (display) + optional JSON-LD schema output
  * TOC (table of contents) with automatic anchors
* Product box shortcode:
  * [kafee_product id="123"] or [kafee_product sku="ABC-123"]
  * CSS scoped to .ae-product-box
  * Inline SVG icons (no external icon fonts)
* Related posts (manual + optional auto mode):
  * Select posts/pages manually, drag & reorder
  * Insert automatically by position OR place [kafee_related] manually

Notes:
* Designed to be cache/optimization friendly.
* Admin search endpoints are protected with nonce + capability checks.

Plugin homepage: https://marketingplus.ir/

A Pro version is available with additional layouts and workflow options. See the plugin homepage for details.

== Installation ==

1. Upload the plugin folder to /wp-content/plugins/ or install via the Plugins screen.
2. Activate the plugin.
3. Edit a post/page and use the metabox to enable the enhancements you want.

== Frequently Asked Questions ==

= Does this plugin require WooCommerce? =
Only the product box shortcode needs WooCommerce. Other features work without it.

= Can I place TOC / Related posts manually? =
Yes. Use [kafee_toc] and [kafee_related] shortcodes for manual placement.

== Screenshots ==

1. Metabox controls in the editor.
2. Related posts picker (manual + drag reorder).
3. Frontend TOC and FAQ styles.
4. Product box output.

== Changelog ==

= 1.2.29 =
* Plugin Check: avoid direct access to superglobals when resolving the current post ID in admin (addresses nonce verification warnings).

= 1.2.26 =
* Fix: adjust the editor toggle banner to avoid overlapping WordPress Screen Options/Help panels (non-sticky, layout-friendly).

= 1.2.25 =
* Fix: ensure the per-article "Enable enhancements" toggle is always visible in Gutenberg (sticky top bar) and saves reliably via REST.
* Fix: ship missing admin asset files referenced by the plugin (admin.js/admin.css).

= 1.2.24 =
* Admin UX: move the per-post "Enable enhancements" toggle to the top of the editor screen (with meta box fallback).
* Plugin headers: update Plugin URI to a public, working URL.

= 1.2.23 =
* Prefix hardening: migrate legacy ae_* meta keys and shortcodes to uniquely prefixed kafee_* identifiers for WordPress.org compliance.

= 1.2.22 =
* Readme: document availability of a Pro version.

= 1.2.21 =
* Admin product picker: use WooCommerce data-store search helpers (avoid slow-query flags for meta_key/meta_value in plugin checks).

= 1.2.20 =
* WordPress.org submission prep: i18n folder, readme cleanup, and plugin-check compatibility.

== Upgrade Notice ==

= 1.2.29 =
Fixes Plugin Check warnings related to superglobal access in the admin.

= 1.2.26 =
Improves the editor toggle banner layout so it does not overlap WordPress admin panels.

= 1.2.24 =
Moves the per-post activation toggle to the top of the editor screen.

= 1.2.23 =
Prefix hardening update.

= 1.2.22 =
Readme update.

= 1.2.21 =
Improves admin product search implementation for better compatibility with WordPress.org plugin checks.
