=== AddonLogic Copy Link Share ===
Contributors: snehalpancholi
Tags: copy link, clipboard, share, share button, url copy
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

Add a 'Copy link' button to posts that copies the current URL to the clipboard and shows a brief confirmation tooltip.

== Description ==

AddonLogic Copy Link Share adds a lightweight, dependency-free "Copy link" button to your WordPress posts and pages. When a visitor clicks it, the current URL is copied to their clipboard via the modern Clipboard API (with an `execCommand` fallback for older browsers), and a brief confirmation tooltip appears.

**Features:**
* Copies current post URL with a single click
* Animated confirmation tooltip (customisable text and duration)
* Three button styles: Filled, Outline, Minimal
* Custom button and text colours
* Optional SVG icon next to button label
* Auto-insert before or after post content (toggle)
* `[copy_link]` shortcode for manual placement
* `[copy_link url="https://example.com"]` for a custom URL
* Limit auto-insert to specific post types
* No jQuery, no external dependencies

== Installation ==

1. Upload `copy-link-share/` to `/wp-content/plugins/`
2. Activate through **Plugins › Installed Plugins**
3. Go to **Settings › Copy Link Share** and configure
4. Or use `[copy_link]` in any post or page

== Frequently Asked Questions ==

= Can I use a custom URL? =
Yes: `[copy_link url="https://yoursite.com/page"]` copies that specific URL instead of the current page.

= What if the Clipboard API isn't available? =
The plugin automatically falls back to `document.execCommand('copy')` for older browsers.

= Where is the button shown with auto-insert? =
Choose "Before content" or "After content" in **Settings › Copy Link Share**.

== Changelog ==

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.0.0 =
Initial release.
