=== LR Feedback ===
Contributors: logicrays, priteshm
Tags: feedback, popup, contact form, form shortcode, button
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.1.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Add a fixed, fully customizable feedback button that opens a popup and renders any form shortcode.

== Description ==

LR Feedback helps you collect user feedback using a simple, lightweight popup UI.

Use your existing form plugin shortcode (for example Contact Form 7, WPForms, or Gravity Forms) and display it inside a popup that can be positioned on the left or right side of the screen. The button and popup styling — colors, font family, and font size — can be fully customized from the settings screen without writing any code.

= Features =

* Easy-to-use admin settings page under **Feedback**.
* One-click **Copy shortcode** button on the settings page.
* Add a custom feedback popup title.
* Add custom text for the floating tab button.
* Use any valid shortcode as popup content (Contact Form 7, WPForms, Gravity Forms, etc.).
* Left or right fixed button position.
* Customize the button background color with a built-in color picker.
* Customize the button text color with a built-in color picker.
* Choose from several predefined font families for the button and popup text.
* Choose the font size of the button text.
* Display anywhere with the `[LR_FEEDBACK]` shortcode.
* Translation ready.
* Clean, sanitized, and escaped output following WordPress coding standards.

= How it works =

1. Configure the popup title, tab text, shortcode, position, and styling from **Feedback** in the WordPress admin menu.
2. Add the `[LR_FEEDBACK]` shortcode to any page, post, or widget — or call it from a template file.
3. A fixed tab button appears on the front end. Clicking it opens a popup that renders your chosen form shortcode.

== Installation ==

= From your WordPress dashboard =

1. Go to **Plugins > Add New**.
2. Search for **LR Feedback**.
3. Click **Install Now**, then **Activate**.

= Manual installation =

1. Upload the `lr-feedback` folder to the `/wp-content/plugins/` directory, or upload the plugin zip file through **Plugins > Add New > Upload Plugin**.
2. Activate the plugin through the **Plugins** screen in WordPress.
3. Go to **Feedback** in the admin menu.
4. Configure:
   * Feedback title
   * Button tab text
   * Form shortcode
   * Form position (left/right)
   * Button background color
   * Button text color
   * Font family
   * Font size
5. Add `[LR_FEEDBACK]` to any page or post where you want the popup button, or use the **Copy shortcode** button on the settings screen.

== Frequently Asked Questions ==

= Can I use this with Contact Form 7 or other form plugins? =

Yes. Add the form shortcode of your favorite form plugin (Contact Form 7, WPForms, Gravity Forms, and similar) in **Feedback > Form Shortcode**, and LR Feedback will render it inside the popup.

= How do I display the feedback button on my site? =

Add the `[LR_FEEDBACK]` shortcode to any page, post, or widget area, or use the **Copy shortcode** button on the settings screen to copy it instantly. You can also call it from a theme template file with `<?php echo do_shortcode( '[LR_FEEDBACK]' ); ?>`.

= Can I change the button position, color, and font? =

Yes. Go to **Feedback** in the admin menu to set the button to the left or right side of the screen, pick a background and text color using the built-in color pickers, and choose a font family and font size from the dropdowns.

= Why is the popup not showing any form? =

Make sure you have saved a valid shortcode in **Feedback > Form Shortcode**. The floating tab button will not appear on the front end until a shortcode is set.

= Will this plugin work with my theme and page builder? =

Yes. LR Feedback only outputs a standard shortcode and lightweight CSS/JS, so it works with any properly coded theme and any page builder that supports shortcodes.

== Screenshots ==

1. screenshot-1.png
2. screenshot-2.png
3. screenshot-3.png

== Changelog ==

= 1.1.1 =
* New: Added Button Tab Text setting to customize the floating button label.
* New: Added Button Background Color setting with a built-in WordPress color picker.
* New: Added Button Text Color setting with a built-in WordPress color picker.
* New: Added Font Family setting with a curated list of web-safe fonts.
* New: Added Font Size setting for the button text.
* New: Added a Copy Shortcode button on the settings screen for quick access.
* Improvement: Split admin and frontend assets into dedicated CSS/JS files.
* Improvement: Added dedicated sanitize callbacks for color, font family, and font size options.
* Improvement: Admin assets now load only on the plugin's own settings page.
* Tested up to WordPress 6.9.

= 1.1.0 =
* Refactored plugin to OOP structure.
* Improved WordPress coding standards usage.
* Added safer sanitization and output escaping.
* Updated readme content and usage instructions.

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.1.1 =
This release adds button color, font, and tab text customization plus a copy-shortcode helper. Re-save plugin settings after upgrading to apply new defaults.

= 1.1.0 =
This release includes an internal OOP refactor and standards improvements. Re-save plugin settings after upgrade if needed.