=== AnySVG - Custom icon widget for elementor ===
Contributors: arhamashfaq
Donate link: https://arhamashfaq.com/
Tags: elementor, svg, icon, custom icon, vector
Requires at least: 5.6
Tested up to: 7.0
Stable tag: 1.0.1
Requires PHP: 7.4
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

A custom Elementor widget that allows you to paste raw SVG code and style it using all standard Elementor Icon controls.

== Description ==

Tired of being limited to pre-bundled icon libraries in Elementor? AnySVG lets you use **any SVG icon** on the web!

Simply paste your raw SVG code directly into the widget, and style it with all the familiar controls of Elementor's native Icon widget.

=== Key Features ===
*   **Paste Raw SVG**: Paste clean SVG code from Heroicons, Bootstrap Icons, FontAwesome, or your own design tools.
*   **Auto-Cleaning and Scale Prep**: Automatically strips inline width, height, and style attributes so the Elementor size settings can scale the icon beautifully.
*   **Auto viewBox Synthesis**: If your SVG is missing a viewBox but has width and height, AnySVG automatically adds it so it never crops.
*   **Advanced Color Overrides**: Select from four color mapping modes: Keep Original (for colored logos), Force Fill, Force Stroke, or Force Both.
*   **Familiar Elementor Controls**: Customize View (Default, Stacked, Framed), Shape (Circle, Square), Link URL, Size, Spacing/Padding, Border Width, Border Radius, Rotation, and Alignments.
*   **Normal & Hover States**: Configure primary/secondary colors and hover transitions.
*   **Backbone Live Preview**: Instant updates inside the Elementor editor screen.

== Installation ==

1. Upload the plugin folder `anysvg` to the `/wp-content/plugins/` directory, or upload the ZIP file via the WordPress plugin uploader.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Open any page in Elementor editor, drag the "AnySVG Icon" widget into your layout, and start designing.

== Frequently Asked Questions ==

= Can I use multi-colored SVGs? =
Yes! Set the **Color Override Mode** to **Keep Original Colors** to preserve the custom gradients or colors of your logo or graphic.

= How do I resize the SVG? =
Use the **Size** slider under the Style tab. The plugin automatically cleans up hardcoded SVG widths/heights so Elementor's sizing overrides them correctly.

== Screenshots ==

1. The AnySVG widget panel controls.

== Changelog ==

= 1.0.1 =
* Bump version to 1.0.1.
* Add Requires Plugins header.
* Secure and expand SVG sanitizer whitelist (clip-path, masks, symbol support).
* Fix XML comments/prologue bypassing cleanup.
* Smooth CSS transitions for hover state colors.

= 1.0.0 =
* Initial release of AnySVG custom icon widget.
