=== ShareMe Social Share Plugin Blog & WooCommerce Products ===
Contributors: shiponkarmakar
Tags: social share, social media, share buttons, woocommerce share, gutenberg block
Requires at least: 5.6
Tested up to: 7.1
Stable tag: 2.1.0
Requires PHP: 7.2
License: GPL v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.txt

Lightweight social share buttons for blog posts and WooCommerce products — sortable networks, colors, shortcode builder, Gutenberg & Elementor.

== Description ==

**ShareMe** adds fast, customizable social share buttons to posts, pages, and WooCommerce products — with a modern admin, drag-and-drop network ordering, and no external scripts.

**Features**

* 13 built-in networks: Facebook, X (Twitter), LinkedIn, Pinterest, WhatsApp, Telegram, Reddit, Tumblr, Messenger, Pocket, Email, Copy Link, Print
* Drag-and-drop sortable network list — enable, disable, and reorder in the admin
* Per-network color pickers, custom icon (foreground) color
* Button style: circle, rounded, or square — small / medium / large — optional labels
* Custom heading text, position (before / after / both), or a sticky vertical sidebar (left or right)
* Open share dialogs in a centered popup window
* WooCommerce single-product share slot (`woocommerce_share`) supported out of the box
* Gutenberg block ("ShareMe Buttons") with live editor preview via server-side render
* Elementor widget ("ShareMe Buttons") with matching controls
* Shortcode `[shareme_buttons]` with attributes for per-placement overrides
* Shortcode Builder in the admin with a savable shortcode library
* No external scripts, inline SVG icons for crisp rendering
* Translation-ready (`shareme` text domain)

**Shortcode**

    [shareme_buttons networks="facebook,twitter,whatsapp" shape="rounded" size="large" labels="yes" heading="Spread the word"]

== Installation ==

1. Upload the `shareme` folder to `/wp-content/plugins/` (or install from the WordPress plugin directory).
2. Activate the plugin through the **Plugins** menu.
3. Configure under **Settings → ShareMe**.
4. Optional: drop the **ShareMe Buttons** block into any post, or drag the **ShareMe Buttons** widget in Elementor.

== Frequently Asked Questions ==

= Where do the share buttons appear? =
By default on single posts and WooCommerce product pages. Toggle pages, sticky sidebar, and position in **Settings → ShareMe → Display**.

= Can I change the button colors? =
Yes — the **Networks** tab has a color picker per network, and the **Style** tab has a global icon color.

= Does this plugin load external scripts? =
No. Icons are inline SVG and the small share/copy/print helper script is served from your site.

= Does it work with WooCommerce? =
Yes. When WooCommerce is active and "WooCommerce products" is enabled, buttons render in the product's share slot.

= Does it support Gutenberg and Elementor? =
Yes — both are registered automatically when Gutenberg / Elementor is present.

== Screenshots ==

1. Social sharing buttons in action on a blog post.
2. Admin — sortable networks with per-network color pickers.
3. Shortcode Builder with saved shortcodes library.

== Changelog ==

= 2.1.0 =
* Tested with WordPress 7.1.
* WooCommerce support via `woocommerce_share`.
* New networks: Telegram, Reddit, Tumblr, Messenger, Pocket, Copy Link, Print (13 total).
* Drag-and-drop sortable network list with enable toggles.
* Per-network color pickers and a global icon color.
* Button shape (circle / rounded / square) and size (small / medium / large), optional labels.
* Custom heading text, position (before / after / both), and sticky sidebar (left / right).
* Open share dialogs in a centered popup window.
* Tabbed admin UI (General / Networks / Display / Style / Shortcode Builder) with a savable shortcode library.
* Gutenberg block "ShareMe Buttons" (dynamic, server-rendered, with Inspector controls).
* Elementor widget with matching controls in a dedicated "ShareMe" category.
* Inline SVG icons; front-end helper script for popup, copy-link (with toast), and print.
* Fixed URL-encoding / XSS issue in share URLs; added a proper settings sanitizer.
* Guarded `the_content` filter against widgets, excerpts, and feeds.
* New shortcode `[shareme_buttons]` with attribute overrides (old `[show_shareme_social_buttons]` still works).

= 2.0.0 =
* Settings page for per-network toggles and master enable.

= 1.3.0 =
* Improved compatibility with WordPress 6.4.
* Enhanced security with better input validation.
* Fixed minor CSS issues.

= 1.2.0 =
* Added WhatsApp sharing support.
* Optimized performance by removing unnecessary scripts.

= 1.1.0 =
* Added LinkedIn and Pinterest sharing options.
* Improved mobile responsiveness.

= 1.0.0 =
* Initial release with Facebook and Twitter support.

== Upgrade Notice ==

= 2.1.0 =
Major update: WooCommerce support, Gutenberg block, Elementor widget, sortable networks, color pickers, and a share-URL security fix. Tested with WordPress 7.1. Recommended for all users.

== Support ==

For support and feature requests, visit [Shipon Karmakar's Website](https://shiponkarmakar.com) or the [WordPress.org Plugin Page](https://wordpress.org/plugins/shareme).
