MDL-36782 usability: Adjustments following new mark as read icon
This commit is contained in:
+2
-2
@@ -208,7 +208,7 @@ if ($generalforums) {
|
||||
} else if ($unread = forum_tp_count_forum_unread_posts($cm, $course)) {
|
||||
$unreadlink = '<span class="unread"><a href="view.php?f='.$forum->id.'">'.$unread.'</a>';
|
||||
$unreadlink .= '<a title="'.$strmarkallread.'" href="markposts.php?f='.
|
||||
$forum->id.'&mark=read"><img src="'.$OUTPUT->pix_url('t/clear') . '" alt="'.$strmarkallread.'" /></a></span>';
|
||||
$forum->id.'&mark=read"><img src="'.$OUTPUT->pix_url('t/markasread') . '" alt="'.$strmarkallread.'" class="iconsmall" /></a></span>';
|
||||
} else {
|
||||
$unreadlink = '<span class="read">0</span>';
|
||||
}
|
||||
@@ -335,7 +335,7 @@ if ($course->id != SITEID) { // Only real courses have learning forums
|
||||
} else if ($unread = forum_tp_count_forum_unread_posts($cm, $course)) {
|
||||
$unreadlink = '<span class="unread"><a href="view.php?f='.$forum->id.'">'.$unread.'</a>';
|
||||
$unreadlink .= '<a title="'.$strmarkallread.'" href="markposts.php?f='.
|
||||
$forum->id.'&mark=read"><img src="'.$OUTPUT->pix_url('t/clear') . '" alt="'.$strmarkallread.'" /></a></span>';
|
||||
$forum->id.'&mark=read"><img src="'.$OUTPUT->pix_url('t/markasread') . '" alt="'.$strmarkallread.'" class="iconsmall" /></a></span>';
|
||||
} else {
|
||||
$unreadlink = '<span class="read">0</span>';
|
||||
}
|
||||
|
||||
+3
-3
@@ -3727,7 +3727,7 @@ function forum_print_discussion_header(&$post, $forum, $group=-1, $datestring=""
|
||||
echo '</a>';
|
||||
echo '<a title="'.$strmarkalldread.'" href="'.$CFG->wwwroot.'/mod/forum/markposts.php?f='.
|
||||
$forum->id.'&d='.$post->discussion.'&mark=read&returnpage=view.php">' .
|
||||
'<img src="'.$OUTPUT->pix_url('t/clear') . '" class="iconsmall" alt="'.$strmarkalldread.'" /></a>';
|
||||
'<img src="'.$OUTPUT->pix_url('t/markasread') . '" class="iconsmall" alt="'.$strmarkalldread.'" /></a>';
|
||||
echo '</span>';
|
||||
} else {
|
||||
echo '<span class="read">';
|
||||
@@ -5608,10 +5608,10 @@ function forum_print_latest_discussions($course, $forum, $maxdiscussions=-1, $di
|
||||
if ($cantrack) {
|
||||
echo '<th class="header replies" scope="col">'.get_string('unread', 'forum');
|
||||
if ($forumtracked) {
|
||||
echo ' <a title="'.get_string('markallread', 'forum').
|
||||
echo '<a title="'.get_string('markallread', 'forum').
|
||||
'" href="'.$CFG->wwwroot.'/mod/forum/markposts.php?f='.
|
||||
$forum->id.'&mark=read&returnpage=view.php">'.
|
||||
'<img src="'.$OUTPUT->pix_url('t/clear') . '" class="iconsmall" alt="'.get_string('markallread', 'forum').'" /></a>';
|
||||
'<img src="'.$OUTPUT->pix_url('t/markasread') . '" class="iconsmall" alt="'.get_string('markallread', 'forum').'" /></a>';
|
||||
}
|
||||
echo '</th>';
|
||||
}
|
||||
|
||||
@@ -88,6 +88,8 @@
|
||||
#page-mod-forum-view .unread a:first-child {padding-right: 10px;}
|
||||
#page-mod-forum-index .unread img,
|
||||
#page-mod-forum-view .unread img {margin-left: 5px;}
|
||||
#page-mod-forum-view .unread img {margin-left: 5px;}
|
||||
.dir-rtl#page-mod-forum-view .unread img {margin-right: 5px; margin-left: 0; }
|
||||
|
||||
/** Unknown Styles ??? */
|
||||
#email .unsubscribelink {margin-top:20px;}
|
||||
|
||||
@@ -325,7 +325,7 @@ function lti_build_request($instance, $typeconfig, $course) {
|
||||
}
|
||||
|
||||
function lti_get_tool_table($tools, $id) {
|
||||
global $CFG, $USER;
|
||||
global $CFG, $OUTPUT, $USER;
|
||||
$html = '';
|
||||
|
||||
$typename = get_string('typename', 'lti');
|
||||
|
||||
@@ -16,6 +16,7 @@ deprecation:
|
||||
* c/group: Use i/groupevent instead
|
||||
* c/site: Use i/siteevent instead
|
||||
* c/user: Use i/userevent instead
|
||||
* t/clear: Use t/check instead
|
||||
|
||||
optional changes:
|
||||
* new optional boolean parameter $withlinks for public function login_info() in lib/outputrenderers.php (MDL-31365)
|
||||
@@ -33,6 +34,8 @@ optional changes:
|
||||
* new icons t/addcontact, t/removecontact and t/messages, previously t/addgreen, t/delete and t/log were used in messaging.
|
||||
* new icons t/unblock and i/twoway.
|
||||
* new icons i/courseevent, i/groupevent, i/siteevent and i/userevent (16x16) instead of c/* for calendar events.
|
||||
* new icon t/markasread (12x12) to replace t/clear used in forums.
|
||||
* new icon t/check (12x12) to replace t/clear which name does not reflect the icon meaning.
|
||||
|
||||
=== 2.3 ===
|
||||
|
||||
|
||||
Reference in New Issue
Block a user