=== Elementor Icon Picker ===
Contributors: cubrad
Tags: elementor, icons, phosphor, icon font
Requires at least: 6.0
Requires PHP: 7.4
Stable tag: 1.4.5
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Adds selectable Phosphor Icons libraries to Elementor's icon picker.

== Description ==

The plugin adds six separate self-hosted Phosphor icon libraries and lets administrators enable only the styles they need under Settings > Elementor Icon Picker:

* Regular
* Thin
* Light
* Bold
* Fill
* Duotone

On the frontend every Phosphor icon is printed as a small inline SVG, so visitors do not download the icon webfont or its stylesheet. The editor picker still uses the webfont. If any Phosphor reference on a page cannot be replaced (an unknown name, an icon class in JavaScript or a template, or CSS using the Phosphor font), the stylesheet stays on that page. Where it was removed, a small inline script loads it again if JavaScript later adds a Phosphor icon.

The bundled Phosphor assets are version 2.1.2 and are licensed under the MIT License.

Disabled styles are hidden from the Elementor icon picker. Icons that were selected before a style was hidden continue to display on the frontend.

== Installation ==

1. Upload the ZIP under Plugins > Add New > Upload Plugin.
2. Activate Elementor.
3. Activate Elementor Icon Picker.
4. Open an Elementor icon picker and select a Phosphor tab.

== Changelog ==

= 1.4.5 =
* Updates are delivered from cubrad.com (plugin-update-checker 5.7, `Update URI: https://cubrad.com/`).

= 1.4.4 =
* Tests are kept locally and are no longer part of the repository; no runtime change.

= 1.4.3 =
* Visual check tool counts only <i> icon hosts; no runtime change.

= 1.4.2 =
* Icons inside widgets that style SVG icons (Elementor Icon List margin, fill, size, rotation) keep the webfont's position and colour.
* The webfont stays when an icon class appears outside an empty <i> (other elements, JavaScript, templates, the CSS font shorthand), and is loaded again if JavaScript adds an icon later.
* Icon markup is scanned in linear time even without the PCRE JIT.

= 1.4.1 =
* Developer tools for the inline SVG visual check; no runtime change.

= 1.4.0 =
* Icons are rendered as inline SVG on the frontend (shared Phosphor core, also bundled in ACF Phosphor Icon Picker). The Phosphor webfont and stylesheet are no longer loaded where every icon was replaced.
* Earlier 1.3.x builds added the SVG data, the generator and the core step by step.

= 1.3.0 =
* Load the Phosphor stylesheets without blocking the first render (media="print" with an onload switch and a noscript fallback). Text paints first and icons appear once the stylesheet arrives.

= 1.2.0 =
* Fixed icon names for Thin, Light, Bold, Fill, and Duotone libraries.
* Fixed alternate icon names that were incorrectly combined into single entries.
* Prevented duplicate stylesheet loading.
* Hidden styles now remain registered on the frontend for previously selected icons.
* Declared Elementor as a plugin dependency.

= 1.1.0 =
* Added Settings > Elementor Icon Picker.
* Added checkbox selection for enabled icon styles.
* Elementor now registers and loads only enabled libraries.
* Added a Settings link on the Plugins screen.

= 1.0.0 =
* Initial release.
