coldtrick / profile_cover
Add a cover image to you profile page
Fund package maintenance!
ColdTrick
www.paypal.me/ColdTrick
Installs: 1 466
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 1
Open Issues: 0
Type:elgg-plugin
Requires
- composer/installers: ^1.0.8
Requires (Dev)
- coldtrick/sniffs: dev-master
Conflicts
- elgg/elgg: <4.1
README
Add a cover image to you profile page
The width and height can be set in the plugin settings (default: 1600px x 300px)
Note
This plugin doesn't provide a means to show the actual profile cover image. It offers the option to upload/remove the image.
To display the image user:
$user = elgg_get_logged_in_user_entity(); if ($user->hasIcon('cover', 'profile_cover')) { $cover_image_url = $user->getIconURL([ 'type' => 'profile_cover', 'size' => 'cover', ]); // do something with $cover_image_url }