From 5575a053d3d3eb5fc9fbd63417e4a2ec7cb4c96e Mon Sep 17 00:00:00 2001 From: martin Date: Sat, 8 Jun 2002 06:52:00 +0000 Subject: [PATCH] Changes to put update/edit icons in the headers of module and course pages --- course/view.php | 3 ++- mod/choice/view.php | 7 ++----- mod/journal/view.php | 7 ++----- mod/survey/view.php | 8 ++------ theme/standard/header.html | 7 +++++++ theme/standardblue/header.html | 7 +++++++ 6 files changed, 22 insertions(+), 17 deletions(-) diff --git a/course/view.php b/course/view.php index a91c9616bd..1e9be96294 100644 --- a/course/view.php +++ b/course/view.php @@ -31,7 +31,8 @@ redirect("$CFG->wwwroot"); } - print_header("Course: $course->fullname", "$course->fullname", "$course->shortname", ""); + print_header("Course: $course->fullname", "$course->fullname", "$course->shortname", "", "", true, + update_course_icon($course->id)); if (! $modtypes = get_records_sql_menu("SELECT name,fullname FROM modules ORDER BY fullname") ) { error("No modules are installed!"); diff --git a/mod/choice/view.php b/mod/choice/view.php index d4f166f91f..d2db4da2fd 100644 --- a/mod/choice/view.php +++ b/mod/choice/view.php @@ -48,11 +48,8 @@ print_header("$course->shortname: $choice->name", "$course->fullname", "id>$course->shortname -> - id>Choices -> $choice->name", ""); - - if ($USER->editing) { - print_update_module_icon($cm->id); - } + id>Choices -> $choice->name", "", "", true, + update_module_icon($cm->id)); if (isteacher($course->id)) { echo "

id\">View all responses

"; diff --git a/mod/journal/view.php b/mod/journal/view.php index ad58950778..b5f9406776 100644 --- a/mod/journal/view.php +++ b/mod/journal/view.php @@ -28,11 +28,8 @@ print_header("$course->shortname: $journal->name", "$course->fullname", "id>$course->shortname -> - id>Journals -> $journal->name", ""); - - if ($USER->editing) { - print_update_module_icon($cm->id); - } + id>Journals -> $journal->name", "", "", true, + update_module_icon($cm->id)); if (isteacher($course->id)) { echo "

id\">View all responses

"; diff --git a/mod/survey/view.php b/mod/survey/view.php index 622766b5fd..3c08683639 100644 --- a/mod/survey/view.php +++ b/mod/survey/view.php @@ -22,12 +22,8 @@ print_header("$course->shortname: $survey->name", "$course->fullname", "id>$course->shortname -> - id>Surveys -> $survey->name", ""); - - - if ($USER->editing) { - print_update_module_icon($cm->id); - } + id>Surveys -> $survey->name", "", "", true, + update_module_icon($cm->id)); if (isteacher($course->id)) { echo "

id\">View all responses

"; diff --git a/theme/standard/header.html b/theme/standard/header.html index 8ff65791e3..5191319795 100644 --- a/theme/standard/header.html +++ b/theme/standard/header.html @@ -10,9 +10,16 @@ bgcolor="body ?>" link="#000066" vlink="#222288"> + +
+ + +
diff --git a/theme/standardblue/header.html b/theme/standardblue/header.html index 38074903d7..d882d42048 100644 --- a/theme/standardblue/header.html +++ b/theme/standardblue/header.html @@ -10,9 +10,16 @@ bgcolor="body ?>" link="#000066" vlink="#222288"> +
+
+ + +
-- 2.39.5