=== Pinterest Pin-It Hover Button ===
Contributors: snehalpancholi
Tags: pinterest, pin it, social sharing, images, hover button
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 "Pin it" overlay button on content images when the visitor hovers over them.

== Description ==

Pinterest Pin-It Hover Button wraps each qualifying content image in a thin `<span>` and injects a styled "Pin it" overlay link. When clicked, it opens Pinterest's Create Pin page pre-filled with the image URL, page URL, and image alt text as the description — no Pinterest SDK or external script required.

**Features:**

* Zero external dependencies — pure CSS + vanilla JS
* Configurable button position: top-left, top-right, bottom-left, bottom-right, or center
* Custom button text, background colour, and text colour
* Minimum image width threshold to skip thumbnails and icons
* CSS class exclusion (`no-pin` by default) for individual images
* Optional hide on mobile (< 768 px)
* IntersectionObserver support for lazy-loaded images
* Enabled per post type

== Installation ==

1. Upload the `pinterest-pin-it` folder to `/wp-content/plugins/`
2. Activate through **Plugins > Installed Plugins**
3. Go to **Settings > Pin-It Button** to configure position, colours, and post types

== Frequently Asked Questions ==

= Does this require a Pinterest account or API key? =
No. The button opens Pinterest's standard share URL — no API credentials needed.

= How do I prevent a specific image from getting the button? =
Add the CSS class `no-pin` (or the class you configured in settings) to that image.

= Does it work with lazy-loaded images? =
Yes. An IntersectionObserver watches for lazy images and wraps them after they load.

== Changelog ==

= 1.0.0 =
* Initial release.

== Screenshots ==

1. Pin-It button appearing on hover over a post image (top-left position).
2. Settings page with position, colour, and post-type controls.
