echo $OUTPUT->header();
-/// Print the main part of the page
+// Print the main part of the page
echo $OUTPUT->heading(get_string("modulenamepluralformatted", "lti"));
-/// Get all the appropriate data
+// Get all the appropriate data
if (! $basicltis = get_all_instances_in_course("lti", $course)) {
notice("There are no basicltis", "../../course/view.php?id=$course->id");
die;
}
-/// Print the list of instances (your module will probably extend this)
+// Print the list of instances (your module will probably extend this)
$timenow = time();
$strname = get_string("name");
$strsectionname = get_string('sectionname', 'format_'.$course->format);
echo html_writer::table($table);
-/// Finish the page
-
+// Finish the page
echo $OUTPUT->footer();
-
$useexisting = optional_param('useexisting', null, PARAM_INT);
$definenew = optional_param('definenew', null, PARAM_INT);
-/// no guest autologin
+// no guest autologin
require_login(0, false);
$url = new moodle_url('/mod/lti/typesettings.php');
$PAGE->set_url($url);
$tab = optional_param('tab', '', PARAM_ALPHAEXT);
$redirect = "$CFG->wwwroot/$CFG->admin/settings.php?section=modsettinglti&tab={$tab}";
-/// WRITING SUBMITTED DATA (IF ANY) -------------------------------------------------------------------------------
+// WRITING SUBMITTED DATA (IF ANY)
$statusmsg = '';
$errormsg = '';
redirect($redirect);
}
-/// print header stuff ------------------------------------------------------------
+// print header stuff
$PAGE->set_focuscontrol($focus);
if (empty($SITE->fullname)) {
$PAGE->set_title($settingspage->visiblename);
echo $OUTPUT->notification($statusmsg, 'notifysuccess');
}
- // ---------------------------------------------------------------------------------------------------------------
-
echo '<form action="typesettings.php" method="post" id="'.$id.'" >';
echo '<div class="settingsform clearfix">';
echo html_writer::input_hidden_params($PAGE->url);
echo $OUTPUT->notification($statusmsg, 'notifysuccess');
}
- // ---------------------------------------------------------------------------------------------------------------
echo $OUTPUT->heading(get_string('toolsetup', 'lti'));
echo $OUTPUT->box_start('generalbox');
if ($action == 'add') {
$PAGE->set_title($pagetitle);
$PAGE->set_heading($course->fullname);
-/// Print the page header
+// Print the page header
echo $OUTPUT->header();
if ($lti->showtitle) {
- /// Print the main part of the page
+ // Print the main part of the page
echo $OUTPUT->heading(format_string($lti->name));
}
echo $resize;
}
-
-/// Finish the page
+// Finish the page
echo $OUTPUT->footer();