assign('course_url', $link); $tpl->assign('course_title', Display::url($title, $link)); $tpl->assign('course_id', $course_info['code']); $tpl->assign('just_created', isset($_GET['first']) && $_GET['first'] ? 1 : 0); $add_course_tpl = $tpl->get_template('create_course/add_course.tpl'); $content = $tpl->fetch($add_course_tpl); $tpl->assign('content', $content); $template = $tpl->get_template('layout/layout_1_col.tpl'); $tpl->display($template);