=== ICWT Responsive Device Preview ===
Contributors: incodewetrust
Tags: preview, responsive, tablet, mobile, device
Requires at least: 5.0
Tested up to: 7.0
Stable tag: 1.5.6
Requires PHP: 7.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Enhances the built-in WordPress editor preview with a device selection for the frontend preview. Works with classic and block editor.

== Description ==

ICWT Responsive Device Preview allows you to preview your posts and pages in different device sizes (Desktop, Tablet, Mobile) directly from the standard WordPress preview link.

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/icwt-responsive-device-preview` directory, or install the plugin through the WordPress plugins screen directly.
2. Activate the plugin through the 'Plugins' screen in WordPress.

== Screenshots ==

1. The ICWT Responsive Device Preview controls at the bottom of the preview page.

== Changelog ==

= 1.5.6 - 22.07.2026 =
* Migrated state management from cookies to user meta and localStorage for better reliability.
* Added an admin bar menu to easily enable or disable the device preview.
* Added a button to hide the preview toolbar.
* Improved asset enqueuing with file-based versioning to prevent caching issues.
* Updated German translations and synchronized translation files with source code.

= 1.5.5 - 21.07.2026 =
* Restricted plugin frontend functionality and assets to users with `edit_posts` capability for improved security.

= 1.5.4 - 21.07.2026 =
* Updated internal link modification to use `icwt_responsive_device_preview` parameter for better consistency.
* Improved regex check to avoid double-modifying links.

= 1.5.3 - 21.07.2026 =
* Configured the preview iframe to load links in the parent window using `<base target="_parent">`.

= 1.5.2 - 21.07.2026 =
* Fixed an issue where preview parameters were incorrectly added to admin toolbar links.
* Prevented the device selection toolbar from being active in the WordPress admin backend.
* Improved link filtering to skip common asset extensions and admin-specific links.

= 1.5.1 - 20.07.2026 =
* Switched to modern WordPress internationalization approach using Domain Path and automatic translation loading.
* Removed discouraged load_plugin_textdomain() function call.

= 1.5 - 20.07.2026 =
* Enhanced security with nonce verification and proper data unslashing.
* Added mandatory "translators:" comments for internationalized strings with placeholders.
* Implemented persistent responsive preview mode across frontend navigation.
* Added a dedicated drag handle for better toolbar positioning.
* Improved admin toolbar visibility management for all device views.
* Enhanced UI with smooth transitions and hover-expanding credits.
* Added German translation support.
* Added a settings link to the plugin overview page.

= 1.4 - 14.07.2026 =
* Adhered to WordPress best practices by enqueuing CSS and JS instead of using inline tags.
* Moved static assets to dedicated `assets/css/` and `assets/js/` directories.

= 1.3 - 14.07.2026 =
* Renamed plugin to "ICWT Responsive Device Preview".
* Updated plugin slug and text domain to `icwt-responsive-device-preview`.
* Updated all internal identifiers and labels for consistency.

= 1.2 - 14.07.2026 =
* Renamed plugin to "ICWT Device Preview".
* Updated plugin slug and text domain to `icwt-device-preview`.
* Updated all internal identifiers and labels for consistency.

= 1.1 - 09.07.2026 =
* Added draggable controls for the preview bar (restricted to X-axis).
* Implemented persistence for device selection and control position.
* Enhanced security with nonce verification.
* Improved internationalization with mandatory translator comments.
* Added mandatory repository assets (icons and banners).

= 1.0 =
* Initial release.
