PHP code example of coldtrick / profile_cover
1. Go to this page and download the library: Download coldtrick/profile_cover library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
coldtrick / profile_cover example snippets
$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
}