=== Frontend Plugin Viewer & Shortcode Generator ===
Contributors: openai
Tags: shortcode, elementor, frontend, iframe
Requires at least: 6.0
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later

Register plugin page URLs and display them using protected shortcodes, including an optional Focus Mode.

== Installation ==
1. Upload the ZIP through Plugins > Add New Plugin > Upload Plugin.
2. Activate the plugin.
3. Open Frontend Plugin Viewer in the WordPress admin menu.
4. Add a configuration and copy its shortcode.
5. In Elementor, use the Shortcode widget and paste [fpv_page id="123"] with the ID generated by your site.

== Modes ==
Iframe: embeds a URL if the destination permits framing.
Native shortcode: runs a trusted shortcode supplied by an installed plugin.

Focus Mode: enable it in a page configuration to hide the WordPress toolbar on the frontend and attempt to hide the toolbar and Dashboard sidebar inside same-origin iframe pages. Browser security prevents styling cross-origin iframe contents. The destination plugin must still enforce its own login and permissions.

== Security notes ==
The shortcode checks login and configured capability before rendering. This does not grant access to wp-admin pages or bypass the target plugin's own permissions. Many WordPress admin pages send anti-framing headers and cannot be embedded. Use an official frontend shortcode or build a specific integration for those pages. Use only trusted URLs and native shortcodes.

== Example ==
[fpv_page id="123"]
[fpv_page id="123" height="900" width="100%" show_title="false"]
[fpv_page id="123" focus_mode="true"]
