coldtrick/profile_cover

This package is abandoned and no longer maintained. No replacement package was suggested.

Add a cover image to you profile page

Maintainers

Package info

github.com/ColdTrick/profile_cover

Homepage

Type:elgg-plugin

pkg:composer/coldtrick/profile_cover

Fund package maintenance!

ColdTrick

www.paypal.me/ColdTrick

Statistics

Installs: 1 466

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

v5.0.1 2022-07-12 11:44 UTC

This package is auto-updated.

Last update: 2023-06-02 08:46:18 UTC


README

Elgg 4.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
}