]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-19798 Migrated calls to print_heading
authornicolasconnault <nicolasconnault>
Thu, 6 Aug 2009 08:15:26 +0000 (08:15 +0000)
committernicolasconnault <nicolasconnault>
Thu, 6 Aug 2009 08:15:26 +0000 (08:15 +0000)
group/autogroup.php
group/grouping.php
group/groupings.php
group/index.php
group/overview.php

index 19a27290af14a4f879d6257f475c3130a0ee58ca..ff0836b076fb36b91de830e3e5a2b2acddd786c7 100644 (file)
@@ -233,7 +233,7 @@ if ($editform->is_cancelled()) {
 
 /// Print header
 print_header_simple($strgroups, ': '.$strgroups, $navigation, '', '', true, '', navmenu($course));
-print_heading($strautocreategroups);
+echo $OUTPUT->heading($strautocreategroups);
 
 if ($error != '') {
     notify($error);
@@ -243,7 +243,7 @@ if ($error != '') {
 $editform->display();
 
 if($preview !== '') {
-       print_heading(get_string('groupspreview', 'group'));
+       echo $OUTPUT->heading(get_string('groupspreview', 'group'));
 
     echo $preview;
 }
index 41d7da2ed89fb23da08702da601fec5745e76ff8..6fff6d18434275f5e4e60afeb23288c4c148bde3 100644 (file)
@@ -106,7 +106,7 @@ $navigation = build_navigation($navlinks);
 print_header_simple($strgroupings, ': '.$strgroupings, $navigation, '', '', true, '', navmenu($course));
 
 
-print_heading($strheading);
+echo $OUTPUT->heading($strheading);
 $editform->display();
 print_footer($course);
 
index 6b6ffebc6d34ecebb7dfdd33d2da98ea6cc4b03e..74e5d0939e449d1f94ffc3d5701ca32ce26b122b 100644 (file)
@@ -37,7 +37,7 @@ print_header_simple($strgroupings, ': '.$strgroupings, $navigation, '', '', true
 $currenttab = 'groupings';
 require('tabs.php');
 
-print_heading($strgroupings);
+echo $OUTPUT->heading($strgroupings);
 
 $data = array();
 if ($groupings = $DB->get_records('groupings', array('courseid'=>$course->id), 'name')) {
index 42868277dbf01636751d42ba2fb8a25941e0d82f..d4af670c6a5cd22b18975370d3fb6b4fb42548c1 100644 (file)
@@ -149,7 +149,7 @@ if (ajaxenabled()) {
     $deletegroup_disabled = '';
 }
 
-print_heading(format_string($course->shortname) .' '.$strgroups, 'center', 3);
+echo $OUTPUT->heading(format_string($course->shortname) .' '.$strgroups, 3, 'mdl-align');
 echo '<form id="groupeditform" action="index.php" method="post">'."\n";
 echo '<div>'."\n";
 echo '<input type="hidden" name="id" value="' . $courseid . '" />'."\n";
index 9750031d24e01b2c63124b8f6a44c7a23f54c3ec..9836fd9aaa5370d386712e10ee74bd054ad88e3d 100644 (file)
@@ -119,7 +119,7 @@ $currenttab = 'overview';
 require('tabs.php');
 
 /// Print overview
-print_heading(format_string($course->shortname) .' '.$stroverview, 'center', 3);
+echo $OUTPUT->heading(format_string($course->shortname) .' '.$stroverview, 3, 'mdl-align');
 
 echo $strfiltergroups;
 
@@ -180,9 +180,9 @@ foreach ($members as $gpgid=>$groupdata) {
     }
     if (!empty($CFG->enablegroupings)) {
         if ($gpgid < 0) {
-            print_heading($strnotingrouping, '', 3);
+            echo $OUTPUT->heading($strnotingrouping, 3);
         } else {
-            print_heading(format_string($groupings[$gpgid]->name), '', 3);
+            echo $OUTPUT->heading(format_string($groupings[$gpgid]->name), 3);
             print_box(format_text($groupings[$gpgid]->description), 'generalbox boxwidthnarrow boxaligncenter');
         }
     }