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

2.3.4 2017-10-05 21:35 UTC

This package is auto-updated.

Last update: 2024-10-17 12:32:14 UTC


README

Elgg 2.3

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

  1. Enable the plugin
  2. In plugin settings, check the type/subtype of entities for which need to enable cover photo feature
  3. 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()