=== Slide Crafter Reborn ===

Contributors: tlloancy
Donate link: https://donorbox.org/wordpress-plugins
Tags: slider, responsive, parametric, slides
Requires at least: 5.0
Tested up to: 6.9
Stable tag: 1.4.4
Requires PHP: 7.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Create responsive sliders with a secure, customizable interface.

== Description ==
**Slide Crafter Reborn** allows you to create and manage responsive sliders using a custom post type. Features include:
- **Parametric Customization**: Configure slides per view, spacing, loop, pagination, navigation, autoplay, speed, animation type, and custom CSS.
- **Responsive Sliders**: Powered by Swiper, ensuring compatibility across devices.
- **Dynamic Cards**: Add up to 10 cards with a user-friendly repeater interface.
- **Easy Integration**: Use the `[slidecrafterreborn_slide id="X"]` shortcode, displayed in the admin list.
- **User-Friendly**: Immediate slide ID display, real-time preview, and clear save/update feedback.

== Installation ==
1. Upload the `slide-crafter-reborn` folder to `/wp-content/plugins/`.
2. Activate the plugin via the WordPress 'Plugins' page.
3. Create sliders under the "Slides" menu in the WordPress admin.

== Frequently Asked Questions ==
= How do I customize sliders? =
Use the settings form in the slide editor to adjust slides per view, spacing, loop, pagination, navigation, autoplay, speed, animation type, and add up to 10 cards.

= Is it secure? =
Yes, the plugin avoids arbitrary code inputs and uses WordPress sanitization functions.

== Changelog ==
= 1.4.4 =
April 29, 2026:
* Fix: Corrected AJAX product search filtering. The search term is now properly captured using $_REQUEST, ensuring results match the user's input (e.g., searching for "honey" no longer returns "carrots").
* Improvement: JavaScript Localization. Placeholders and messages are now dynamically handled via wp_localize_script for full translation support.

= 1.4.3 =
April 26:
* Fix: Woo Features on preview and shortcode are now correctly synchronized.

= 1.4.2 =
* Fix: Replaced obsolete copy clipboard API that is not compatible with Brave Browser

= 1.4.1 =
* New: Added a copy button to easily copy the shortcode

= 1.4.0 =
* New Feature: Added "Import WooCommerce Product" in Manual Mode. You can now fetch any product to generate a rich HTML card (title, image, price, and link) that remains fully editable.
* Fixed: Resolved rendering glitches and layout breaks when switching between transition effects (Fade, Cube, Slide) in the real-time preview.
* Improvement: Cleaned up the product HTML template to ensure consistent image sizing and proper link wrapping.

= 1.3.0 =
* New Feature: Added WooCommerce integration. You can now pull "Featured Products" automatically.
* New Feature: Real-time preview switching between manual HTML cards and dynamic products.
* Improvement: Deep refactor of the admin JS to handle Swiper instance destruction and reconstruction for a smoother UI.
* Fixed: Corrected CSS layout issues when switching slider sources without page refresh.

= 1.2.0 =
* Major architecture update: Migrated data storage from wp_options to wp_postmeta for better performance and scalability.

= 1.1.1 =
* Fixed a regression in shortcode result display.

= 1.1.0 =
* Improved code display.
* Simplify code especially for css encapsulation purposes.

= 1.0.5 =
* Removed or commented `wp_cache_flush()` in `includes/cpt.php` to prevent interference with WordPress cron tasks, improving reliability of scheduled tasks.

= 1.0.4 =
* Fixed debug log pollution by restricting logging to ERROR level by default, downgrading non-critical logs to DEBUG.

= 1.0.3 =
* Fixed fatal error caused by duplicate `slidecrafterreborn_unescape_html` function definition by removing it from `meta-boxes.php`.

= 1.0.2 =
* Fixed excessive escaping of special characters in card content, ensuring proper display (e.g., `d'affinage` instead of `d\'affinage`).
* Optimized debug logging to reduce log pollution by making logs conditional on WP_DEBUG and introducing log levels.
* Added cleanup for unnecessary HTML tags (<br>, empty <p>) in card content.
* Added database cleanup script to fix existing escaped content on plugin activation.

= 1.0.1 =
* Fixed shortcode is displayed properly as in the preview.

= 1.0.0 =
* Initial release with parametric slider creation and Swiper integration.
* Fixed missing form elements error in admin.js.
* Corrected CPT mismatch from scrslide to scr_slide.
* Ensured continuous preview looping with Swiper.
* Polished UI with gold accents and smooth transitions.
* Optimized save system using wp_options.

== Source Code ==
Non-minified source code is available at: https://github.com/tlloancy/slide-crafter-reborn
To build the plugin:
