11 $access_id =
$vars[
'entity']->access_id;
12 $access_class =
'elgg-access';
14 $access_id_string = htmlspecialchars($access_id_string, ENT_QUOTES,
'UTF-8',
false);
27 $access_class .=
' elgg-access-group-open';
29 $access_class .=
' elgg-access-group-closed';
34 $access_class .=
' shared_collection';
36 $access_class .=
' elgg-access-private';
41 echo "<span title=\"$help_text\" class=\"$access_class\">$access_id_string</span>";
elgg_instanceof($entity, $type=null, $subtype=null, $class=null)
Checks if $entity is an ElggEntity and optionally for type and subtype.
elgg_echo($message_key, $args=array(), $language="")
Given a message key, returns an appropriately translated full-text string.
elgg echo
Translates a string.
get_readable_access_level($entity_access_id)
Return the name of an ACCESS_* constant or an access collection, but only if the logged in user has w...