mirror of
https://github.com/moodle/moodle.git
synced 2025-08-10 19:36:41 +02:00
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:
parent
db1a1c0d9e
commit
99cca8470e
19 changed files with 106 additions and 540 deletions
|
@ -65,7 +65,7 @@ if (optional_param('cancel', false, PARAM_BOOL)) {
|
|||
|
||||
$role = $DB->get_record('role', array('id'=>$roleid), '*', MUST_EXIST);
|
||||
|
||||
// These are needed early because of tabs.php
|
||||
// These are needed early
|
||||
$assignableroles = get_assignable_roles($context, ROLENAME_BOTH);
|
||||
list($overridableroles, $overridecounts, $nameswithcounts) = get_overridable_roles($context, ROLENAME_BOTH, true);
|
||||
|
||||
|
@ -86,7 +86,7 @@ switch ($context->contextlevel) {
|
|||
print_error('cannotoverridebaserole', 'error');
|
||||
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);
|
||||
|
@ -135,7 +135,9 @@ if (optional_param('savechanges', false, PARAM_BOOL) && confirm_sesskey()) {
|
|||
|
||||
// Finally start page output
|
||||
echo $OUTPUT->header();
|
||||
include($tabfile);
|
||||
if ($tabfile) {
|
||||
include($tabfile);
|
||||
}
|
||||
echo $OUTPUT->heading_with_help($title, 'overrides', 'role');
|
||||
|
||||
// Show UI for overriding roles.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue