@@ -112,7 +112,7 @@ |
||
112 | 112 | } |
113 | 113 | |
114 | 114 | public function instance_allow_multiple() { |
115 | - return false; |
|
115 | + return false; |
|
116 | 116 | } |
117 | 117 | |
118 | 118 | public function has_config() { |
@@ -59,10 +59,10 @@ |
||
59 | 59 | |
60 | 60 | echo $OUTPUT->header(), |
61 | 61 | |
62 | - $OUTPUT->box_start('generalbox errorboxcontent boxaligncenter boxwidthnormal'), |
|
63 | - html_writer::tag('p', get_string('confirmdelete', 'block_featuredcourses'), array('class' => 'bold')); |
|
62 | + $OUTPUT->box_start('generalbox errorboxcontent boxaligncenter boxwidthnormal'), |
|
63 | + html_writer::tag('p', get_string('confirmdelete', 'block_featuredcourses'), array('class' => 'bold')); |
|
64 | 64 | |
65 | 65 | $mform->display(); |
66 | 66 | |
67 | 67 | echo $OUTPUT->box_end(), |
68 | - $OUTPUT->footer(); |
|
68 | + $OUTPUT->footer(); |
@@ -31,7 +31,7 @@ |
||
31 | 31 | |
32 | 32 | $mform->addElement('header', 'configheader', get_string('blocksettings', 'block')); |
33 | 33 | $mform->addElement('static', 'link', |
34 | - get_string('editlink', 'block_featuredcourses', |
|
35 | - $CFG->wwwroot.'/blocks/featuredcourses/featuredcourses.php')); |
|
34 | + get_string('editlink', 'block_featuredcourses', |
|
35 | + $CFG->wwwroot.'/blocks/featuredcourses/featuredcourses.php')); |
|
36 | 36 | } |
37 | 37 | } |
@@ -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(); |
@@ -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'); |