nlybe / amap_coverphoto
Upload and display cover photo to Elgg Entities
Installs: 16
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 2
Open Issues: 0
Type:elgg-plugin
Requires
- php: >=5.6
- composer/installers: >=1.0.8
- hypejunction/images: ~1.0
This package is auto-updated.
Last update: 2024-10-17 12:32:14 UTC
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()