# Changelog

All notable changes to this plugin are documented here. The format follows
Keep a Changelog, and the project uses semantic versioning.

## 1.1.1

### Changed
- Added an EOM homepage link in the readme and refreshed the plugin icon and
  banner with EOM branding. No functional changes.

## 1.1.0

### Changed
- Renamed to "EOM Preferred Sources Button" (slug eom-preferred-sources-button)
  following plugin review feedback: the previous name began with Google's
  product term without a distinctive identifier.
- Removed the bundled de_DE translation files and the load_plugin_textdomain()
  call. Once the plugin is live, translations are served automatically through
  translate.wordpress.org.

### Security
- REST permission callback: the same-site fallback now parses the Origin or
  Referer and compares the host exactly. The previous prefix comparison could
  be fooled by look-alike hosts such as example.com.evil.

## 1.0.3

### Fixed
- The wrapper set "margin: Xpx 0 Ypx", which reset the horizontal auto margins
  that many themes use to centre their content column. The button escaped the
  column to the left and every alignment looked broken. The stylesheet now only
  touches margin-top and margin-bottom. Root cause found and the fix verified
  directly on a live site whose theme uses exactly that column technique.

## 1.0.2

### Changed
- The alignment setting is no longer hidden when full width is on. It now
  positions the content inside the stretched button (left, centre, right),
  so the control keeps a purpose in every combination.

## 1.0.1

### Fixed
- Button alignment now runs through flexbox; theme text-align rules can no
  longer override the left/centre/right setting.
- The floating bar enqueues its assets during wp_enqueue_scripts, so it
  actually appears (previously its script was queued after WordPress had
  already printed the footer scripts).
- The full-width button no longer overflows its container (box-sizing).
- Hint and status text follow the chosen alignment.
- Selectors hardened against themes that restyle anchors in the content area.

## 1.0.0

### Added
- Three integration modes: deeplink, two-click and Google's official widget.
- Display rules for content types, views, individual posts, taxonomy terms,
  post age, visitor login state and user roles.
- Automatic placement before, after or inside the content, after a chosen
  paragraph, or as a dismissable floating bar.
- Design settings for colour scheme, custom colours, icon and icon position,
  radius, border, font size and weight, padding, spacing, shadow, full width,
  alignment and extra CSS classes, with a live preview.
- Block, shortcode and template tags.
- Optional click measurement through an existing dataLayer or gtag setup.
- Optional local click counter with a 90-day retention window.
- Import, export and reset of the configuration.
- Site Health check and a fallback link when Google's script is blocked.
