comments_on == 'Off') { $comments_on = false; } else { $comments_on = true; } if (get_context() == "search" && $vars['entity'] instanceof ElggObject) { //display the correct layout depending on gallery or list view if (get_input('search_viewtype') == "gallery") { //display the gallery view echo elgg_view("blog/gallery",$vars); } else { echo elgg_view("blog/listing",$vars); } } else { if ($vars['entity'] instanceof ElggObject) { $url = $vars['entity']->getURL(); $owner = $vars['entity']->getOwnerEntity(); $canedit = $vars['entity']->canEdit(); } else { $url = 'javascript:history.go(-1);'; $owner = $vars['user']; $canedit = false; } ?>
name; ?>
time_created)
);
?>
access_id);
//files with these access level don't need an icon
$general_access = array('Public', 'Logged in users', 'Friends');
//set the right class for access level display - need it to set on groups and shared access only
$is_group = get_entity($vars['entity']->container_guid);
if($is_group instanceof ElggGroup){
//get the membership type open/closed
$membership = $is_group->membership;
if($membership == 2)
$access_level = "class='group_open'";
else
$access_level = "class='group_closed'";
}elseif($object_acl == 'Private'){
$access_level = "class='private'";
}else{
if(!in_array($object_acl, $general_access))
$access_level = "class='shared_collection'";
else
$access_level = "class='generic_access'";
}
echo "
" . $object_acl . "";
?>
' . $categories . '
'; } ?>