/** * Show object timeslots block * * @param ProjectDataObject $object Show timeslots of this object * @return null */ function render_object_timeslots(ProjectDataObject $object) { if (!$object->allowsTimeslots()) { return ''; } tpl_assign('__timeslots_object', $object); return tpl_fetch(get_template_path('object_timeslots', 'timeslot')); }