You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: lang/en/theme_boost_union.php
+4
Original file line number
Diff line number
Diff line change
@@ -933,6 +933,10 @@
933
933
$string['showhintcoursehiddensetting_desc'] = 'With this setting a hint will appear in the course header as long as the visibility of the course is hidden. This helps to identify the visibility state of a course at a glance without the need for looking at the course settings.';
934
934
$string['showhintcoursehiddengeneral'] = 'This course is currently <strong>hidden</strong>. Only enrolled teachers can access this course when hidden.';
935
935
$string['showhintcoursehiddensettingslink'] = 'You can change the visibility in the <a href="{$a->url}">course settings</a>.';
936
+
// ... ... Setting: Show hint that notifications don't work within forums for hidden courses.
937
+
$string['showhintforumnotificationssetting'] = 'Show hint regarding notifications in hidden courses';
938
+
$string['showhintforumnotificationssetting_desc'] = 'When a course is hidden notifications within a forum are not send to students. To clarify this a hint will appear on forums within a hidden course to help the teachers understand this circumstance.';
939
+
$string['showhintforumnotifications'] = 'This course is currently <strong>hidden</strong>. Please note that this means that <strong>students will not be notified</strong> online or by email of any messages you post in this forum.';
936
940
// ... ... Setting: Show hint for guest access.
937
941
$string['showhintcoursguestaccesssetting'] = 'Show hint for guest access';
938
942
$string['showhintcourseguestaccesssetting_desc'] = 'With this setting a hint will appear in the course header when a user is accessing it with the guest access feature. If the course provides an active self enrolment, a link to that page is also presented to the user.';
Boost Union template for outputting the hidden course hint on forum pages.
21
+
22
+
Context variables required for this template:
23
+
* courseid - The course ID
24
+
* showhintforumnotifications - The info text shown at forum pages inside hidden courses
25
+
* showcoursesettingslink - The fact if a link to the course settings should be shown ornot
26
+
27
+
Example context (json):
28
+
{
29
+
"courseid": "123",
30
+
"showcoursesettingslink": true,
31
+
"showhintforumnotifications": "This course is currently <strong>hidden</strong>. Please note that this means that <strong>students will not be notified</strong> online or by email of any messages you post in this forum."
When I navigate to "Settings" in current page administration
65
+
And I set the following fields to these values:
66
+
| Coursevisibility | Hide |
67
+
And I click on "Save and display""button"
68
+
When I am on the "Announcements""forum activity" page
69
+
Then I should see "This course is currently hidden. Please note that this means that students will not be notified online or by email of any messages you post in this forum." in the ".course-hint-hidden""css_element"
70
+
When I am on "Course 1" course homepage
71
+
When I navigate to "Settings" in current page administration
72
+
And I set the following fields to these values:
73
+
| Coursevisibility | Show |
74
+
And I click on "Save and display""button"
75
+
Then I should not see "This course is currently hidden. Please note that this means that students will not be notified online or by email of any messages you post in this forum."
76
+
And ".course-hint-hidden""css_element" should not exist
77
+
52
78
Scenario: Setting: Show hint guest for access - Enable the setting
53
79
Given the following config values are set as admin:
@@ -146,7 +172,7 @@ Feature: Configuring the theme_boost_union plugin for the "Courses" tab on the "
146
172
147
173
Scenario: Setting: Show hint for self enrolment without an enrolment key - Enable the setting and check that it is hidden when new enrolments are disabled
148
174
Given the following config values are set as admin:
@@ -188,7 +214,7 @@ Feature: Configuring the theme_boost_union plugin for the "Courses" tab on the "
188
214
189
215
Scenario: Setting: Show hint for self enrolment without an enrolment key - Enable the setting and check the hints depending on the configured start and / or end dates
190
216
Given the following config values are set as admin:
0 commit comments