From: martin Date: Fri, 27 Sep 2002 14:26:02 +0000 (+0000) Subject: Tweaks to page titles to make them more consistent X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=dfb6e4ac3e9ded9c04e6a9fa682c2568529a007c;p=moodle.git Tweaks to page titles to make them more consistent --- diff --git a/admin/config.php b/admin/config.php index 337844a4ff..478f61ce05 100644 --- a/admin/config.php +++ b/admin/config.php @@ -66,7 +66,7 @@ $strconfigvariables = get_string("configvariables"); if ($site) { - print_header("$site->fullname", "$site->fullname", + print_header("$site->shortname: $strconfigvariables", "$site->fullname", "wwwroot/admin/\">$stradmin -> $strconfigvariables", "$focus"); print_heading($strconfigvariables); } else { diff --git a/admin/index.php b/admin/index.php index 70d7f16d5c..30447a6702 100644 --- a/admin/index.php +++ b/admin/index.php @@ -230,7 +230,7 @@ /// At this point everything is set up and the user is an admin, so print menu $stradministration = get_string("administration"); - print_header("$site->fullname: $stradministration","$site->fullname: $stradministration", "$stradministration"); + print_header("$site->shortname: $stradministration","$site->fullname: $stradministration", "$stradministration"); $table->head = array (get_string("site"), get_string("courses"), get_string("users")); $table->align = array ("CENTER", "CENTER", "CENTER"); diff --git a/admin/lang.php b/admin/lang.php index 6ae7107369..8c10772177 100644 --- a/admin/lang.php +++ b/admin/lang.php @@ -31,6 +31,7 @@ $title = $strcomparelanguage; break; default: + $title = $strchecklanguage; $navigation = $strchecklanguage; break; } @@ -41,7 +42,7 @@ $currentlang = $CFG->lang; } - print_header("$site->fullname: $title", "$site->fullname", + print_header("$site->shortname: $title", "$site->fullname", "$stradministration -> $navigation"); if (!$mode) { diff --git a/admin/site.php b/admin/site.php index f9b6021795..ca8090d2c7 100644 --- a/admin/site.php +++ b/admin/site.php @@ -61,7 +61,7 @@ $stradmin = get_string("administration"); $strsitesettings = get_string("sitesettings"); - print_header("$site->fullname", "$site->fullname", + print_header("$site->shortname: $strsitesettings", "$site->fullname", "wwwroot/admin/\">$stradmin -> $strsitesettings", "$focus"); print_heading($strsitesettings); diff --git a/admin/user.php b/admin/user.php index db67435e13..780e1866fa 100644 --- a/admin/user.php +++ b/admin/user.php @@ -91,7 +91,7 @@ $strdelete = get_string("delete"); $strdeletecheck = get_string("deletecheck"); - print_header("$site->fullname : $stredituser", $site->fullname, + print_header("$site->shortname: $stredituser", $site->fullname, "wwwroot/admin\">$stradministration -> $stredituser"); if ($delete) { // Delete a selected user, after confirmation diff --git a/course/categories.php b/course/categories.php index 7e01d51c3d..2958736d82 100644 --- a/course/categories.php +++ b/course/categories.php @@ -24,7 +24,7 @@ $straction = get_string("action"); $stradd = get_string("add"); - print_header("$site->fullname: $strcategories", "$site->fullname", + print_header("$site->shortname: $strcategories", "$site->fullname", "wwwroot/admin\">$stradministration -> $strcategories"); print_heading($strcategories); diff --git a/course/delete.php b/course/delete.php index 1df4f60d7d..45f9a8fc2f 100644 --- a/course/delete.php +++ b/course/delete.php @@ -20,7 +20,7 @@ $stradministration = get_string("administration"); if (!$id) { - print_header("$site->fullname : $strdeletecourse", $site->fullname, + print_header("$site->shortname: $strdeletecourse", $site->fullname, "wwwroot/admin\">$stradministration -> $strdeletecourse"); if ($courses = get_records_sql("SELECT * from course WHERE category > 0 ORDER BY fullname")) { @@ -45,7 +45,7 @@ if (! $delete) { $strdeletecheck = get_string("deletecheck", "", $course->shortname); $strdeletecoursecheck = get_string("deletecoursecheck"); - print_header("$site->fullname : $strdeletecheck", $site->fullname, + print_header("$site->shortname: $strdeletecheck", $site->fullname, "wwwroot/admin\">$stradministration -> $strdeletecourse -> $strdeletecheck"); @@ -62,7 +62,7 @@ // OK checks done, delete the course now. $strdeletingcourse = get_string("deletingcourse", "", $course->shortname); - print_header("$site->fullname : $strdeletingcourse", $site->fullname, + print_header("$site->shortname: $strdeletingcourse", $site->fullname, "wwwroot/admin\">$stradministration -> $strdeletecourse -> $strdeletingcourse"); diff --git a/course/edit.php b/course/edit.php index f5d0e76291..540ec2150a 100644 --- a/course/edit.php +++ b/course/edit.php @@ -112,7 +112,7 @@ "wwwroot/course/view.php?id=$course->id\">$course->shortname -> $streditcoursesettings", $focus); } else { - print_header("$site->shortname : $straddnewcourse", "$site->fullname", + print_header("$site->shortname: $straddnewcourse", "$site->fullname", "wwwroot/admin/\">$stradministration -> $straddnewcourse", $focus); } diff --git a/course/teacher.php b/course/teacher.php index ad69fc231e..9718df5f58 100644 --- a/course/teacher.php +++ b/course/teacher.php @@ -29,7 +29,7 @@ $strtoomanytoshow = get_string("toomanytoshow"); if (!$id) { - print_header("$site->fullname: $strassignteachers", "$site->fullname", + print_header("$site->shortname: $strassignteachers", "$site->fullname", "wwwroot/admin\">$stradministration -> $strassignteachers"); if ($courses = get_records_sql("SELECT * from course WHERE category > 0 ORDER BY fullname")) { @@ -53,7 +53,7 @@ } - print_header("$site->fullname: $course->shortname: $strassignteachers", + print_header("$site->shortname: $course->shortname: $strassignteachers", "$site->fullname", "wwwroot/admin\">$stradministration -> $strassignteachers -> diff --git a/user/edit.php b/user/edit.php index 02d981d54b..c0cf126aa1 100644 --- a/user/edit.php +++ b/user/edit.php @@ -169,13 +169,13 @@ $userfullname = "$user->firstname $user->lastname"; } if ($course->category) { - print_header("$course->fullname: $streditmyprofile", "$course->fullname: $streditmyprofile", + print_header("$course->shortname: $streditmyprofile", "$course->fullname: $streditmyprofile", "wwwroot/course/view.php?id=$course->id\">$course->shortname -> id\">$strparticipants -> id&course=$course->id\">$userfullname -> $streditmyprofile", ""); } else { - print_header("$course->fullname: $streditmyprofile", "$course->fullname", + print_header("$course->shortname: $streditmyprofile", "$course->fullname", "id&course=$course->id\">$userfullname -> $streditmyprofile", ""); } @@ -184,7 +184,7 @@ $straddnewuser = get_string("addnewuser"); $stradministration = get_string("administration"); - print_header("$course->fullname: $streditmyprofile", "$course->fullname", + print_header("$course->shortname: $streditmyprofile", "$course->fullname", "wwwroot/admin\">$stradministration -> $straddnewuser", ""); }