From 7cd2f598aa0fc783c924226b46fcceee70bc40b7 Mon Sep 17 00:00:00 2001 From: moodler Date: Fri, 5 Jan 2007 12:58:22 +0000 Subject: [PATCH] More XHTML strict - removed image borders and height/width --- lib/moodlelib.php | 4 ++-- lib/questionlib.php | 2 +- lib/weblib.php | 22 ++++++++++------------ 3 files changed, 13 insertions(+), 15 deletions(-) diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 67e9bb59db..aaa02b6373 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -6075,8 +6075,8 @@ function unzip_show_status ($list,$removepath) { $strsize = get_string("size"); $strmodified = get_string("modified"); $strstatus = get_string("status"); - echo ""; - echo ""; + echo "
$strname
"; + echo ""; echo ""; echo ""; echo ""; diff --git a/lib/questionlib.php b/lib/questionlib.php index ff387252b0..03ab0234d1 100644 --- a/lib/questionlib.php +++ b/lib/questionlib.php @@ -1184,7 +1184,7 @@ function print_question_icon($question, $editlink=true, $return = false) { global $QTYPES, $CFG; $namestr = get_string($question->qtype, 'quiz'); - $html = 'wwwroot.'/question/type/'. $question->qtype.'/icon.gif" alt="'. $namestr.'" title="'.$namestr.'" />'; diff --git a/lib/weblib.php b/lib/weblib.php index d558de5030..f4c13dd03a 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -3039,10 +3039,10 @@ function print_file_picture($path, $courseid=0, $height='', $width='', $link='', $output .= ''; } if (substr(strtolower($path), 0, 7) == 'http://') { - $output .= ''; + $output .= ''; } else if ($courseid) { - $output .= ''.s(get_string('group').' '.$group->name).''; + ' style="width:'.$size.'px;height:'.$size.'px;" alt="'.s(get_string('group').' '.$group->name).'" title="'.s($group->name).'"/>'; } else { $output .= ''.s(get_string('group').' '.$group->name).''; + ' style="width:'.$size.'px;height:'.$size.'px;" alt="'.s(get_string('group').' '.$group->name).'" title="'.s($group->name).'"/>'; } } if ($link or has_capability('moodle/site:accessallgroups', $context)) { @@ -3337,13 +3337,12 @@ function print_png($url, $sizex, $sizey, $return, $parameters='alt=""') { if ($recentIE) { // work around the HORRIBLE bug IE has with alpha transparencies $output .= ''; } else { - $output .= ''; + $output .= 'id.'"'; - $output .= '
$strname$strsize$strmodified$strstatus
width.'" align="'.$table->tablealign.'" '; $output .= " cellpadding=\"$table->cellpadding\" cellspacing=\"$table->cellspacing\" class=\"$table->class\" $tableid>\n"; $countcols = 0; @@ -4326,7 +4325,7 @@ function navmenulist($course, $sections, $modinfo, $strsection, $strjumpto, $wid $class = 'activity '.$mod->mod; $class .= ($cmid == $mod->cm) ? ' selected' : ''; $menu[] = '
  • '. - ''. + ''. ''.$mod->name.'
  • '; $previousmod = $mod; } @@ -4766,8 +4765,7 @@ function emoticonhelpbutton($form, $field, $return = false) { $SESSION->inserttextform = $form; $SESSION->inserttextfield = $field; - $imagetext = ''; + $imagetext = ''; $help = helpbutton('emoticons', get_string('helpemoticons'), 'moodle', true, true, '', true, $imagetext); if (!$return){ echo $help; @@ -4785,7 +4783,7 @@ function emoticonhelpbutton($form, $field, $return = false) { function editorshortcutshelpbutton() { global $CFG; - $imagetext = ''.
+    $imagetext = '<img src=wwwroot . '/lib/editor/htmlarea/images/kbhelp.gif" alt="'. get_string('editorshortcutkeys').'" style="width:49px; height:17px; margin:0;" />'; return helpbutton('editorshortcuts', get_string('editorshortcutkeys'), 'moodle', true, false, '', true, $imagetext); -- 2.39.5