function workspaces_render_widget_member_information(Member $member, &$prop_html = "")
{
    $ws_ot = ObjectTypes::findByName('workspace');
    if ($member->getObjectTypeId() == $ws_ot->getId()) {
        $ws = Workspaces::getWorkspaceById($member->getObjectId());
        if ($ws instanceof Workspace && trim($member->getDescription()) != "" && $ws->getColumnValue('show_description_in_overview')) {
            $prop_html .= '<div style="margin-bottom:5px;">' . escape_html_whitespace(convert_to_links(clean($member->getDescription()))) . '</div>';
        }
    }
}
Example #2
0
function workspaces_override_member_color($member, &$color) {
	
	$ws_ot = ObjectTypes::findByName('workspace');
	if (!$ws_ot instanceof ObjectType) return;
	
	if ($member->getObjectTypeId() == $ws_ot->getId()) {
		$ws = Workspaces::getWorkspaceById($member->getObjectId());
		if ($ws instanceof Workspace) {
			$color = $ws->getColumnValue('color');
		}
	}
}