ClaroBreadCrumbs::getInstance()->prepend(get_lang('Administration'), get_path('rootAdminWeb')); $backUrl = get_path('rootAdminWeb'); } else { if ($course->courseId) { $backUrl = get_path('url') . '/claroline/course/index.php?cid=' . $course->courseId; } else { $backUrl = get_path('url') . '/index.php'; } } if (!get_conf('courseCreationAllowed', true)) { $dialogBox->warning(get_lang('Course creation is disabled on the platform')); } //================================= // Display section //================================= $out = ''; $out .= claro_html_tool_title(get_lang('Create a course website')); $out .= $dialogBox->render(); if (claro_is_platform_admin() || get_conf('courseCreationAllowed', true)) { if ($display == DISP_COURSE_CREATION_FORM || $display == DISP_COURSE_CREATION_FAILED) { // display form $out .= $course->displayForm($backUrl); } elseif ($display == DISP_COURSE_CREATION_PROGRESS) { // do nothing except displaying dialogBox content } elseif ($display == DISP_COURSE_CREATION_SUCCEED) { // display back link $out .= '<p>' . claro_html_cmd_link(claro_htmlspecialchars($backUrl), get_lang('Continue')) . '</p>' . "\n"; } } $claroline->display->body->appendContent($out); echo $claroline->display->render();