';
-echo $OUTPUT->heading(get_string('messages', 'chat'), 2, 'mdl-left');
+echo $OUTPUT->heading(get_string('messages', 'chat'), 3);
$allmessages = array();
$options = new stdClass();
diff --git a/mod/chat/index.php b/mod/chat/index.php
index a56e489e971..8de1b8d294b 100644
--- a/mod/chat/index.php
+++ b/mod/chat/index.php
@@ -29,6 +29,7 @@ $PAGE->navbar->add($strchats);
$PAGE->set_title($strchats);
$PAGE->set_heading($course->fullname);
echo $OUTPUT->header();
+echo $OUTPUT->heading($strchats, 2);
/// Get all the appropriate data
diff --git a/mod/chat/report.php b/mod/chat/report.php
index 35bd20288a9..43ab03007fa 100644
--- a/mod/chat/report.php
+++ b/mod/chat/report.php
@@ -65,6 +65,7 @@
$PAGE->navbar->add($strchatreport);
$PAGE->set_title(format_string($chat->name).": $strchatreport");
echo $OUTPUT->header();
+ echo $OUTPUT->heading(format_string($chat->name), 2);
/// Check to see if groups are being used here
$groupmode = groups_get_activity_groupmode($cm);
@@ -133,8 +134,7 @@
$PAGE->set_title(format_string($chat->name).": $strchatreport");
echo $OUTPUT->header();
- echo $OUTPUT->heading(format_string($chat->name).': '.get_string('sessions', 'chat'));
-
+ echo $OUTPUT->heading(format_string($chat->name).': '.get_string('sessions', 'chat'), 2);
/// Check to see if groups are being used here
if ($groupmode = groups_get_activity_groupmode($cm)) { // Groups are being used
@@ -168,16 +168,16 @@
/// Get the messages
if (empty($messages)) { /// May have already got them above
if (!$messages = $DB->get_records_select('chat_messages', "chatid = :chatid $groupselect", $params, "timestamp DESC")) {
- echo $OUTPUT->heading(get_string('nomessages', 'chat'));
+ echo $OUTPUT->heading(get_string('nomessages', 'chat'), 3);
echo $OUTPUT->footer();
exit;
}
}
if ($show_all) {
- echo $OUTPUT->heading(get_string('listing_all_sessions', 'chat') .
- '
' .
- get_string('list_complete_sessions', 'chat') . '');
+ $headingstr = get_string('listing_all_sessions', 'chat') . ' ';
+ $headingstr .= html_writer::link("report.php?id={$cm->id}&show_all=0", get_string('list_complete_sessions', 'chat'));
+ echo $OUTPUT->heading($headingstr, 3);
}
/// Show all the sessions
@@ -271,10 +271,10 @@
if (!$show_all and $complete_sessions == 0) {
- echo $OUTPUT->heading(get_string('no_complete_sessions_found', 'chat') .
- '
' .
- get_string('list_all_sessions', 'chat') .
- '');
+ echo html_writer::start_tag('p');
+ echo get_string('no_complete_sessions_found', 'chat') . ' ';
+ echo html_writer::link('report.php?id='.$cm->id.'&show_all=1', get_string('list_all_sessions', 'chat'));
+ echo html_writer::end_tag('p');
}
/// Finish the page
diff --git a/mod/chat/styles.css b/mod/chat/styles.css
index 92c3d81e715..739b47d2056 100644
--- a/mod/chat/styles.css
+++ b/mod/chat/styles.css
@@ -38,4 +38,3 @@
.path-mod-chat .yui-layout .yui-layout-hd {border:0;}
.path-mod-chat .yui-layout .yui-layout-unit div.yui-layout-bd {border:0;background: transparent;}
.path-mod-chat .yui-layout .yui-layout-unit div.yui-layout-unit-right {background: white;}
-.path-mod-chat .yui-layout-doc .yui-layout-unit .yui-layout-wrap .yui-layout-hd h2 {font-size:100%;padding:0px;font-weight:normal;}
diff --git a/mod/chat/view.php b/mod/chat/view.php
index 4daae972b5f..f3423db7059 100644
--- a/mod/chat/view.php
+++ b/mod/chat/view.php
@@ -95,7 +95,6 @@ echo $OUTPUT->header();
/// Check to see if groups are being used here
$groupmode = groups_get_activity_groupmode($cm);
$currentgroup = groups_get_activity_group($cm, true);
-groups_print_activity_menu($cm, $CFG->wwwroot . "/mod/chat/view.php?id=$cm->id");
// url parameters
$params = array();
@@ -108,12 +107,14 @@ if ($currentgroup) {
$groupparam = "";
}
-echo $OUTPUT->heading(format_string($chat->name));
+echo $OUTPUT->heading(format_string($chat->name), 2);
if ($chat->intro) {
echo $OUTPUT->box(format_module_intro('chat', $chat, $cm->id), 'generalbox', 'intro');
}
+groups_print_activity_menu($cm, $CFG->wwwroot . "/mod/chat/view.php?id=$cm->id");
+
if (has_capability('mod/chat:chat', $context)) {
/// Print the main part of the page
echo $OUTPUT->box_start('generalbox', 'enterlink');
@@ -161,7 +162,7 @@ chat_delete_old_users();
if ($chatusers = chat_get_users($chat->id, $currentgroup, $cm->groupingid)) {
$timenow = time();
echo $OUTPUT->box_start('generalbox', 'chatcurrentusers');
- echo $OUTPUT->heading($strcurrentusers, 4);
+ echo $OUTPUT->heading($strcurrentusers, 3);
echo '
';
foreach ($chatusers as $chatuser) {
$lastping = $timenow - $chatuser->lastmessageping;
diff --git a/mod/data/edit.php b/mod/data/edit.php
index 43e429ba27e..6dd0367a14b 100644
--- a/mod/data/edit.php
+++ b/mod/data/edit.php
@@ -249,10 +249,9 @@ if ($datarecord = data_submitted() and confirm_sesskey()) {
/// Print the page header
echo $OUTPUT->header();
-groups_print_activity_menu($cm, $CFG->wwwroot.'/mod/data/edit.php?d='.$data->id);
-echo $OUTPUT->heading(format_string($data->name));
-
+echo $OUTPUT->heading(format_string($data->name), 2);
echo $OUTPUT->box(format_module_intro('data', $data, $cm->id), 'generalbox', 'intro');
+groups_print_activity_menu($cm, $CFG->wwwroot.'/mod/data/edit.php?d='.$data->id);
/// Print the tabs
@@ -277,7 +276,7 @@ echo '';
echo $OUTPUT->box_start('generalbox boxaligncenter boxwidthwide');
if (!$rid){
- echo $OUTPUT->heading(get_string('newentry','data'), 2);
+ echo $OUTPUT->heading(get_string('newentry','data'), 3);
}
/******************************************
diff --git a/mod/data/export.php b/mod/data/export.php
index 0bb604cc9e4..7ed1ec52b45 100644
--- a/mod/data/export.php
+++ b/mod/data/export.php
@@ -84,10 +84,11 @@ if($mform->is_cancelled()) {
$PAGE->set_title($data->name);
$PAGE->set_heading($course->fullname);
echo $OUTPUT->header();
+ echo $OUTPUT->heading(format_string($data->name), 2);
+ echo $OUTPUT->box(format_module_intro('data', $data, $cm->id), 'generalbox', 'intro');
+
$url = new moodle_url('/mod/data/export.php', array('d' => $d));
groups_print_activity_menu($cm, $url);
- echo $OUTPUT->heading(format_string($data->name));
- echo $OUTPUT->box(format_module_intro('data', $data, $cm->id), 'generalbox', 'intro');
// these are for the tab display
$currentgroup = groups_get_activity_group($cm);
diff --git a/mod/data/index.php b/mod/data/index.php
index 94a7323f394..ae7aa688ee2 100644
--- a/mod/data/index.php
+++ b/mod/data/index.php
@@ -50,6 +50,7 @@ $PAGE->navbar->add($strdata, new moodle_url('/mod/data/index.php', array('id'=>$
$PAGE->set_title($strdata);
$PAGE->set_heading($course->fullname);
echo $OUTPUT->header();
+echo $OUTPUT->heading($strdataplural, 2);
if (! $datas = get_all_instances_in_course("data", $course)) {
notice(get_string('thereareno', 'moodle',$strdataplural) , "$CFG->wwwroot/course/view.php?id=$course->id");
diff --git a/mod/data/lib.php b/mod/data/lib.php
index 4d8c1d7fa1b..8123cc85c50 100644
--- a/mod/data/lib.php
+++ b/mod/data/lib.php
@@ -279,7 +279,7 @@ class data_field_base { // Base class for Database Field Types (see field/*/
echo ''."\n";
echo ''."\n";
- echo $OUTPUT->heading($this->name());
+ echo $OUTPUT->heading($this->name(), 3);
require_once($CFG->dirroot.'/mod/data/field/'.$this->type.'/mod.html');
@@ -1997,14 +1997,13 @@ function data_print_header($course, $cm, $data, $currenttab='') {
$PAGE->set_title($data->name);
echo $OUTPUT->header();
- echo $OUTPUT->heading(format_string($data->name));
+ echo $OUTPUT->heading(format_string($data->name), 2);
+ echo $OUTPUT->box(format_module_intro('data', $data, $cm->id), 'generalbox', 'intro');
-// Groups needed for Add entry tab
+ // Groups needed for Add entry tab
$currentgroup = groups_get_activity_group($cm);
$groupmode = groups_get_activity_groupmode($cm);
- echo $OUTPUT->box(format_module_intro('data', $data, $cm->id), 'generalbox', 'intro');
-
// Print the tabs
if ($currenttab) {
diff --git a/mod/data/preset.php b/mod/data/preset.php
index 673d43ab50b..38d63694945 100644
--- a/mod/data/preset.php
+++ b/mod/data/preset.php
@@ -97,7 +97,7 @@ $form_save->set_data(array('d' => $data->id, 'name'=>$data->name));
/* Output */
if (!$form_export->is_submitted()) {
echo $OUTPUT->header();
- echo $OUTPUT->heading(format_string($data->name));
+ echo $OUTPUT->heading(format_string($data->name), 2);
// Needed for tabs.php
$currenttab = 'presets';
@@ -243,13 +243,13 @@ if (optional_param('sesskey', false, PARAM_BOOL) && confirm_sesskey()) {
}
// Export forms
-echo $OUTPUT->heading(get_string('export', 'data'));
+echo $OUTPUT->heading(get_string('export', 'data'), 3);
$form_export->display();
$form_save->display();
// Import forms
-echo $OUTPUT->heading(get_string('import'));
+echo $OUTPUT->heading(get_string('import'), 3);
$form_importzip->display();
$form_importexisting->display();
-echo $OUTPUT->footer();
\ No newline at end of file
+echo $OUTPUT->footer();
diff --git a/mod/data/renderer.php b/mod/data/renderer.php
index 1dff332839f..a8d0e6ccacd 100644
--- a/mod/data/renderer.php
+++ b/mod/data/renderer.php
@@ -32,7 +32,7 @@ class mod_data_renderer extends plugin_renderer_base {
}
if (!empty($newfields)) {
- $html .= $this->output->heading_with_help($strfieldmappings, 'fieldmappings', 'data');
+ $html .= $this->output->heading_with_help($strfieldmappings, 'fieldmappings', 'data', '', '', 3);
$table = new html_table();
$table->data = array();
diff --git a/mod/data/styles.css b/mod/data/styles.css
index 7cdd2f9b49c..fc6a8ae2283 100644
--- a/mod/data/styles.css
+++ b/mod/data/styles.css
@@ -66,4 +66,4 @@
.dir-rtl .mod-data-default-template .template-field {text-align:left;}
.dir-rtl .mod-data-default-template .template-token {text-align:right;}
-.dir-rtl .mod-data-default-template searchcontrols {text-align:left;}
\ No newline at end of file
+.dir-rtl .mod-data-default-template searchcontrols {text-align:left;}
diff --git a/mod/data/templates.php b/mod/data/templates.php
index 51add903e12..f17ce6f1906 100644
--- a/mod/data/templates.php
+++ b/mod/data/templates.php
@@ -92,15 +92,13 @@ $PAGE->set_title($data->name);
$PAGE->set_heading($course->fullname);
$PAGE->set_pagelayout('report');
echo $OUTPUT->header();
-echo $OUTPUT->heading(format_string($data->name));
-
+echo $OUTPUT->heading(format_string($data->name), 2);
+echo $OUTPUT->box(format_module_intro('data', $data, $cm->id), 'generalbox', 'intro');
/// Groups needed for Add entry tab
$currentgroup = groups_get_activity_group($cm);
$groupmode = groups_get_activity_groupmode($cm);
-echo $OUTPUT->box(format_module_intro('data', $data, $cm->id), 'generalbox', 'intro');
-
/// Print the tabs.
$currenttab = 'templates';
include('tabs.php');
diff --git a/mod/data/view.php b/mod/data/view.php
index 2594e1db3c4..3c016110c9f 100644
--- a/mod/data/view.php
+++ b/mod/data/view.php
@@ -325,8 +325,6 @@
echo $OUTPUT->header();
/// Check to see if groups are being used here
- $returnurl = $CFG->wwwroot . '/mod/data/view.php?d='.$data->id.'&search='.s($search).'&sort='.s($sort).'&order='.s($order).'&';
- groups_print_activity_menu($cm, $returnurl);
$currentgroup = groups_get_activity_group($cm);
$groupmode = groups_get_activity_groupmode($cm);
$canmanageentries = has_capability('mod/data:manageentries', $context);
@@ -345,7 +343,7 @@
}
}
- echo $OUTPUT->heading(format_string($data->name));
+ echo $OUTPUT->heading(format_string($data->name), 2);
// Do we need to show a link to the RSS feed for the records?
//this links has been Settings (database activity administration) block
@@ -361,6 +359,9 @@
$options->noclean = true;
}
echo $OUTPUT->box(format_module_intro('data', $data, $cm->id), 'generalbox', 'intro');
+
+ $returnurl = $CFG->wwwroot . '/mod/data/view.php?d='.$data->id.'&search='.s($search).'&sort='.s($sort).'&order='.s($order).'&';
+ groups_print_activity_menu($cm, $returnurl);
/// Delete any requested records
diff --git a/mod/forum/discuss.php b/mod/forum/discuss.php
index c387790549b..3d85629e331 100644
--- a/mod/forum/discuss.php
+++ b/mod/forum/discuss.php
@@ -160,6 +160,7 @@
$PAGE->set_heading($course->fullname);
$PAGE->set_button($searchform);
echo $OUTPUT->header();
+ echo $OUTPUT->heading(format_string($forum->name), 2);
/// Check to see if groups are being used in this forum
/// If so, make sure the current person is allowed to see this discussion
diff --git a/mod/forum/index.php b/mod/forum/index.php
index 93b1656c483..3658a3ff081 100644
--- a/mod/forum/index.php
+++ b/mod/forum/index.php
@@ -477,12 +477,12 @@ if (!isguestuser() && isloggedin() && $can_subscribe) {
}
if ($generalforums) {
- echo $OUTPUT->heading(get_string('generalforums', 'forum'));
+ echo $OUTPUT->heading(get_string('generalforums', 'forum'), 2);
echo html_writer::table($generaltable);
}
if ($learningforums) {
- echo $OUTPUT->heading(get_string('learningforums', 'forum'));
+ echo $OUTPUT->heading(get_string('learningforums', 'forum'), 2);
echo html_writer::table($learningtable);
}
diff --git a/mod/forum/post.php b/mod/forum/post.php
index 63342eee002..6f39445a10d 100644
--- a/mod/forum/post.php
+++ b/mod/forum/post.php
@@ -372,6 +372,7 @@ if (!empty($forum)) { // User is starting a new discussion in a forum
forum_go_back_to("discuss.php?d=$post->discussion"));
}
echo $OUTPUT->header();
+ echo $OUTPUT->heading(format_string($forum->name), 2);
echo $OUTPUT->confirm(get_string("deletesureplural", "forum", $replycount+1),
"post.php?delete=$delete&confirm=$delete",
$CFG->wwwroot.'/mod/forum/discuss.php?d='.$post->discussion.'#p'.$post->id);
@@ -385,6 +386,7 @@ if (!empty($forum)) { // User is starting a new discussion in a forum
}
} else {
echo $OUTPUT->header();
+ echo $OUTPUT->heading(format_string($forum->name), 2);
echo $OUTPUT->confirm(get_string("deletesure", "forum", $replycount),
"post.php?delete=$delete&confirm=$delete",
$CFG->wwwroot.'/mod/forum/discuss.php?d='.$post->discussion.'#p'.$post->id);
@@ -467,7 +469,8 @@ if (!empty($forum)) { // User is starting a new discussion in a forum
$PAGE->set_title(format_string($discussion->name).": ".format_string($post->subject));
$PAGE->set_heading($course->fullname);
echo $OUTPUT->header();
- echo $OUTPUT->heading(get_string('pruneheading', 'forum'));
+ echo $OUTPUT->heading(format_string($forum->name), 2);
+ echo $OUTPUT->heading(get_string('pruneheading', 'forum'), 3);
echo '';
include('prune.html');
@@ -861,6 +864,7 @@ $PAGE->set_title("$course->shortname: $strdiscussionname ".format_string($toppos
$PAGE->set_heading($course->fullname);
echo $OUTPUT->header();
+echo $OUTPUT->heading(format_string($forum->name), 2);
// checkup
if (!empty($parent) && !forum_user_can_see_post($forum, $discussion, $post, null, $cm)) {
diff --git a/mod/forum/search.php b/mod/forum/search.php
index d7dd8b77793..c7cc504d2f8 100644
--- a/mod/forum/search.php
+++ b/mod/forum/search.php
@@ -146,7 +146,9 @@ if (!$posts = forum_search_posts($searchterms, $course->id, $page*$perpage, $per
$PAGE->set_title($strsearchresults);
$PAGE->set_heading($course->fullname);
echo $OUTPUT->header();
- echo $OUTPUT->heading(get_string("noposts", "forum"));
+ echo $OUTPUT->heading($strforums, 2);
+ echo $OUTPUT->heading($strsearchresults, 3);
+ echo $OUTPUT->heading(get_string("noposts", "forum"), 4);
if (!$individualparams) {
$words = $search;
@@ -189,7 +191,8 @@ echo ''.get_string('advancedsearch','forum').'...';
echo '';
-echo $OUTPUT->heading("$strsearchresults: $totalcount");
+echo $OUTPUT->heading($strforums, 2);
+echo $OUTPUT->heading("$strsearchresults: $totalcount", 3);
$url = new moodle_url('search.php', array('search' => $search, 'id' => $course->id, 'perpage' => $perpage));
echo $OUTPUT->paging_bar($totalcount, $page, $perpage, $url);
diff --git a/mod/forum/view.php b/mod/forum/view.php
index 2283ad4a3cd..21c5ebde455 100644
--- a/mod/forum/view.php
+++ b/mod/forum/view.php
@@ -121,10 +121,13 @@
notice(get_string('noviewdiscussionspermission', 'forum'));
}
+ echo $OUTPUT->heading(format_string($forum->name), 2);
+ if (!empty($forum->intro) && $forum->type != 'single' && $forum->type != 'teacher') {
+ echo $OUTPUT->box(format_module_intro('forum', $forum, $cm->id), 'generalbox', 'intro');
+ }
+
/// find out current groups mode
groups_print_activity_menu($cm, $CFG->wwwroot . '/mod/forum/view.php?id=' . $cm->id);
- $currentgroup = groups_get_activity_group($cm);
- $groupmode = groups_get_activity_groupmode($cm);
/// Okay, we can show the discussions. Log the forum view.
if ($cm->id) {
@@ -187,9 +190,6 @@
break;
case 'eachuser':
- if (!empty($forum->intro)) {
- echo $OUTPUT->box(format_module_intro('forum', $forum, $cm->id), 'generalbox', 'intro');
- }
echo '';
if (forum_user_can_post_discussion($forum, null, -1, $cm)) {
print_string("allowsdiscussions", "forum");
@@ -213,9 +213,6 @@
break;
case 'blog':
- if (!empty($forum->intro)) {
- echo $OUTPUT->box(format_module_intro('forum', $forum, $cm->id), 'generalbox', 'intro');
- }
echo '
';
if (!empty($showall)) {
forum_print_latest_discussions($course, $forum, 0, 'plain', '', -1, -1, -1, 0, $cm);
@@ -225,9 +222,6 @@
break;
default:
- if (!empty($forum->intro)) {
- echo $OUTPUT->box(format_module_intro('forum', $forum, $cm->id), 'generalbox', 'intro');
- }
echo '
';
if (!empty($showall)) {
forum_print_latest_discussions($course, $forum, 0, 'header', '', -1, -1, -1, 0, $cm);