=== QR Code for Current Page ===
Contributors: snehalpancholi
Tags: qr code, shortcode, qrcode, mobile, scan
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.1
Stable tag: 1.0.0
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Generate a QR code for the current page URL entirely client-side — no external API. Available as [qrcode] shortcode and optional floating button.

== Description ==

QR Code for Current Page generates a QR code for the current page URL using a built-in pure JavaScript QR code encoder. No external API calls or image services — everything runs in the visitor's browser and renders to an HTML5 `<canvas>` element.

**Features:**
* `[qrcode]` shortcode — embed a QR code anywhere in content
* Optional floating button with popover QR code panel
* Configurable size (64–512 px), foreground and background colours
* Select which post types show the floating button
* Configurable corner position for the floating button
* Pure client-side generation — fully GDPR safe, no third-party requests
* Supports URLs up to ~213 characters (QR version 10, level M)
* Settings page under **Settings → QR Code Page**

== Installation ==

1. Upload `qr-code-page` to `/wp-content/plugins/`.
2. Activate via the Plugins screen.
3. Go to **Settings → QR Code Page** to configure size, colours, and floating button.
4. Place `[qrcode]` in post content, or enable the floating button.

== Frequently Asked Questions ==

= How long can the URL be? =
Up to 213 bytes (QR version 10, error correction level M). Standard page URLs are well within this limit.

= Does it use any external service? =
No. The QR code is generated entirely in the visitor's browser using a bundled JavaScript encoder. No data leaves your site.

= Can I show a QR code for a custom URL? =
Yes: `[qrcode url="https://example.com"]`.

== Changelog ==

= 1.0.0 =
* Initial release.
