usort($etags, "blog_tags_sort");
/// Finally we create the output
+ /// Accessibility: markup as a list.
+ $this->content->text .= "\n<ul class='inline-list'>\n";
foreach ($etags as $tag) {
switch ($CFG->bloglevel) {
case BLOG_USER_LEVEL:
}
$link = $CFG->wwwroot.'/blog/index.php?filtertype='.$filtertype.'&filterselect='.$filterselect.'&tagid='.$tag->id;
- $this->content->text .= '<a href="'.$link.'" '.
+ $this->content->text .= '<li><a href="'.$link.'" '.
'class="'.$tag->class.'" '.
'title="'.get_string('numberofentries','blog',$tag->ct).'">'.
- $tag->text.'</a> ';
+ $tag->text.'</a></li> ';
}
+ $this->content->text .= "\n</ul>\n";
}
return $this->content;
$strftimerecent = get_string('strftimerecent');
$strmore = get_string('more', 'forum');
+ /// Accessibility: markup as a list.
+ $text .= "\n<ul class='unlist'>\n";
foreach ($discussions as $discussion) {
$discussion->subject = $discussion->name;
$discussion->subject = format_string($discussion->subject, true, $forum->course);
- $text .= '<div class="post">'.
+ $text .= '<li class="post">'.
'<div class="head">'.
'<div class="date">'.userdate($discussion->modified, $strftimerecent).'</div>'.
'<div class="name">'.fullname($discussion).'</div></div>'.
'<div class="info">'.$discussion->subject.' '.
'<a href="'.$CFG->wwwroot.'/mod/forum/discuss.php?d='.$discussion->discussion.'">'.
$strmore.'...</a></div>'.
- '</div>';
+ "</li>\n";
}
+ $text .= "</ul>\n";
$this->content->text = $text;
$mygroupid = mygroupid($course->id);
$groupmode = array(); /// To cache group modes
+ $count = 0;
foreach ($logs as $log) {
//Get post info, I'll need it later
if ($post = forum_get_post_from_log($log)) {
//Create a temp valid module structure (course,id)
+ $tempmod = new object;
$tempmod->course = $log->course;
$tempmod->id = $post->forum;
//Obtain the visible property from the instance
}
if (! $heading) {
- print_headline(get_string('newforumposts', 'forum').':');
+ print_headline(get_string('newforumposts', 'forum').':', 3);
$heading = true;
$content = true;
}
$subjectclass = ($log->action == 'add discussion') ? ' bold' : '';
- echo '<div class="head">'.
+ //Accessibility: markup as a list.
+ if ($count < 1) {
+ echo "\n<ul class='unlist'>\n";
+ }
+ $count++;
+ echo '<li><div class="head">'.
'<div class="date">'.$date.'</div>'.
'<div class="name">'.fullname($post, has_capability('moodle/site:viewfullnames', $coursecontext)).'</div>'.
'</div>';
echo '"<a href="'.$CFG->wwwroot.'/mod/forum/'.str_replace('&', '&', $log->url).'">';
$post->subject = break_up_long_words(format_string($post->subject,true));
echo $post->subject;
- echo '</a>"</div>';
+ echo "</a>\"</div></li>\n";
}
}
+ echo "</ul>\n";
return $content;
}
-?>
+?>
\ No newline at end of file