]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-19823 Migrated calls to print_heading
authornicolasconnault <nicolasconnault>
Thu, 6 Aug 2009 08:25:49 +0000 (08:25 +0000)
committernicolasconnault <nicolasconnault>
Thu, 6 Aug 2009 08:25:49 +0000 (08:25 +0000)
tag/coursetags_edit.php
tag/coursetags_more.php
tag/edit.php
tag/index.php
tag/locallib.php
tag/search.php

index 6420614b933cfb1bf74e9f8b6a43c9acd6853567..6dc1e7bad28631a1ba4e5399cf43846ff8448a8d 100644 (file)
@@ -63,7 +63,7 @@ print_header_simple($title, '', $nav, '', '', false);
 
     // Print personal tags for all courses
     $title = get_string('edittitle', $tagslang);
-    print_heading($title, 'center');
+    echo $OUTPUT->heading($title, 'center');
 
     $mytags = coursetag_print_cloud(coursetag_get_tags(0, $USER->id, 'default'), true);
     $outstr = '
@@ -87,7 +87,7 @@ print_header_simple($title, '', $nav, '', '', false);
     // Personal tag editing
     if ($canedit) {
         $title = get_string('editmytagsfor', $tagslang, '"'.$coursefullname.' ('.$courseshortname.')"');
-        print_heading($title);
+        echo $OUTPUT->heading($title);
 
         // Deletion here is open to the users own tags for this course only
         $selectoptions = '<option value="0">'.get_string('select', $tagslang).'</option>';
index 0c34b131a9a2b84e2a118d2c2ca5a5ed80eb0fa1..11ea6d97e4eadc45460bfd881a21fd60018e073d 100644 (file)
@@ -58,7 +58,7 @@ if ($courseid) {
 }
 $nav = build_navigation($navigation);
 print_header_simple($title, '', $nav, '', '', false);
-print_heading($title, 'centre');
+echo $OUTPUT->heading($title, 'centre');
 
 // Prepare data for tags
 $courselink = '';
index e9e8e83b9f0d5fd1222921037e52227ed8723538..0a7fb4bcb2c6ed6e677c34b7a39b6a054b09e2a2 100644 (file)
@@ -116,7 +116,7 @@ $navlinks[] = array('name' => $tagname, 'link' => '', 'type' => '');
 $navigation = build_navigation($navlinks);
 print_header_simple(get_string('tag', 'tag') . ' - '. $tagname, '', $navigation);
 
-print_heading($tagname, '', 2);
+echo $OUTPUT->heading($tagname, 2);
 
 if (!empty($errorstring)) {
     notify($errorstring);
index 1dbe56fd3289be3f7f587cc59d4dd05ecaa1f0c5..f294645d94dbaf3a026c2ef5c569eddce1c1133c 100644 (file)
@@ -66,7 +66,7 @@ if ($tag->flag > 0 && has_capability('moodle/tag:manage', $systemcontext)) {
     $tagname =  '<span class="flagged-tag">' . $tagname . '</span>';
 }
 
-print_heading($tagname, '', 2, 'headingblock header tag-heading');
+echo $OUTPUT->heading($tagname, 2, 'headingblock header tag-heading');
 tag_print_management_box($tag);
 tag_print_description_box($tag);
 
@@ -83,7 +83,7 @@ if ($courses = coursetag_get_tagged_courses($tag->id)) {
 
     $heading = get_string('courses') . ' ' . get_string('taggedwith', 'tag', $tagname) .': '. $totalcount;
     echo "<a name='course'></a>";
-    print_heading($heading, '', 3);
+    echo $OUTPUT->heading($heading, 3);
 
     foreach ($courses as $course) {
         print_course($course);
@@ -105,7 +105,7 @@ if (has_capability('moodle/blog:view', $systemcontext)) {  // You have to see bl
         print_box_start('generalbox', 'tag-blogs');
         $heading = get_string('relatedblogs', 'tag', $tagname). ' ' . get_string('taggedwith', 'tag', $tagname);
         echo "<a name='blog'></a>";
-        print_heading($heading, '', 3);
+        echo $OUTPUT->heading($heading, 3);
 
         echo '<ul id="tagblogentries">';
         foreach ($blogs as $blog) {
@@ -141,7 +141,7 @@ if ($usercount > 0) {
 
     $heading = get_string('users'). ' ' . get_string('taggedwith', 'tag', $tagname) . ': ' . $usercount;
     echo "<a name='user'></a>";
-    print_heading($heading, '', 3);
+    echo $OUTPUT->heading($heading, 3);
 
     $baseurl = $CFG->wwwroot.'/tag/index.php?id=' . $tag->id;
 
index aaa0283ba99edf72db3c872c1b6c680c29e370ca..7011218a7c37860af2e40d1e379b06e1fd13ca06 100644 (file)
@@ -222,7 +222,7 @@ function tag_print_search_box($return=false) {
  */
 function tag_print_search_results($query,  $page, $perpage, $return=false) {
 
-    global $CFG, $USER;
+    global $CFG, $USER, $OUTPUT;
 
     $query = array_shift(tag_normalize($query, TAG_CASE_ORIGINAL));
 
@@ -244,7 +244,7 @@ function tag_print_search_results($query,  $page, $perpage, $return=false) {
     }
 
     if ( !empty($tags) ) { // there are results to display!!
-        $output .= print_heading(get_string('searchresultsfor', 'tag', htmlspecialchars($query)) ." : {$count}", '', 3, 'main', true);
+        $output .= $OUTPUT->heading(get_string('searchresultsfor', 'tag', htmlspecialchars($query)) ." : {$count}", 3, 'main');
 
         //print a link "Add $query to my interests"
         if (!empty($addtaglink)) {
@@ -269,7 +269,7 @@ function tag_print_search_results($query,  $page, $perpage, $return=false) {
         $output .= print_paging_bar($count, $page, $perpage, $baseurl .'&amp;', 'page', false, true);
     }
     else { //no results were found!!
-        $output .= print_heading(get_string('noresultsfor', 'tag', htmlspecialchars($query)), '', 3, 'main' , true);
+        $output .= $OUTPUT->heading(get_string('noresultsfor', 'tag', htmlspecialchars($query)), 3, 'main');
 
         //print a link "Add $query to my interests"
         if (!empty($addtaglink)) {
index f08e07bc07565e194fcfa1bd0e502c50890f7ab4..649e3f6a0119a387e6d08e7bb49cc14193c098d7 100644 (file)
@@ -40,7 +40,7 @@ if ( has_capability('moodle/tag:manage',$systemcontext) ) {
     echo '<div class="managelink"><a href="'. $CFG->wwwroot .'/tag/manage.php">' . get_string('managetags', 'tag') . '</a></div>' ;
 }
 
-print_heading(get_string('searchtags', 'tag'), '', 2);
+echo $OUTPUT->heading(get_string('searchtags', 'tag'), 2);
 
 tag_print_search_box();