Beispiel #1
0
/**
 * Show object comments block
 *
 * @param ProjectDataObject $object Show comments of this object
 * @return null
 */
function render_object_comments(ProjectDataObject $object)
{
    if (!$object->isCommentable() || !$object->canReadComments(logged_user())) {
        return '';
    }
    tpl_assign('__comments_object', $object);
    return tpl_fetch(get_template_path('object_comments', 'comment'));
}