MDL-19124 Continued misc user profile cleanups

- fixed user styles in base theme
    - added new divs for better control on user profile and user index pages
    - reduced data on course user profiles down to minimum
    - removed user/tabs.php completely and all uses of it
    - changed default user icon pix to something very bland (bye bye smiley cake)
This commit is contained in:
Martin Dougiamas 2010-05-16 08:21:12 +00:00
parent db1a1c0d9e
commit 99cca8470e
19 changed files with 106 additions and 540 deletions

View file

@ -231,7 +231,7 @@ switch ($context->contextlevel) {
admin_externalpage_setup('assignroles', '', array('contextid' => $contextid, 'roleid' => $roleid));
break;
case CONTEXT_USER:
$tabfile = $CFG->dirroot.'/user/tabs.php';
$tabfile = null;
if ($isfrontpage) {
$fullname = fullname($user, has_capability('moodle/site:viewfullnames', $context));
$PAGE->set_heading($fullname);
@ -259,9 +259,11 @@ switch ($context->contextlevel) {
break;
}
$currenttab = 'assign';
echo $OUTPUT->header();
include($tabfile);
if ($tabfile) {
$currenttab = 'assign';
include($tabfile);
}
// Print heading.
echo $OUTPUT->heading_with_help($title, 'assignroles', 'role');