From: moodler
Date: Sat, 6 Jan 2007 14:07:00 +0000 (+0000)
Subject: Fixes to make user profile pages validate Strrrict
X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=c11387978c72727b8773639a73f57861710e284d;p=moodle.git
Fixes to make user profile pages validate Strrrict
---
diff --git a/lang/en_utf8/moodle.php b/lang/en_utf8/moodle.php
index 6d77db4d58..2fa79475eb 100644
--- a/lang/en_utf8/moodle.php
+++ b/lang/en_utf8/moodle.php
@@ -950,6 +950,7 @@ line at the top of your web browser window.
Cheers from the \'$a->sitename\' administrator,
$a->signoff';
$string['newusers'] = 'New users';
+$string['newwindow'] = 'new window';
$string['next'] = 'Next';
$string['nextsection'] = 'Next section';
$string['no'] = 'No';
diff --git a/lib/weblib.php b/lib/weblib.php
index e609d26b51..a7fb9106a5 100644
--- a/lib/weblib.php
+++ b/lib/weblib.php
@@ -3111,9 +3111,9 @@ function print_user_picture($userid, $courseid, $picture, $size=0, $return=false
$class = "userpicture";
if ($picture) { // Print custom user picture
if ($CFG->slasharguments) { // Use this method if possible for better caching
- $src = $CFG->wwwroot .'/user/pix.php/'. $userid .'/'. $file .'.jpg"';
+ $src = $CFG->wwwroot .'/user/pix.php/'. $userid .'/'. $file .'.jpg';
} else {
- $src = $CFG->wwwroot .'/user/pix.php?file=/'. $userid .'/'. $file .'.jpg"';
+ $src = $CFG->wwwroot .'/user/pix.php?file=/'. $userid .'/'. $file .'.jpg';
}
} else { // Print default user pictures (use theme version if available)
$class .= " defaultuserpic";
@@ -4718,8 +4718,6 @@ function helpbutton ($page, $title='', $module='moodle', $image=true, $linktext=
$module = 'moodle';
}
- // Accessibility: prefix the alt text/title with 'Help with', strip distracting dots '...'
- // PLEASE DO NOT CHANGE. ('...' is VERY distracting for non-visual users)
$tooltip = get_string('helpprefix2', '', trim($title, ". \t"));
$linkobject = '';
@@ -4740,6 +4738,8 @@ function helpbutton ($page, $title='', $module='moodle', $image=true, $linktext=
$linkobject .= $tooltip;
}
+ $tooltip .= ' ('.get_string('newwindow').')'; // Warn users about new window for Accessibility
+
// fix for MDL-7734
if ($text) {
$url = '/help.php?module='. $module .'&text='. s(urlencode($text).'&forcelang='.$forcelang);
diff --git a/theme/standard/styles_layout.css b/theme/standard/styles_layout.css
index 301ddafa1f..de2158f45b 100644
--- a/theme/standard/styles_layout.css
+++ b/theme/standard/styles_layout.css
@@ -1838,7 +1838,8 @@ body#message-messages {
border-collapse: separate;
}
-.userinfobox .left {
+.userinfobox .left,
+.userinfobox .side {
padding: 10px;
width: 100px;
vertical-align: top;
@@ -1889,6 +1890,14 @@ body#user-index h2 {
text-align: center;
}
+#user-view .buttons {
+ text-align: center;
+}
+
+#user-view .buttons .form {
+ display: inline;
+}
+
body#user-index #longtimenosee,
body#user-index #showall {
text-align: center;
diff --git a/user/index.php b/user/index.php
index 5b4487f969..268a27896d 100644
--- a/user/index.php
+++ b/user/index.php
@@ -423,9 +423,9 @@
print_heading($heading, 'center', 3);
} else {
if ($matchcount < $totalcount) {
- print_heading(get_string('allparticipants').': '.$matchcount.'/'.$totalcount, 'center', 3);
+ print_heading(get_string('allparticipants').': '.$matchcount.'/'.$totalcount, '', 3);
} else {
- print_heading(get_string('allparticipants').': '.$matchcount, 'center', 3);
+ print_heading(get_string('allparticipants').': '.$matchcount, '', 3);
}
}
@@ -458,7 +458,8 @@
//]]>
';
- echo '';
}
if ($bulkoperations && $totalcount > ($perpage*3)) {
- echo ''."\n";
+ echo ''."\n";
}
if ($perpage == SHOW_ALL_PAGE_SIZE) {
diff --git a/user/view.php b/user/view.php
index a80f4988b6..0d653f514c 100644
--- a/user/view.php
+++ b/user/view.php
@@ -177,11 +177,11 @@
echo "Remote Moodle: wwwroot}/user/edit.php\">{$remotehost->name} (click here to edit your profile on the remote server)
\n";
}
- echo "";
- echo "";
- echo "";
+ echo '';
+ echo '';
+ echo '';
print_user_picture($user->id, $course->id, $user->picture, true, false, false);
- echo " | ";
+ echo ' | ';
// Print the description
@@ -191,7 +191,7 @@
// Print all the little details in a list
- echo '';
+ echo '';
if (($user->city or $user->country) and (!isset($hiddenfields['city']) or !isset($hiddenfields['country']))) {
$location = '';
@@ -251,7 +251,7 @@
}
$emailswitch = " id&course=$course->id&$switchparam=1\">".
- " pixpath/t/$switchpix\" alt=\"$switchclick\" />";
+ " pixpath/t/$switchpix\" alt=\"$switchclick\" />";
} else if ($currentuser) { /// Can only re-enable an email this way
if ($user->emailstop) { // Include link that tells how to re-enable their email
@@ -272,16 +272,16 @@
}
if ($user->icq && !isset($hiddenfields['icqnumber'])) {
- print_row(get_string('icqnumber').':',"icq\">$user->icq icq&img=5\" width=\"18\" height=\"18\" border=\"0\" alt=\"\" />");
+ print_row(get_string('icqnumber').':',"icq\">$user->icq icq&img=5\" alt=\"\" />");
}
if ($user->skype && !isset($hiddenfields['skypeid'])) {
print_row(get_string('skypeid').':',''.s($user->skype).
' ');
+ ' />');
}
if ($user->yahoo && !isset($hiddenfields['yahooid'])) {
- print_row(get_string('yahooid').':', ''.s($user->yahoo)." yahoo)."&m=g&t=0\" width=\"12\" height=\"12\" alt=\"\">");
+ print_row(get_string('yahooid').':', ''.s($user->yahoo)." yahoo)."&m=g&t=0\" alt=\"\">");
}
if ($user->aim && !isset($hiddenfields['aimid'])) {
print_row(get_string('aimid').':', ''.s($user->aim).'');
@@ -348,11 +348,11 @@
}
// Print other functions
- echo '\n";
+ echo "\n";
/*
if (debugging() && $USER->id == $user->id) { // TEMPORARY in DEV!
@@ -448,7 +447,7 @@
/// Functions ///////
function print_row($left, $right) {
- echo "\n$left | $right | \n";
+ echo "\n$left | $right | \n";
}
?>
| |