@@ -75,8 +75,8 @@ |
||
| 75 | 75 | |
| 76 | 76 | echo $OUTPUT->header(), |
| 77 | 77 | |
| 78 | - $OUTPUT->heading(get_string('editpagedesc', 'block_featuredcourses')), |
|
| 78 | + $OUTPUT->heading(get_string('editpagedesc', 'block_featuredcourses')), |
|
| 79 | 79 | |
| 80 | - $editform->render(), |
|
| 80 | + $editform->render(), |
|
| 81 | 81 | |
| 82 | - $OUTPUT->footer(); |
|
| 82 | + $OUTPUT->footer(); |
|
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | $site = get_site(); |
| 72 | 72 | |
| 73 | 73 | $PAGE->set_title(get_string('editpagetitle', 'block_featuredcourses')); |
| 74 | -$PAGE->set_heading($site->fullname . ' - ' . get_string('pluginname', 'block_featuredcourses')); |
|
| 74 | +$PAGE->set_heading($site->fullname.' - '.get_string('pluginname', 'block_featuredcourses')); |
|
| 75 | 75 | |
| 76 | 76 | echo $OUTPUT->header(), |
| 77 | 77 | |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | // Forms to edit existing featured courses. |
| 49 | 49 | foreach ($featuredcourses as $c) { |
| 50 | 50 | $mform->addElement('header', 'featured', |
| 51 | - get_string('featuredcourse', 'block_featuredcourses', $c->shortname . ' - '. $c->fullname)); |
|
| 51 | + get_string('featuredcourse', 'block_featuredcourses', $c->shortname . ' - '. $c->fullname)); |
|
| 52 | 52 | |
| 53 | 53 | $mform->addElement('hidden', 'featured['.$c->id.'][id]', null); |
| 54 | 54 | $mform->setType('featured['.$c->id.'][id]', PARAM_INT); |
@@ -61,8 +61,8 @@ discard block |
||
| 61 | 61 | $mform->setDefault('featured['.$c->id.'][sortorder]', $c->sortorder); |
| 62 | 62 | |
| 63 | 63 | $mform->addElement('static', 'link', |
| 64 | - get_string('deletelink', 'block_featuredcourses', |
|
| 65 | - $CFG->wwwroot.'/blocks/featuredcourses/delete_featuredcourse.php?courseid='.$c->id)); |
|
| 64 | + get_string('deletelink', 'block_featuredcourses', |
|
| 65 | + $CFG->wwwroot.'/blocks/featuredcourses/delete_featuredcourse.php?courseid='.$c->id)); |
|
| 66 | 66 | |
| 67 | 67 | } |
| 68 | 68 | |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | $mform->addElement('checkbox', 'doadd', get_string('doadd', 'block_featuredcourses')); |
| 73 | 73 | |
| 74 | 74 | $mform->addElement('select', 'newfeatured[courseid]', |
| 75 | - get_string('courseid', 'block_featuredcourses'), $availablecourseslist); |
|
| 75 | + get_string('courseid', 'block_featuredcourses'), $availablecourseslist); |
|
| 76 | 76 | $mform->addRule('newfeatured[courseid]', get_string('missingcourseid', 'block_featuredcourses'), |
| 77 | 77 | 'required', null, 'client'); |
| 78 | 78 | $mform->disabledIf('newfeatured[courseid]', 'doadd', 'notchecked'); |
@@ -38,17 +38,17 @@ |
||
| 38 | 38 | global $CFG; |
| 39 | 39 | |
| 40 | 40 | $mform = $this->_form; |
| 41 | - $availablecourses = $this->_customdata['availablecourses']; |
|
| 42 | - $featuredcourses = $this->_customdata['featuredcourses']; |
|
| 41 | + $availablecourses = $this->_customdata['availablecourses']; |
|
| 42 | + $featuredcourses = $this->_customdata['featuredcourses']; |
|
| 43 | 43 | $availablecourseslist = array(); |
| 44 | 44 | foreach ($availablecourses as $c) { |
| 45 | - $availablecourseslist[$c->id] = $c->shortname . ' : ' . $c->fullname; |
|
| 45 | + $availablecourseslist[$c->id] = $c->shortname.' : '.$c->fullname; |
|
| 46 | 46 | } |
| 47 | 47 | |
| 48 | 48 | // Forms to edit existing featured courses. |
| 49 | 49 | foreach ($featuredcourses as $c) { |
| 50 | 50 | $mform->addElement('header', 'featured', |
| 51 | - get_string('featuredcourse', 'block_featuredcourses', $c->shortname . ' - '. $c->fullname)); |
|
| 51 | + get_string('featuredcourse', 'block_featuredcourses', $c->shortname.' - '.$c->fullname)); |
|
| 52 | 52 | |
| 53 | 53 | $mform->addElement('hidden', 'featured['.$c->id.'][id]', null); |
| 54 | 54 | $mform->setType('featured['.$c->id.'][id]', PARAM_INT); |