// 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 = '
// 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>';
}
$nav = build_navigation($navigation);
print_header_simple($title, '', $nav, '', '', false);
-print_heading($title, 'centre');
+echo $OUTPUT->heading($title, 'centre');
// Prepare data for tags
$courselink = '';
$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);
$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);
$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);
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) {
$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;
*/
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));
}
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)) {
$output .= print_paging_bar($count, $page, $perpage, $baseurl .'&', '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)) {
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();