=== Easy Feedback for Divi ===
Contributors: bklemensowski
Tags: feedback, survey, divi, voting, dashboard
Requires at least: 6.2
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.4.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Up/down feedback module for the Divi Builder with optional written feedback, daily vote limits, and a WordPress Dashboard report.

== Description ==

Easy Feedback for Divi adds a customizable "Was this helpful?" survey to your pages. Visitors vote thumbs up or thumbs down, and a thumbs down can optionally include written feedback. Results are summarized per page in a WordPress Dashboard widget.

The plugin works with both Divi 4 and Divi 5:

* Native Divi 5 module registered through the Divi 5 module library, with a conversion outline so migrated Divi 4 layouts keep their settings.
* Divi 4 fallback module with full Visual Builder support when Divi 5 is not enabled.
* `[dsw_survey]` shortcode for non-Divi placements.

= Features =

* Per-module text settings for the question, button labels, feedback prompt, placeholder, and thank-you message
* Left, center, or right alignment for the survey box
* Dashboard widget with per-page thumbs up, thumbs down, and total counts
* Flag useful feedback, delete written feedback, or reset all stored data from the Dashboard
* Default limit of one vote per IP address per day (adjustable with the `dsw_daily_ip_vote_limit` filter)
* Frontend AJAX submission with nonce verification

= Privacy =

The plugin stores the visitor's IP address (and a hashed copy used for the daily vote limit) together with each vote. Review your privacy policy and any consent requirements before using it on a public site. No data is sent to external services and no email notifications are sent.

== Installation ==

1. Upload the plugin through Plugins → Add New → Upload Plugin, or copy the `easy-feedback-for-divi` folder into `wp-content/plugins/`.
2. Activate **Easy Feedback for Divi**.
3. Add the **Easy Feedback** module in the Divi Builder, or place the `[dsw_survey]` shortcode in your content.
4. View results in the **Easy Feedback** widget on the WordPress Dashboard.

== Frequently Asked Questions ==

= Does it require Divi? =

The module integrates with the Divi Builder (Divi 4 and Divi 5). On non-Divi themes you can still use the `[dsw_survey]` shortcode.

= Where are responses stored? =

In a custom database table on your own site. Nothing is sent to external services.

= Can I change the one-vote-per-day limit? =

Yes, developers can use the `dsw_daily_ip_vote_limit` filter. Returning a value below 1 disables the limit.

== Changelog ==

= 1.4.0 =
* The survey box now always spans the available width; the alignment setting aligns the content inside it (left, center, right).
* New Settings → Easy Feedback page previewing the Pro options, with an upgrade link.
* Dashboard widget toolbar with Settings and Export buttons (export activates with the Pro add-on).

= 1.3.0 =
* Added extension hook points (`dsw_pre_vote_limit_check`, `dsw_vote_recorded`, `dsw_feedback_updated`, `dsw_survey_feedback_fields`) so add-ons can extend voting limits, notifications, and the feedback form. No behavior changes when no add-on is installed.

= 1.2.0 =
* Renamed the plugin to Easy Feedback for Divi, with the slug and text domain `easy-feedback-for-divi`, for WordPress.org compliance.
* Hardened output escaping and switched all database queries to prepared statements with identifier placeholders.
* Removed the manual `load_plugin_textdomain()` call (WordPress.org loads translations automatically).
* Added WordPress.org readme.

= 1.1.3 =
* Divi 5 compatibility safeguards.

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.2.0 =
The plugin folder and main file were renamed to easy-feedback-for-divi. If you installed a pre-release copy under divi-survey-widget or easy-feedback, deactivate and remove it before installing this version. Stored votes and feedback are kept.
