Skip to content

Commit e3ed3b7

Browse files
Roll in #13 and add fix for #16
1 parent 17e012f commit e3ed3b7

5 files changed

Lines changed: 10 additions & 10 deletions

File tree

KNOWNISSUES

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
Responsiveness of grid items at lower screen resolutions
2-
Responsiveness of list items at >800px
1+
Some default responsiveness behaviour

block_lw_courses.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ public function has_config() {
110110
* @return array
111111
*/
112112
public function applicable_formats() {
113-
return array('my' => true);
113+
// 'all' => true
114+
return array('my' => true, 'site' => true);
114115
}
115116

116117
/**

locallib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ function block_lw_courses_get_sorted_courses($showallcourses = false) {
218218
break;
219219
}
220220

221-
// Make sure user is still enroled.
221+
// Make sure user is still enrolled.
222222
if (isset($courses[$cid])) {
223223
$sortedcourses[$cid] = $courses[$cid];
224224
$counter++;

readme.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
[![Issue Count](https://lima.codeclimate.com/github/learningworks/moodle-block_lw_courses/badges/issue_count.svg)](https://lima.codeclimate.com/github/learningworks/moodle-block_lw_courses)
55
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](readme.md)
66

7-
Installation Instruction
8-
=====================
7+
Installation Instructions
8+
=========================
99

1010
* Make sure you have all the required versions.
1111
* Download and unpack the block folder.
@@ -19,23 +19,23 @@ Moodle compatibility
1919
=====================
2020
* Tested with Moodle 3.1, 3.2 and 3.3
2121

22+
2223
Features
2324
====================
2425
* Unique dashboard for learners and teachers
2526
* Two layouts to choose from
26-
* Show's leraner's progress in a course from their home page
27+
* Shows learner's progress in a course from their home page
2728
* Can show teachers within a course
2829
* Block and setting default images for courses
2930
* Render course summary file images
3031
* Display course summary text
3132

32-
3333
![List styling](https://github.com/learningworks/moodle-block_lw_courses/raw/master/pix/list.png "List styling")
3434
![Grid styling](https://github.com/learningworks/moodle-block_lw_courses/raw/master/pix/grid.png "Grid styling")
3535

3636
Change log
3737
=====================
38-
Please Look in CHANGELOG
38+
Please look in CHANGELOG
3939

4040
About Author
4141
=====================

renderer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ public function course_image_defaults() {
514514
$image = html_writer::empty_tag('img', array( 'src' => $imageurl, 'class' => 'course_image' ));
515515
return html_writer::div($image, 'image_wrap');
516516
} else {
517-
// We need a CSS soloution apparently lets give it to em.
517+
// We need a CSS solution apparently lets give it to 'em.
518518
return html_writer::div('', 'course_image_embed',
519519
array("style" => 'background-image:url('.$imageurl.'); background-size:cover'));
520520
}

0 commit comments

Comments
 (0)