=== Little Notes ===
Contributors: jrmora
Tags: feedback, notes, revision, lightweight
Requires at least: 6.0
Tested up to: 7.0
Stable tag: 1.1.1
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Donate link: https://jrmora.com/

Lightweight frontend sticky notes for website revision, alerts, design feedback and notices.
Strictly optimized for desktop environments.

== Description ==

A lightweight, high-performance sticky notes system that allows administrators to leave pixel-perfect revision notes directly on the frontend using a simple shortcut.
**Little Notes** is designed for developers, designers, and site owners who need a clean, lightweight way to leave visual feedback, reminders, or informative alerts directly on the frontend of a website—without the bloat of heavy third-party platforms.
Unlike other feedback plugins that load massive scripts or alter your site's layout, Little Notes focuses strictly on performance.
If no notes are present or the user is navigating from a mobile device, **zero frontend code is loaded**.
**Key Features:**

* **Performance First:** Zero performance impact for regular desktop visitors when no notes are active. Complete code bypass on mobile layouts.
* **Elastic Positioning:** Notes dynamically recalculate their positions during window resizing or scrolling, staying pinned exactly where you placed them on desktop viewports.
* **Admin Dashboard:** Review all active notes across your pages and posts in a centralized table within your WordPress admin.
* **Quick Actions:** Delete notes for specific pages directly from the admin dashboard without visiting the frontend.
* **Clean Uninstall:** Deleting the plugin completely wipes all data from the `wp_options` table, leaving absolutely no database bloat behind.
* **Link Conversion:** Automatically detects URLs starting with `https://` or `http://` inside notes and turns them into clickable hyperlinks.

== Installation ==

1. Upload the `little-notes` folder to the `/wp-content/plugins/` directory, or upload the `.zip` file directly through the WordPress admin dashboard via **Plugins > Add New > Upload**.
2. Activate the plugin through the **Plugins** menu in WordPress.
3. Navigate to **Settings > Little Notes** to view your active notes dashboard.

**How to Use:**

1. Log in to your WordPress site as an administrator using a desktop computer.
2. Visit any page or post on the frontend.
3. Hold the **ALT key** and **Left-Click** anywhere on the page to pin a new sticky note.
4. Type your message and click OK.
5. To permanently delete a note, click the **×** icon on the note and confirm.
Regular desktop visitors can close notes temporarily during their session.

== Frequently Asked Questions ==

= Does this plugin create custom database tables? =
No. Little Notes saves all data natively inside the default `wp_options` table using serialized arrays mapped to post IDs, ensuring maximum compatibility and lightweight operations.

= Can regular visitors see the notes? =
Yes, any visitor using a desktop device can see active notes. This makes it useful not only for internal design revision but also for public notices, quick updates, or contextual call-to-actions.

= Does it load on mobile phones? =
No. To guarantee perfect viewport performance and avoid structural displacement caused by responsive text wrapping, the plugin completely disables its execution on mobile viewports using native core checking.

= Will it break my theme layout? =
No. The plugin renders notes inside an absolute pointer-events canvas overlay, meaning it hovers on top of your content without shifting margins, padding, or breaking your CSS structure.

== Screenshots ==

1. The centralized Admin Dashboard displaying all pages with active revision notes.
2. A frontend preview of a sticky note pinned seamlessly over the content.

== Changelog ==

= 1.1.1 =
* Fix: Patched session role verification to run execution checks in real-time on the client DOM. This completely bypasses page-cache engines (such as LiteSpeed Cache) that erroneously served administrative roles and unexpected database prompts to unauthenticated public visitors.

= 1.1.0 =
* Functional Pivot: Disabled completely on mobile viewports via `wp_is_mobile()` core enforcement.
* Added fallback CSS media queries to hide canvas elements below 768px viewports.
* Fixed event capture lifecycle bugs regarding dynamic coordinate shifts in responsive environments.

= 1.0.0 =
* Initial official release.
* Added Frontend ALT + Left-Click note placement.
* Added dynamic elastic positioning for window resizing and scrolling.
* Added Admin Dashboard with active notes overview and quick deletion.
* Added secure `uninstall.php` routine for complete database cleanup.

== Upgrade Notice ==

= 1.1.1 =
* Cache bypassing security release. Highly recommended for production environments utilizing full-page server caching to prevent unauthenticated database interaction triggers.

= 1.1.0 =
* Desktop-only enforcement release. Recommended for production environments to drop mobile asset tracking completely.

== Copyright ==

Little Notes is distributed under the terms of the GNU GPL v2 or later.