=== Energy Saver Smart === Contributors: ronchiluca Donate link: don't donate but be kind with the world Tags: energy saving, accessibility, idle timeout, overlay, multilingual Requires at least: 5.0 Tested up to: 6.9.4 Stable tag: 1.3.5 Requires PHP: 7.1 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Energy Saver Smart helps reducing carbon-impact. == Description == Energy Saver Smart dims the page after a configurable period of inactivity, helping you reduce the visual impact of idle sessions without interrupting active visitors. Version 1.3.5 fixes overlay timing when visitors return to a tab, prevents passive tab-reactivation events from immediately dismissing the overlay, and keeps the optional explicit resume mode that waits for a click or scroll. == Features == * Configurable idle timeout with validation. * Overlay enable/disable toggle. * Adjustable overlay background opacity. * Optional logo visibility. * Optional mobile disable. * Optional WooCommerce exclusions for cart, checkout, and account pages. * Manual exclusions by URL path and CSS selector. * Automatic suppression while users type in fields or play audio/video. * Per-language overlay messages for English, Italian, French, German, and Spanish. * Optional frontend language selection based on the visitor browser. * Support contact shown in plugin settings. * Clean uninstall routine. == Installation == 1. Upload the folder `energy-saver-smart` into `/wp-content/plugins/`. 2. Activate the plugin from the WordPress Plugins screen. 3. Go to `Settings > Energy Saver Smart` to configure the overlay. == Changelog == = 1.3.5 = * Fixed return-from-background-tab behavior so elapsed hidden time is honored. * Prevented passive focus restoration and incidental mouse movement from immediately dismissing the overlay. * Kept the optional explicit resume mode that requires a click or scroll to continue. = 1.3.5 = * Fixed idle-time tracking so time spent away from the tab is counted correctly. * Added an option to keep the overlay visible until the visitor clicks or scrolls. * Added a delayed resume reminder message shown 5 seconds after tab return when explicit resume mode is enabled. * Synced plugin version metadata to 1.3.5. = 1.3.3 = * Fix author name = 1.3.0 = * Added plugin translations for French, German, and Spanish. * Added browser-language frontend mode using the visitor browser language. * Added localized custom overlay messages for all supported languages. * Added new useful settings: global enable toggle, logo visibility, and overlay opacity. * Added a support and bug-report contact email in the settings page. * Added upgrade seeding for new settings while preserving legacy custom message content. = 1.2.0 = * Rebuilt the plugin structure with dedicated frontend and settings classes. * Added safe sanitization and validation for all saved options. * Replaced the jQuery polling logic with a lighter vanilla JavaScript timeout flow. * Moved CSS into a dedicated stylesheet and removed inline style injection. * Fixed logo loading by using plugin-relative asset URLs. * Added accessibility improvements, keyboard dismissal, and a resume button. * Added mobile disable, WooCommerce-sensitive page exclusions, URL path exclusions, and CSS selector exclusions. * Added uninstall cleanup and a settings shortcut link in the plugins list. * Updated plugin headers, text domain, versioning, and readme metadata. == Upgrade Notice == = 1.3.5 = This release fixes tab-return overlay timing and adds an optional click-or-scroll resume mode. = 1.3.0 = This release adds multilingual frontend options, more configurable overlay behavior, and visible support contact details.