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