=== AddonLogic Environment Indicator Badge ===
Contributors: snehalpancholi
Tags: environment, development, staging, production, admin bar
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

Show a colored admin-bar badge indicating the current environment (Development, Staging, or Production) — auto-detected or manually configured.

== Description ==

Environment Indicator Badge adds a small, coloured label to the WordPress admin bar showing which environment you're working in — making it immediately obvious whether you're on development, staging, or production.

**Detection methods (in priority order):**

1. Manual override in plugin settings
2. WordPress `WP_ENVIRONMENT_TYPE` constant (if defined)
3. URL pattern detection (localhost, .local, .test, .dev, staging., stage., etc.)

**Features:**

* Auto-detects environment from URL or WP_ENVIRONMENT_TYPE
* Fully configurable: custom label and badge color per environment
* Option to hide badge on production (safe default for live sites)
* Option to show badge to administrators only
* Appears in admin bar on both frontend and backend
* Zero JavaScript, pure CSS badge

**Default colors:**

* Development — Green (#16a34a)
* Staging — Amber (#d97706)
* Production — Red (#dc2626)

== Installation ==

1. Upload the `environment-indicator-badge` folder to `/wp-content/plugins/`
2. Activate the plugin
3. Go to **Settings → Environment Badge** to configure

== Frequently Asked Questions ==

= How do I set the environment in wp-config.php? =
Add: `define( 'WP_ENVIRONMENT_TYPE', 'staging' );` — valid values are `development`, `local`, `staging`, `production`.

= Can I hide the badge on production? =
Yes. Check "Hide badge on production environments" in the settings.

= Can I hide it from editors and subscribers? =
Yes. Check "Show badge to Administrators only".

== Changelog ==

= 1.0.0 =
* Initial release
