Skip to content

Commit

Permalink
MDL-19799 Upgraded calls to print_heading_block
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasconnault committed Aug 6, 2009
1 parent 27ca34a commit 706b82d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,10 @@
} else {
$subtext = get_string('subscribe', 'forum');
}
print_heading_block($newsforum->name);
echo $OUTPUT->heading($newsforum->name, 2, 'headingblock header');
echo '<div class="subscribelink"><a href="mod/forum/subscribe.php?id='.$newsforum->id.'">'.$subtext.'</a></div>';
} else {
print_heading_block($newsforum->name);
echo $OUTPUT->heading($newsforum->name, 2, 'headingblock header');
}

forum_print_latest_discussions($SITE, $newsforum, $SITE->newsitems, 'plain', 'p.modified DESC');
Expand All @@ -173,18 +173,18 @@
case FRONTPAGECOURSELIST:

if (isloggedin() and !has_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM)) and !isguest() and empty($CFG->disablemycourses)) {
print_heading_block(get_string('mycourses'));
echo $OUTPUT->heading(get_string('mycourses'), 2, 'headingblock header');
print_my_moodle();
} else if ((!has_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM)) and !isguest()) or ($DB->count_records('course') <= FRONTPAGECOURSELIMIT)) {
// admin should not see list of courses when there are too many of them
print_heading_block(get_string('availablecourses'));
echo $OUTPUT->heading(get_string('availablecourses'), 2, 'headingblock header');
print_courses(0);
}
break;

case FRONTPAGECATEGORYNAMES:

print_heading_block(get_string('categories'));
echo $OUTPUT->heading(get_string('categories'), 2, 'headingblock header');
print_box_start('generalbox categorybox');
print_whole_category_list(NULL, NULL, NULL, -1, false);
print_box_end();
Expand All @@ -193,7 +193,7 @@

case FRONTPAGECATEGORYCOMBO:

print_heading_block(get_string('categories'));
echo $OUTPUT->heading(get_string('categories'), 2, 'headingblock header');
print_box_start('generalbox categorybox');
print_whole_category_list(NULL, NULL, NULL, -1, true);
print_box_end();
Expand Down

0 comments on commit 706b82d

Please sign in to comment.