nlybe/amap_coverphoto
Composer 安装命令:
composer require nlybe/amap_coverphoto
包简介
Upload and display cover photo to Elgg Entities
README 文档
README
This plugin offers the option to upload cover photo to Elgg Entities.
Features
- Option to choose in plugin settings the type/subtype of entities for which to enable cover photo
- For entities type selected, an option to edit the cover photo is added on entity menu
- If cropper plugin is enabled, a responsive image cropping tool is available to crop the cover photo
How to Use
- Enable the plugin
- In plugin settings, check the type/subtype of entities for which need to enable cover photo feature
- On object view, include the following code
if ($entity->covertime) { echo elgg_view('output/img', array( 'src' => amap_cp_getCoverIconUrl($entity, 'large'), 'alt' => elgg_echo('cover'), )); }
Future Improvements
- Add on CoverPhoto entity the container_guid indicating the parent entity
- Add method CoverPhoto->getImageUrl()
统计信息
- 总下载量: 16
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0
- 更新时间: 2016-12-26