定制 siteation/magento2-hyva-icons-flags 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

siteation/magento2-hyva-icons-flags

最新稳定版本:1.0.3

Composer 安装命令:

composer require siteation/magento2-hyva-icons-flags

包简介

Flags icons for Hyva Themes

README 文档

README

Packagist Version Supported Magento Versions Hyva Themes Module License

This Magento 2 module adds the option to use Flagpack icons in your Hyvä frontend.

This requires that you have a working Hyvä frontend, this icon pack was made specifically for Hyvä Themes and will not work out of the box with any other frontend.

Installation

Install the package via;

composer require siteation/magento2-hyva-icons-flags bin/magento setup:upgrade

Warning This Module requires Magento 2.4 or higher and requires Hyvä! For more requirements see the composer.json.

How to use

By default this module loads nothing.

To use this icon pack instead of the default Hyvä icons, add the following to your phtml file;

<?php use Hyva\Theme\Model\ViewModelRegistry; use Siteation\HyvaIconsFlags\ViewModel\FlagsIcons; /** @var ViewModelRegistry $viewModels */ /** @var FlagsIcons $flagsIcons */ $flagsIcons = $viewModels->require(FlagsIcons::class);

and use the FlagsIcons just as the HeroIcons in Hyvä;

<?= $flagsIcons->nlHtml('p-1', 24, 24, ["aria-label" => "Netherlands"]) ?>

Using SVG icons in CMS content

You can now also use the SVG icons in your CMS content.

Bringing svg icon support to you CMS pages, Blocks and Widgets.

{{icon "flags/nl"}}

For more information on how and what see the Hyvä Docs

This feature is supported since Hyvä v1.1.12

Other icon packs for Hyva

If you are looking for a Luma based option checkout this icon pack instead.

Icon License

Flagpack used in this module were created by Yummygum under a MIT License, found here

统计信息

  • 总下载量: 13.61k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 8
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 8
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固