]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-19756 Removed explicit aligning CSS class from $OUTPUT->heading() calls
authornicolasconnault <nicolasconnault>
Thu, 6 Aug 2009 08:55:02 +0000 (08:55 +0000)
committernicolasconnault <nicolasconnault>
Thu, 6 Aug 2009 08:55:02 +0000 (08:55 +0000)
enrol/authorize/enrol.php
enrol/paypal/enrol.php
group/index.php
group/overview.php
mod/lesson/highscores.php
mod/lesson/report.php
question/type/questiontype.php
user/index.php

index 1bee09a585ee99f63d856cf2e659715d807f179d..8f7f5bf2cebfe490da4e840403f6fc19196fffeb 100755 (executable)
@@ -67,7 +67,7 @@ class enrolment_plugin_authorize
         print_course($course, '80%');
 
         if ($course->password) {
-            echo $OUTPUT->heading(get_string('choosemethod', 'enrol_authorize'), null, 'mdl-align');
+            echo $OUTPUT->heading(get_string('choosemethod', 'enrol_authorize'));
         }
 
         if ($USER->username == 'guest') { // only real guest user, not for users with guest role
index dfba7da7ae32942f6922a500293aa72ed162a56c..be97315781137073757d6be368e5e0fd70c39c5c 100644 (file)
@@ -38,7 +38,7 @@ function print_entry($course) {
         print_course($course, "80%");
 
         if ($course->password) {  // Presenting two options
-            echo $OUTPUT->heading(get_string('costorkey', 'enrol_paypal'), null, 'mdl-align');
+            echo $OUTPUT->heading(get_string('costorkey', 'enrol_paypal'));
         }
 
         print_simple_box_start("center");
index d4af670c6a5cd22b18975370d3fb6b4fb42548c1..c8349bcf382f54161a9a7e9688cad54c8f814c5e 100644 (file)
@@ -149,7 +149,7 @@ if (ajaxenabled()) {
     $deletegroup_disabled = '';
 }
 
-echo $OUTPUT->heading(format_string($course->shortname) .' '.$strgroups, 3, 'mdl-align');
+echo $OUTPUT->heading(format_string($course->shortname) .' '.$strgroups, 3);
 echo '<form id="groupeditform" action="index.php" method="post">'."\n";
 echo '<div>'."\n";
 echo '<input type="hidden" name="id" value="' . $courseid . '" />'."\n";
index 9836fd9aaa5370d386712e10ee74bd054ad88e3d..76686616f63bd54cfb13cc5786c87a0e398831d7 100644 (file)
@@ -119,7 +119,7 @@ $currenttab = 'overview';
 require('tabs.php');
 
 /// Print overview
-echo $OUTPUT->heading(format_string($course->shortname) .' '.$stroverview, 3, 'mdl-align');
+echo $OUTPUT->heading(format_string($course->shortname) .' '.$stroverview, 3);
 
 echo $strfiltergroups;
 
index b097c606638791f336c2530e5deba612de20ffdf..7c8d51109b9cfc71e9176f5cc7f8c7cfdf3668d5 100644 (file)
                 $grades = array();
             }
         
-            echo $OUTPUT->heading(get_string("topscorestitle", "lesson", $lesson->maxhighscores), 4, 'mdl-align');
+            echo $OUTPUT->heading(get_string("topscorestitle", "lesson", $lesson->maxhighscores), 4);
 
             if (!$highscores = $DB->get_records_select("lesson_high_scores", "lessonid = :lessonid", $params)) {
-                echo $OUTPUT->heading(get_string("nohighscores", "lesson"), 3, 'mdl-align');
+                echo $OUTPUT->heading(get_string("nohighscores", "lesson"), 3);
             } else {
                 foreach ($highscores as $highscore) {
                     $grade = $grades[$highscore->gradeid]->grade;
index 6b22ddd762e4ae29d092b29fc9891d7198f5aada..8ad3af5e1cd1f3b3979b20c343e8dbfdc7c4863f 100644 (file)
                 //$headingobject->firstname = $students[$userid]->firstname;
                 //$headingobject->attempt = $try + 1;
                 //print_heading(get_string("studentattemptlesson", "lesson", $headingobject));
-            print_heading(get_string('attempt', 'lesson', $try+1));
+            echo $OUTPUT->heading(get_string('attempt', 'lesson', $try+1));
             
             $table->head = array();
             $table->align = array("right", "left");
index 35e46e2229fe4c449855d2c13bfe47da48718a5b..82da2e4517e841f18b852188e8d10395ccfd467c 100644 (file)
@@ -241,7 +241,7 @@ class default_questiontype {
             }
         }
         if (!$question->formoptions->movecontext  && count($permissionstrs)){
-            echo $OUTPUT->heading(get_string('permissionto', 'question'), 3, 'mdl-align');
+            echo $OUTPUT->heading(get_string('permissionto', 'question'), 3);
             $html = '<ul>';
             foreach ($permissionstrs as $permissionstr){
                 $html .= '<li>'.$permissionstr.'</li>';
index 269a81015c5a76dcc92a6fd50fe9dae018090574..92ae73d676a0471f5fc8c0a7000ec2a07b92cfc8 100644 (file)
             $heading .= ' <a href="'.$CFG->wwwroot.'/'.$CFG->admin.'/roles/assign.php?roleid='.$roleid.'&amp;contextid='.$context->id.'">';
             $heading .= '<img src="'.$OUTPUT->old_icon_url('i/edit') . '" class="icon" alt="" /></a>';
         }
-        echo $OUTPUT->heading($heading, 3, 'mdl-align');
+        echo $OUTPUT->heading($heading, 3);
     } else {
         if ($course->id != SITEID && has_capability('moodle/role:assign', $context)) {
             $editlink  = ' <a href="'.$CFG->wwwroot.'/'.$CFG->admin.'/roles/assign.php?contextid='.$context->id.'">';