=== While Digital AI Reviews for Google Business ===
Contributors: whiledigital
Tags: google reviews, reviews widget, google business, testimonials, ratings
Requires at least: 5.8
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 2.1.7
License: GPLv2 or later

Display your Google Business reviews on your WordPress site with beautiful, responsive layouts.

== Description ==

While Digital AI Reviews for Google Business lets you connect your Google Business Profile and display your reviews
using a shortcode. Features include:

* Secure API key storage (encrypted, never exposed to browser)
* 8 layout types: Slider, Carousel, Grid, Masonry, List, Badge, Testimonial, Floating
* 5 style variants: Light, Dark, Minimal, Card, Bubble
* Auto-refresh every 10 days via WP-Cron
* Review caching  -  zero API calls on page load
* Fully responsive and accessible

== External Services ==

This plugin relies on external services to fetch business information, reviews, business photos, and AI summaries:

1. While Digital API Proxy (Cloudflare Worker by While Digital: https://grwp-proxy.whiledigital.workers.dev)
* Purpose: Acts as a secure server-side API proxy to connect with Google Places API and AI summary generation without exposing API credentials.
* What Data is Sent: Business search queries, Place IDs, location coordinates (latitude/longitude), photo references, and stored review text snippets (for AI summary generation).
* When Data is Sent: Sent via server-to-server HTTP POST requests when an administrator searches for a business, creates or manually refreshes a widget, or during scheduled background WP-Cron refreshes every 10 to 20 days.
* Service Links:
  - Terms of Service: https://whiledigital.agency
  - Privacy Policy: https://whiledigital.agency
  - Cloudflare Infrastructure Terms: https://www.cloudflare.com/terms/
  - Cloudflare Privacy Policy: https://www.cloudflare.com/privacypolicy/

2. Google Places API (Google LLC)
* Purpose: Provides official Google Business Profile details, ratings, total review counts, business photos, and customer reviews (proxied through the While Digital API Proxy).
* What Data is Sent: Business search terms, Place IDs, and location biases via server-side API requests.
* When Data is Sent: Triggered during widget creation, manual refresh, or periodic background WP-Cron sync.
* Service Links:
  - Google Terms of Service: https://policies.google.com/terms
  - Google Privacy Policy: https://policies.google.com/privacy

== Installation ==

1. Upload the plugin folder to /wp-content/plugins/
2. Activate the plugin through the Plugins menu
3. You will be redirected to the setup wizard automatically
4. Connect your Google Business Profile in the setup wizard

== Frequently Asked Questions ==

= Is my API key secure? =
Yes. API credentials are handled by the While Digital API Proxy and are never sent to the browser or exposed in page source.

= How many reviews can I show? =
Google Places API returns up to 5 reviews per request. We fetch from two sort orders
to get up to 10 unique reviews. Over time, as reviews refresh, more accumulate in your database.

= How often are reviews updated? =
Reviews are automatically refreshed every 10 days via WordPress Cron.

== Screenshots ==

1. Connect a Google Business Profile using a Google Maps URL or business name.
2. Configure the review count, rating filter, and display order.
3. Choose from the available review layouts and custom design options.
4. Copy the generated shortcode after creating a widget.
5. Manage widgets, copy shortcodes, refresh reviews, and control widget status from the dashboard.

== Changelog ==

= 2.1.7 =
* Renamed the plugin to While Digital AI Reviews for Google Business.
* Added the While Digital dashboard branding and updated public plugin assets.
* Improved Custom Design safety and live style rendering.
* Improved WordPress compatibility and activation behavior.

= 1.0.0 =
* Initial release
