hypejunction/ui_icons

标准化图标标记

安装: 62

依赖: 1

建议者: 0

安全: 0

星星: 0

关注者: 2

分支: 0

开放问题: 0

类型:elgg-plugin

1.0.3 2015-12-27 00:54 UTC

This package is auto-updated.

Last update: 2024-08-29 03:36:02 UTC


README

Elgg 2.0

功能

  • 标准化图标显示和标记
  • 强制large图标为200x200的正方形
  • 添加带有325像素宽度的extra_large图标,大小调整与主图标相似
  • 允许您在squareroundedcircle角中选择
  • 用可缩放的SVG图像替换默认的用户、组和问号图标

Icons Sandbox

用法

使用默认角设置显示图标

// '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图标放置在相同位置。