mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Merged display footer fixes for block course_list
This commit is contained in:
parent
3fe54e5195
commit
78d4a57d30
@ -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 = "<a href=\"$CFG->wwwroot/course/index.php\">".get_string("fulllistofcourses")."</a>...";
|
||||
$this->content->footer = "<a href=\"$CFG->wwwroot/course/index.php\">".get_string("fulllistofcourses")."</a> ...";
|
||||
}
|
||||
$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[]="<a $linkcss href=\"$CFG->wwwroot/course/category.php?id=$category->id\">" . format_string($category->name) . "</a>";
|
||||
$this->content->icons[]=$icon;
|
||||
}
|
||||
$this->content->icons[] = '';
|
||||
$this->content->items[] = " <a href=\"$CFG->wwwroot/course/\">".get_string("searchcourses")."</a>...<br />";
|
||||
$this->content->footer .= "<a href=\"$CFG->wwwroot/course/index.php\">".get_string('searchcourses').'</a> ...<br />';
|
||||
/// 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[] = " <a href=\"$CFG->wwwroot/course/index.php\">".get_string("fulllistofcourses")."</a>...";
|
||||
$this->content->footer .= "<a href=\"$CFG->wwwroot/course/index.php\">".get_string('fulllistofcourses').'</a> ...';
|
||||
}
|
||||
$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[] = " <a href=\"$CFG->wwwroot/course/index.php\">"
|
||||
.get_string("fulllistofcourses")."</a>...";
|
||||
$this->content->footer .= "<a href=\"$CFG->wwwroot/course/index.php\">".get_string('fulllistofcourses').'</a> ...';
|
||||
}
|
||||
$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[] = ' <a href="'.$CFG->wwwroot.'/course/edit.php?category='.$category->id.'">'.get_string("addnewcourse").'</a>...';
|
||||
$this->content->footer = '<a href="'.$CFG->wwwroot.'/course/edit.php?category='.$category->id.'">'.get_string("addnewcourse").'</a> ...';
|
||||
}
|
||||
$this->get_remote_courses();
|
||||
}
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user