Skip to content

Commit

Permalink
Updated to support Moodle 4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
vasanthlmsace committed May 4, 2022
1 parent 8b269a3 commit 8c589ca
Show file tree
Hide file tree
Showing 19 changed files with 74 additions and 51 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/moodle-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,14 @@ jobs:
matrix:
include:
- php: '8.0'
moodle-branch: 'MOODLE_311_STABLE'
moodle-branch: 'master'
database: 'pgsql'

- php: '7.4'
moodle-branch: 'MOODLE_311_STABLE'
moodle-branch: 'master'
database: 'mariadb'
- php: '7.4'
moodle-branch: 'MOODLE_311_STABLE'
database: 'pgsql'
- php: '7.4'
moodle-branch: 'MOODLE_310_STABLE'
moodle-branch: 'master'
database: 'pgsql'
- php: '7.3'
moodle-branch: 'MOODLE_39_STABLE'
database: 'mariadb'

steps:
- name: Check out repository code
Expand Down
5 changes: 3 additions & 2 deletions lang/en/local_learningtools.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@
$string['learningtools:studentcontroller'] = "Learning Tools student controller.";

$string['bookmarksusermenu'] = "Display Bookmarks tool in user menu";
$string['bookmarksusermenu_help'] = "bookmarks,local_learningtools|/local/learningtools/ltool/bookmarks/list.php|b/bookmark-new";
$string['bookmarksusermenu_help'] = "bookmarks,local_learningtools|/local/learningtools/ltool/bookmarks/list.php";
$string['notesusermenu'] = "Display Notes tool in user menu";
$string['notesusermenu_help'] = "notes,local_learningtools|/local/learningtools/ltool/note/list.php|i/edit";
$string['notesusermenu_help'] = "notes,local_learningtools|/local/learningtools/ltool/note/list.php";


// Bookmarks strings.
Expand Down Expand Up @@ -195,6 +195,7 @@
// Schedule tool.
$string['schedule'] = "Schedule";
$string['visitpage'] = "Visit page";
$string['successtoolschedule'] = "Schedule added the user calendar";

// Time management.

Expand Down
4 changes: 2 additions & 2 deletions ltool/bookmarks/tests/ltool_bookmarks_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function setup(): void {

/**
* Case to test the external method to create/delete bookmarks.
*
* @covers ::ltool_bookmarks_check_page_bookmarks_exist
* @return void
*/
public function test_external_test(): void {
Expand All @@ -77,7 +77,7 @@ public function test_external_test(): void {

/**
* Case to test the save function to create/delete bookmarks.
*
* @covers ::ltool_bookmarks_user_save_bookmarks
* @return void
*/
public function test_bookmark_save(): void {
Expand Down
11 changes: 10 additions & 1 deletion ltool/focus/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,18 @@
// Define the Focus mode css.
$name = "ltool_focus/focusmodecss";
$title = get_string('focusmodecss', 'local_learningtools');
$default = '#page-footer, .d-print-none, .navbar {
$default = '#page-footer, .navbar, #page.drawers {
display: none;
}
.header-maxwidth, .secondary-navigation {
max-width: none;
}
#page.drawers {
margin-top: 0;
}
.pagelayout-standard #page.drawers .main-inner, body.limitedwidth #page.drawers .main-inner {
max-width: none;
}
#page {
margin-top: 0px;
transition: margin-top .5s;
Expand Down
1 change: 1 addition & 0 deletions ltool/focus/tests/ltool_focus_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public function setup(): void {

/**
* Create css file in temp directory.
* @covers ::ltool_focus_create_focus_temp_cssfile
*/
public function test_ltool_focus_create_focus_temp_cssfile() {
$configdata = get_config('ltool_focus', 'focusmodecss');
Expand Down
2 changes: 1 addition & 1 deletion ltool/note/amd/build/learningnote.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8c589ca

Please sign in to comment.