guid) { $rel = 'rel="me"'; } elseif (check_entity_relationship(elgg_get_logged_in_user_guid(), 'friend', $entity->guid)) { $rel = 'rel="friend"'; } $link = "getUrl() . "\" $rel>" . $entity->name . ""; if($entity->donation > time()) { $link = "
{$link}
"; } $title = $link; $metadata = elgg_view_menu('entity', array( 'entity' => $entity, 'sort_by' => 'priority', 'class' => 'elgg-menu-hz', )); if (elgg_in_context('owner_block') || elgg_in_context('widgets')) { $metadata = ''; } if (elgg_get_context() == 'gallery') { echo $icon; } else { if ($entity->isBanned()) { $banned = elgg_echo('banned'); $params = array( 'entity' => $entity, 'title' => $title, 'metadata' => $metadata, ); } else { $params = array( 'entity' => $entity, 'title' => $title, 'metadata' => $metadata, 'subtitle' => $entity->briefdescription, 'content' => elgg_view('user/status', array('entity' => $entity)), ); } $list_body = elgg_view('user/elements/summary', $params); echo elgg_view_image_block($icon, $list_body, $vars); }