=== AnchorBadge – Sticky Floating Badges & Announcements ===
Contributors: kostasthanos
Author URI: https://kostasthanos.com/
Plugin URI: https://kostasthanos.com/plugins/anchorbadge/
Tags: floating badge, sticky badge, announcement, fixed position, badge
Requires at least: 5.8
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Display a fixed floating image badge or announcement anywhere on your WordPress site.

== Description ==

**AnchorBadge** lets you place a fixed floating element in any corner of your site — always visible as visitors scroll.

Choose between two modes:

**Image Badge** — upload any image (JPG, PNG, WebP) and pin it to a corner with a link. Perfect for logos, certification badges, trust marks, banners and award logos.

**Announcement** — display a short text message with an optional button. Ideal for promotions, notices, and calls to action.

= Free Features =

* Two modes: Image Badge and Announcement
* Image upload — JPG, PNG, WebP up to 10 MB
* Image fit: contain, cover, fill — with focus point for cover
* Optional background color with opacity
* 4 corner positions — always fixed, always visible
* Custom margins, desktop and mobile sizing, border radius, padding
* External, internal, or media file link support (image mode)
* Announcement text with font family, size, and color options
* One button per announcement with label, URL, and color
* 5 close button icon styles with color picker
* Cookie or session close behavior
* Show on entire site, front page, or a specific page/post
* Live admin preview
* Clean, lightweight output — no jQuery on the frontend
* Secure — nonces, capability checks, MIME validation

= Privacy =

AnchorBadge does not collect or transmit any personal data. The optional close cookie stores only a "1" value locally in the visitor's browser.

== Installation ==

1. Upload the `anchorbadge` folder to `/wp-content/plugins/`
2. Activate the plugin through **Plugins > Installed Plugins**
3. Go to **AnchorBadge** in your WordPress admin menu
4. Choose your mode, configure your settings, enable, and save

== Frequently Asked Questions ==

= What image formats are supported? =
JPG, PNG, WebP, and GIF — up to 10 MB.

= Can I show the badge only on certain pages? =
Yes — entire site, front page only, or one specific page or post.

= Is it GDPR compliant? =
Yes. The close cookie stores only a "1" value. No data is sent to any external server.

= Does it work with caching plugins? =
Yes. Badge rendering is server-side and the JS works with any caching setup.

== Screenshots ==

1. Admin panel — Badge Type selector and Image Badge settings
2. Admin panel — Announcement mode with text and button options
3. Admin panel — Position and Dimensions
4. Admin panel — Close Button settings
5. Frontend — image badge displayed bottom-left with close button

== Changelog ==

= 1.0.0 =
* Initial release

== Upgrade Notice ==

= 1.0.0 =
Initial release.
