From 78d4a57d301f42be466edbca099cd21a48ce36cc Mon Sep 17 00:00:00 2001 From: moodler Date: Wed, 7 Mar 2007 02:02:17 +0000 Subject: [PATCH] Merged display footer fixes for block course_list --- blocks/course_list/block_course_list.php | 15 +++++---------- theme/standard/styles_layout.css | 10 +++++++++- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/blocks/course_list/block_course_list.php b/blocks/course_list/block_course_list.php index ba7329c6a8..cf3fac55a0 100644 --- a/blocks/course_list/block_course_list.php +++ b/blocks/course_list/block_course_list.php @@ -51,7 +51,7 @@ class block_course_list extends block_list { $this->title = get_string('mycourses'); /// If we can update any course of the view all isn't hidden, show the view all courses link if (has_capability('moodle/course:update', get_context_instance(CONTEXT_SYSTEM)) || empty($CFG->block_course_list_hideallcourseslink)) { - $this->content->footer = "wwwroot/course/index.php\">".get_string("fulllistofcourses")."..."; + $this->content->footer = "wwwroot/course/index.php\">".get_string("fulllistofcourses")." ..."; } $this->get_remote_courses(); if ($this->content->items) { // make sure we don't return an empty list @@ -68,12 +68,10 @@ class block_course_list extends block_list { $this->content->items[]="wwwroot/course/category.php?id=$category->id\">" . format_string($category->name) . ""; $this->content->icons[]=$icon; } - $this->content->icons[] = ''; - $this->content->items[] = "   wwwroot/course/\">".get_string("searchcourses")."...
"; + $this->content->footer .= "wwwroot/course/index.php\">".get_string('searchcourses').' ...
'; /// If we can update any course of the view all isn't hidden, show the view all courses link if (has_capability('moodle/course:update', get_context_instance(CONTEXT_SYSTEM)) || empty($CFG->block_course_list_hideallcourseslink)) { - $this->content->icons[] = ''; - $this->content->items[] = "   wwwroot/course/index.php\">".get_string("fulllistofcourses")."..."; + $this->content->footer .= "wwwroot/course/index.php\">".get_string('fulllistofcourses').' ...'; } $this->title = get_string('categories'); } else { // Just print course names of single category @@ -92,9 +90,7 @@ class block_course_list extends block_list { } /// If we can update any course of the view all isn't hidden, show the view all courses link if (has_capability('moodle/course:update', get_context_instance(CONTEXT_SYSTEM)) || empty($CFG->block_course_list_hideallcourseslink)) { - $this->content->icons[] = ''; - $this->content->items[] = "   wwwroot/course/index.php\">" - .get_string("fulllistofcourses")."..."; + $this->content->footer .= "wwwroot/course/index.php\">".get_string('fulllistofcourses').' ...'; } $this->get_remote_courses(); } else { @@ -102,8 +98,7 @@ class block_course_list extends block_list { $this->content->icons[] = ''; $this->content->items[] = get_string('nocoursesyet'); if (has_capability('moodle/course:create', get_context_instance(CONTEXT_COURSECAT, $category->id))) { - $this->content->icons[] = ''; - $this->content->items[] = '   '.get_string("addnewcourse").'...'; + $this->content->footer = ''.get_string("addnewcourse").' ...'; } $this->get_remote_courses(); } diff --git a/theme/standard/styles_layout.css b/theme/standard/styles_layout.css index 36f95f9d79..5c1bc01400 100644 --- a/theme/standard/styles_layout.css +++ b/theme/standard/styles_layout.css @@ -1141,6 +1141,10 @@ a.skip-block, .skip-block { padding-top:5px; } +.block_recent_activitysideblock .h3 { + padding-top:5px; +} + .block_online_users .listentry div.user, .block_messages .listentry div.user { float:left; @@ -1151,6 +1155,10 @@ a.skip-block, .skip-block { float:right; } +.block_course_list .footer { + margin-top: 5px; +} + /*** *** Blogs @@ -1935,7 +1943,7 @@ body#grade-index .grades .weighted { .block_login .loginform div { margin:0.3em 0.8em; - text-align:right; + text-align:left; } .block_login .btn input { -- 2.39.5