Skip to content

Register LightSpeed SVG icon collection (WP 7.1) and namespace inc/ classes - #20

Draft
krugazul wants to merge 5 commits into
developfrom
feature/ls-3224-register-a-set-of-phosphor-svg-icons
Draft

Register LightSpeed SVG icon collection (WP 7.1) and namespace inc/ classes#20
krugazul wants to merge 5 commits into
developfrom
feature/ls-3224-register-a-set-of-phosphor-svg-icons

Conversation

@krugazul

@krugazul krugazul commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Registers a lightspeed SVG icon collection using the new WordPress 7.1 icon API (wp_register_icon_collection() / wp_register_icon()), auto-loading every .svg dropped into assets/icons/lightspeed/ via LS_Plugin\Icons.
  • Adds 93 icons to that collection, sourced from Phosphor Icons (MIT), covering navigation, search, contact, social, content/meta, media, tour/commerce, and site-chrome needs.
  • Namespaces every class in inc/ under LS_Plugin\, dropping the LS_Plugin_ prefix from class names, and renames the corresponding files (e.g. class-ls-plugin-icons.phpclass-icons.php) to match the existing class-permalinks.php convention.
  • Updates CHANGELOG.md, AGENTS.md, and .github/instructions/php.instructions.md to reflect the new naming/namespacing convention.

Test plan

  • php -l across all touched inc/ files and ls-plugin.php (done locally, all pass)
  • npm run plugin:validate (done locally, passes)
  • Confirm the lightspeed icon collection and its icons appear in the block editor's icon picker on WordPress 7.1+
  • Spot-check a few icons via wp_get_icon( 'lightspeed/<name>' ) render correctly and pick up currentColor
  • Confirm no fatals on WordPress < 7.1 (icon registration should no-op gracefully)

🤖 Generated with Claude Code

krugazul and others added 4 commits September 7, 2026 10:18
…nsistency

feat(nav-ref-resolver): implement navigation reference auto-resolver
refactor: update class names to remove LS_Plugin_ prefix and adjust namespaces
chore: reorganize file structure and remove deprecated classes
- Added share-alt.svg for alternative sharing functionality.
- Added share.svg for standard sharing functionality.
- Added shield.svg for security representation.
- Added sort.svg for sorting options.
- Added special-interests.svg for categorizing interests.
- Added star-fill.svg for filled star representation.
- Added star.svg for outlined star representation.
- Added tag.svg for tagging functionality.
- Added theme-moon.svg for dark mode representation.
- Added theme-sun.svg for light mode representation.
- Added thumbs-up.svg for positive feedback.
- Added tiktok.svg for TikTok representation.
- Added transport.svg for transportation options.
- Added trending-up.svg for trending indicators.
- Added trophy.svg for achievements.
- Added truck.svg for delivery representation.
- Added twitter-x.svg for Twitter integration.
- Added upload.svg for upload functionality.
- Added user-plus.svg for adding new users.
- Added user.svg for user representation.
- Added users.svg for multiple users representation.
- Added video.svg for video content.
- Added warning.svg for alerts and warnings.
- Added whatsapp.svg for WhatsApp integration.
- Added youtube.svg for YouTube representation.
…espace refactor

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@linear-code

linear-code Bot commented Sep 7, 2026

Copy link
Copy Markdown

LS-3224

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant