Skip to content

Commit d3d8e8a

Browse files
committed
Annotation separation
update index call and template
1 parent bc190a3 commit d3d8e8a

File tree

11 files changed

+10811
-7488
lines changed

11 files changed

+10811
-7488
lines changed

classes/output/comment.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ private function addcssclasses($comment, $owner) {
126126
$comment->wrapperClass = 'chat-message comment-list-item';
127127
if ($comment->isquestion) {
128128
$comment->wrapperClass .= ' questioncomment';
129+
if($comment->visibility == 'private' || $comment->visibility == 'protected') {
130+
$comment->wrapperClass .= ' questions-private';
131+
}
129132
} else if ($comment->solved) {
130133
$comment->wrapperClass .= ' correct';
131134
}

lang/en/pdfannotator.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@
6666
$string['comment'] = 'Comment';
6767
$string['commentDeleted'] = 'Comment has been deleted';
6868
$string['comments'] = 'Comments';
69+
// Annotation separation.
70+
$string['comments_icon_private'] = 'This comment is private';
71+
$string['comments_icon_public'] = 'This comment is public';
72+
$string['comments_text_all'] = 'Show all comments';
73+
$string['comments_text_private'] = 'Only show private comments (orange)';
74+
$string['comments_text_public'] = 'Only show public comments (blue)';
6975
$string['configmaxbytes'] = 'Maximum file size';
7076
$string['correct'] = 'correct';
7177
$string['count'] = 'count';

locallib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function pdfannotator_display_embed($pdfannotator, $cm, $course, $file, $page =
6666
// Load and execute the javascript files.
6767
$PAGE->requires->js(new moodle_url("/mod/pdfannotator/shared/pdf.js?ver=00002"));
6868
$PAGE->requires->js(new moodle_url("/mod/pdfannotator/shared/textclipper.js"));
69-
$PAGE->requires->js(new moodle_url("/mod/pdfannotator/shared/index.js?ver=00039"));
69+
$PAGE->requires->js(new moodle_url("/mod/pdfannotator/shared/index.js?ver=00040"));
7070
$PAGE->requires->js(new moodle_url("/mod/pdfannotator/shared/locallib.js?ver=00006"));
7171

7272
// Pass parameters from PHP to JavaScript.

pix/comments_all.svg

Lines changed: 23 additions & 0 deletions
Loading

pix/comments_private.svg

Lines changed: 21 additions & 0 deletions
Loading

pix/comments_private_indicator.svg

Lines changed: 1 addition & 0 deletions
Loading

pix/comments_public.svg

Lines changed: 24 additions & 0 deletions
Loading

pix/comments_public_indicator.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)