coldtrick/profile_cover

Add a cover image to you profile page

Installs: 526

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 1

Open Issues: 0

Type:elgg-plugin

v3.0 2019-08-22 07:31 UTC

This package is auto-updated.

Last update: 2020-04-04 10:19:41 UTC


README

Elgg 3.1 Build Status Scrutinizer Code Quality Latest Stable Version License

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
}