hypejunction / ui_icons
标准化图标标记
1.0.3
2015-12-27 00:54 UTC
Requires
- php: >=5.5
This package is auto-updated.
Last update: 2024-08-29 03:36:02 UTC
README
功能
- 标准化图标显示和标记
- 强制
large
图标为200x200的正方形 - 添加带有325像素宽度的
extra_large
图标,大小调整与主图标相似 - 允许您在
square
、rounded
、circle
角中选择 - 用可缩放的SVG图像替换默认的用户、组和问号图标
用法
使用默认角设置显示图标
// 'rounded' and 'circle' corners will only be displayed with tiny, small and medium icon sizes echo elgg_view_entity_icon($entity, 'small');
强制角设置
echo elgg_view_entity_icon($entity, 'large', array( 'corners' => 'circle', ));
替换默认图标
要替换默认图标,只需覆盖svg视图。只需在您的插件中将同一名称和相同位置的svg图标放置在相同位置。