]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-8105 some more icon class fixes including new .iconhelp for help and docs icon
authorskodak <skodak>
Mon, 8 Jan 2007 20:30:38 +0000 (20:30 +0000)
committerskodak <skodak>
Mon, 8 Jan 2007 20:30:38 +0000 (20:30 +0000)
19 files changed:
blocks/admin_bookmarks/block_admin_bookmarks.php
blocks/loancalc/block_loancalc.php
course/format/lams/format.php
course/search.php
filter/algebra/filter.php
filter/tex/filter.php
install.php
lang/en_utf8/docs/teacher.html
lang/en_utf8/help/emoticons.html
lang/en_utf8/help/richtext.html
lang/en_utf8/help/text.html
lib/editor/htmlarea/popups/dlg_ins_smile.php
lib/weblib.php
mod/data/field/picture/field.class.php
mod/glossary/config.html
mod/glossary/view.php
mod/quiz/locallib.php
mod/wiki/ewiki/plugins/moodle/downloads.php
theme/standard/styles_layout.css

index 7cb5d87a74af4ec370096578d6540ceaa82f8aca..e177b7c1dd7320e852787124897006d1b5b51f69 100644 (file)
@@ -20,7 +20,7 @@ class block_admin_bookmarks extends block_base {
     }
 
     function create_item($visiblename,$link,$icon) {
-        $this->tempcontent .= '<a href="' . $link . '"><img src="' . $icon . '" border="0" alt="" /> ' . $visiblename . '</a><br />' . "\n";
+        $this->tempcontent .= '<a href="' . $link . '"><img src="' . $icon . '" alt="" /> ' . $visiblename . '</a><br />' . "\n";
     }
 
     function get_content() {
index 4a3c7f37786a1b44d59d93710be8d2141f702fd7..aaa338bbeafb7bb20704400f34097c149a0695cf 100644 (file)
@@ -160,21 +160,21 @@ function comp(v) { // general entry point for all cases
                 </tr>
                 <tr>
                     <td><input name="LOANAMOUNT" id="LOANAMOUNT" size="17" /></td>
-                    <td><a href="JavaScript:comp(\'pv\');"><img src="'.$calc.'" alt="calculate" border="0" /></a></td>
+                    <td><a href="JavaScript:comp(\'pv\');"><img src="'.$calc.'" alt="calculate" /></a></td>
                 </tr>
                 <tr>
                     <td colspan="2">'.get_string('repaymentamount','block_loancalc').'</td>
                 </tr>
                 <tr>
                     <td><input name="LOANREPAYMENT" id="LOANREPAYMENT" size="17" /></td>
-                    <td><a href="JavaScript:comp(\'pmt\');"><img src="'.$calc.'" alt="calculate" border="0" /></a></td>
+                    <td><a href="JavaScript:comp(\'pmt\');"><img src="'.$calc.'" alt="calculate" /></a></td>
                 </tr>
                 <tr>
                     <td colspan="2">'.get_string('loanterm','block_loancalc').'</td>
                 </tr>
                 <tr>
                     <td><input name="LOANTERM" id="LOANTERM" size="17" /></td>
-                    <td><a href="JavaScript:comp(\'np\');"><img src="'.$calc.'" alt="calculate" border="0" /></a></td>
+                    <td><a href="JavaScript:comp(\'np\');"><img src="'.$calc.'" alt="calculate" /></a></td>
                 </tr>    
                 <tr>
                     <td colspan="2">'.get_string('interestrate','block_loancalc').'</td>
index fdcc0a7848870674f906ed71508e38243ca1a152..d6cfc8655dc23e8d3532ed3ab62e3b10fad5c14e 100644 (file)
@@ -136,7 +136,7 @@ if ($thissection->summary or $thissection->sequence or isediting($course->id)) {
                 '&'.$LAMSCONSTANTS->param_hash.'='.$hash.
                 '&'.$LAMSCONSTANTS->param_courseid.'='.$course->id;
             echo '<div style="text-align: right"><td align="right">';
-            //echo '<a target="popup" title="Open Author" href="../help.php?module=moodle&amp;file=resource/types.html"><span class="helplink"><img height="17" width="17" alt="Open Author" src="../pix/help.gif" /></span></a>';
+            //echo '<a target="popup" title="Open Author" href="../help.php?module=moodle&amp;file=resource/types.html"><span class="helplink"><img class="iconhelp" alt="Open Author" src="../pix/help.gif" /></span></a>';
             print_simple_box_start('right');
             echo '<a target="LAMS Author" title="LAMS Author" href="'.$author_url.'">'.get_string("openauthor", "lams").'</a>';
             print_simple_box_end();
@@ -152,7 +152,7 @@ if ($thissection->summary or $thissection->sequence or isediting($course->id)) {
                 '&'.$LAMSCONSTANTS->param_hash.'='.$hash.
                 '&'.$LAMSCONSTANTS->param_courseid.'='.$course->id;
 
-            //echo '<a target="popup" title="Open Monitor" href="../help.php?module=moodle&amp;file=resource/types.html"><span class="helplink"><img height="17" width="17" alt="Open Monitor" src="../pix/help.gif" /></span></a>';                                                 
+            //echo '<a target="popup" title="Open Monitor" href="../help.php?module=moodle&amp;file=resource/types.html"><span class="helplink"><img class="iconhelp" alt="Open Monitor" src="../pix/help.gif" /></span></a>';                                                 
             print_simple_box_start('right');
             echo '<a target="LAMS Monitor" title="LAMS Monitor" href="'.$monitor_url.'">'.get_string("openmonitor", "lams").'</a>';
             print_simple_box_end();
index bbafea3cea9626a9af640025609e5b6f3b020fa4..3fe51d48c31ed2270e58aecafe6659660e26eb0b 100644 (file)
                 // checks whether user can update course settings
                 if (has_capability('moodle/course:update', $coursecontext)) {
                     echo "<a title=\"".get_string("settings")."\" href=\"$CFG->wwwroot/course/edit.php?id=$course->id\"><img".
-                        " src=\"$pixpath/t/edit.gif\" height=\"11\" width=\"11\" border=\"0\" alt=\"".get_string("settings")."\"></a> ";
+                        " src=\"$pixpath/t/edit.gif\" class=\"iconsmall\" alt=\"".get_string("settings")."\"></a> ";
                 }
 
                 // checks whether user can do role assignment
                 // checks whether user can delete course
                 if (has_capability('moodle/course:delete', $coursecontext)) {  
                     echo "<a title=\"".get_string("delete")."\" href=\"delete.php?id=$course->id\"><img".
-                        " src=\"$pixpath/t/delete.gif\" height=\"11\" width=\"11\" border=\"0\" alt=\"".get_string("delete")."\"></a> ";
+                        " src=\"$pixpath/t/delete.gif\" class=\"iconsmall\" alt=\"".get_string("delete")."\"></a> ";
                 }  
 
                 // checks whether user can change visibility
                 if (has_capability('moodle/course:visibility', $coursecontext)) {
                     if (!empty($course->visible)) {
                         echo "<a title=\"".get_string("hide")."\" href=\"search.php?search=$encodedsearch&amp;perpage=$perpage&amp;page=$page&amp;hide=$course->id&amp;sesskey=$USER->sesskey\"><img".
-                            " src=\"$pixpath/t/hide.gif\" height=\"11\" width=\"11\" border=\"0\" alt=\"".get_string("hide")."\"></a> ";
+                            " src=\"$pixpath/t/hide.gif\" class=\"iconsmall\" alt=\"".get_string("hide")."\"></a> ";
                     } else {
                         echo "<a title=\"".get_string("show")."\" href=\"search.php?search=$encodedsearch&amp;perpage=$perpage&amp;page=$page&amp;show=$course->id&amp;sesskey=$USER->sesskey\"><img".
-                            " src=\"$pixpath/t/show.gif\" height=\"11\" width=\"11\" border=\"0\" alt=\"".get_string("show")."\"></a> ";
+                            " src=\"$pixpath/t/show.gif\" class=\"iconsmall\" alt=\"".get_string("show")."\"></a> ";
                     }
                 }              
 
                 // checks whether user can do site backup
                 if (has_capability('moodle/site:backup', $coursecontext)) {
                     echo "<a title=\"".get_string("backup")."\" href=\"../backup/backup.php?id=$course->id\"><img".
-                        " src=\"$pixpath/t/backup.gif\" height=\"11\" width=\"11\" border=\"0\" alt=\"".get_string("backup")."\"></a> ";
+                        " src=\"$pixpath/t/backup.gif\" class=\"iconsmall\" alt=\"".get_string("backup")."\"></a> ";
                 }
                 
                 // checks whether user can do restore
                 if (has_capability('moodle/site:restore', $coursecontext)) {
                     echo "<a title=\"".get_string("restore")."\" href=\"../files/index.php?id=$course->id&wdir=/backupdata\"><img".
-                        " src=\"$pixpath/t/restore.gif\" height=\"11\" width=\"11\" border=\"0\" alt=\"".get_string("restore")."\"></a> ";
+                        " src=\"$pixpath/t/restore.gif\" class=\"iconsmall\" alt=\"".get_string("restore")."\"></a> ";
                 }
 
                 echo "</td></tr>";
index 1f6739c5a74783bf2db556dad7a8679905652f41..0d5e3477365bb9c52a84c16a732302b9a86f46ef 100644 (file)
@@ -53,6 +53,7 @@ function string_file_picture_algebra($imagefile, $tex= "", $height="", $width=""
 
   $output = "";
   $origtex = $tex;
+  $style = 'style="border:0px; vertical-align:'.$align.';';
   if ($tex) {
     $tex = str_replace('&','&amp;',$tex);
     $tex = str_replace('<','&lt;',$tex);
@@ -62,11 +63,12 @@ function string_file_picture_algebra($imagefile, $tex= "", $height="", $width=""
     $title = "title=\"$tex\"";
   }
   if ($height) {
-    $height = "height=\"$height\"";
+    $style .= " height:{$height}px;";
   }
   if ($width) {
-    $width = "width=\"$width\"";
+    $style .= " width:{$width}px;";
   }
+  $style .= '"';
   if ($imagefile) {
     if (!file_exists("$CFG->dataroot/$CFG->algebrafilterdir/$imagefile") && has_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM, SITEID))) {
       $output .= "<a href=\"$CFG->wwwroot/$CFG->algebrafilterdir/algebradebug.php\">";
@@ -77,13 +79,13 @@ function string_file_picture_algebra($imagefile, $tex= "", $height="", $width=""
       $output .= urlencode($tex) . "', 'popup', 'menubar=0,location=0,scrollbars,";
       $output .= "resizable,width=300,height=240', 0);\">";
     }
-    $output .= "<img border=\"0\" $title $height $width alt=\"".s($origtex)."\" src=\"";
+    $output .= "<img $title alt=\"".s($origtex)."\" src=\"";
     if ($CFG->slasharguments) {        // Use this method if possible for better caching
       $output .= "$CFG->wwwroot/$CFG->algebrafilterdir/pix.php/$imagefile";
     } else {
       $output .= "$CFG->wwwroot/$CFG->algebrafilterdir/pix.php?file=$imagefile";
     }
-    $output .= "\" style=\"vertical-align:$align\" />";
+    $output .= "\" $style />";
     $output .= "</a>";
   } else {
     $output .= "Error: must pass URL or course";
index 6e1ba73fd20ab9bd256f9c04d75bf9d8727e91cd..e8b0709e0bb1193c3303a1875058a6adc59c05ac 100644 (file)
@@ -46,6 +46,7 @@ function string_file_picture_tex($imagefile, $tex= "", $height="", $width="", $a
 
     $output = "";
     $origtex = $tex;
+    $style = 'style="border:0px; vertical-align:'.$align.';';
     if ($tex) {
         $tex = str_replace('&','&amp;',$tex);
         $tex = str_replace('<','&lt;',$tex);
@@ -55,11 +56,12 @@ function string_file_picture_tex($imagefile, $tex= "", $height="", $width="", $a
         $title = "title=\"$tex\"";
     }
     if ($height) {
-        $height = "height=\"$height\"";
+        $style .= " height:{$height}px;";
     }
     if ($width) {
-        $width = "width=\"$width\"";
+        $style .= " width:{$width}px;";
     }
+    $style .= '"';
     if ($imagefile) {
         if (!file_exists("$CFG->dataroot/$CFG->texfilterdir/$imagefile") && has_capability('moodle/site:config', get_context_instance(CONTEXT_SYSTEM, SITEID))) {
           $output .= "<a href=\"$CFG->wwwroot/$CFG->texfilterdir/texdebug.php\">";
@@ -70,13 +72,13 @@ function string_file_picture_tex($imagefile, $tex= "", $height="", $width="", $a
           $output .= urlencode($tex) . "', 'popup', 'menubar=0,location=0,scrollbars,";
           $output .= "resizable,width=300,height=240', 0);\">";
         }
-        $output .= "<img class=\"texrender\" border=\"0\" $title $height $width alt=\"".s($origtex)."\" src=\"";
+        $output .= "<img class=\"texrender\" $title alt=\"".s($origtex)."\" src=\"";
         if ($CFG->slasharguments) {        // Use this method if possible for better caching
             $output .= "$CFG->wwwroot/$CFG->texfilterdir/pix.php/$imagefile";
         } else {
             $output .= "$CFG->wwwroot/$CFG->texfilterdir/pix.php?file=$imagefile";
         }
-        $output .= "\" style=\"vertical-align:$align\" />";
+        $output .= "\" $style />";
         $output .= "</a>";
     } else {
         $output .= "Error: must pass URL or course";
index 9802989d1fbfeb94e5fd784884578321ebbe7111..0aae0846216c1f4606df01e89318e0603124d001 100644 (file)
@@ -584,7 +584,7 @@ if (isset($_GET['help'])) {
                     echo '<div id="mssql" name="mssql">' . get_string('databasesettingssub_mssql', 'install');
                 /// Link to mssql installation page
                     echo '<p align="right"><a href="http://docs.moodle.org/en/Installing_MSSQL_for_PHP" target="_blank">';
-                    echo '<img src="' . $INSTALL['wwwrootform'] . '/pix/docs.gif' . '" alt="Docs" border="0" />';
+                    echo '<img src="' . $INSTALL['wwwrootform'] . '/pix/docs.gif' . '" alt="Docs" class="iconhelp" />';
                     echo get_string('moodledocslink', 'install') . '</a></p>';
                     echo '</div>';
 
@@ -598,14 +598,14 @@ if (isset($_GET['help'])) {
                     echo '<div id="odbc_mssql" name="odbc_mssql">'. get_string('databasesettingssub_odbc_mssql', 'install');
                 /// Link to mssql installation page
                     echo '<p align="right"><a href="http://docs.moodle.org/en/Installing_MSSQL_for_PHP" target="_blank">';
-                    echo '<img src="' . $INSTALL['wwwrootform'] . '/pix/docs.gif' . '" alt="Docs" border="0" />';
+                    echo '<img src="' . $INSTALL['wwwrootform'] . '/pix/docs.gif' . '" alt="Docs" class="iconhelp" />';
                     echo get_string('moodledocslink', 'install') . '</a></p>';
                     echo '</div>';
 
                     echo '<div id="oci8po" name="oci8po">' . get_string('databasesettingssub_oci8po', 'install');
                 /// Link to oracle installation page
                     echo '<p align="right"><a href="http://docs.moodle.org/en/Installing_Oracle_for_PHP" target="_blank">';
-                    echo '<img src="' . $INSTALL['wwwrootform'] . '/pix/docs.gif' . '" alt="Docs" border="0" />';
+                    echo '<img src="' . $INSTALL['wwwrootform'] . '/pix/docs.gif' . '" alt="Docs" class="iconhelp" />';
                     echo get_string('moodledocslink', 'install') . '</a></p>';
                     echo '</div>';
                 } else {
@@ -981,8 +981,7 @@ function install_helpbutton($url, $title='') {
         $title = get_string('help');
     }
     echo "<a href=\"javascript: void(0)\">";
-    echo "<img src=\"./pix/help.gif\" height=\"17\" width=\"17\" alt=\"$title\"";
-    echo "border=\"0\" align=\"middle\" title=\"$title\" ";
+    echo "<img src=\"./pix/help.gif\" class=\"iconhelp\" alt=\"$title\" title=\"$title\" ";
     echo "onClick=\"return window.open('$url', 'Help', 'menubar=0,location=0,scrollbars,resizable,width=500,height=400')\">";
     echo "</a>\n";
 }
index 29572e31a7f70435b03f8b83427e90eeae3a76c1..3ff640c84b7a75de66a50a675ed2aa3ac369df3c 100644 (file)
       <blockquote> 
         <p>&nbsp;<img src="../pix/i/edit.gif" /> - the <strong>edit icon</strong> 
           lets you edit whatever it is next to.</p>
-        <p><img src="../pix/help.gif" width="22" height="17" /> - the <strong>help 
+        <p><img src="../pix/help.gif" class="iconhelp" /> - the <strong>help 
           icon</strong> will provide you with a <a target="helpwindow" href="../help.php?file=index.html">popup help window</a></p>
-        <p>&nbsp;<img src="../pix/i/hide.gif" width="16" height="16" /> - the <strong>open-eye 
+        <p>&nbsp;<img src="../pix/i/hide.gif" class="icon" /> - the <strong>open-eye 
           icon</strong> will let you hide something from students</p>
-        <p>&nbsp;<img src="../pix/i/show.gif" width="16" height="16" /> - the <strong>closed-eye 
+        <p>&nbsp;<img src="../pix/i/show.gif" class="icon" /> - the <strong>closed-eye 
           icon</strong> will make a hidden item available</p>
       </blockquote>
     </li>
index bee0cedd8e26f0aa7d5a5a30cbc12ff99d22f985..a793dde87c56e25f8854afff76683109b9fe3920 100644 (file)
@@ -5,52 +5,52 @@
     <td>
     <table border="0" align="center" cellpadding="5">
     <tr>
-      <td><a href="javascript:inserttext(':-)')"><img border="0" hspace="10" src="pix/s/smiley.gif" width="15" height="15" alt="" /></a></td>
+      <td><a href="javascript:inserttext(':-)')"><img src="pix/s/smiley.gif" class="icon" alt="" /></a></td>
       <td>smile</td>
       <td><font face="courier">:-)</font></td>
     </tr>
     <tr>
-      <td><a href="javascript:inserttext(':-D')"><img border="0" hspace="10" src="pix/s/biggrin.gif" width="15" height="15" alt="" /></a></td>
+      <td><a href="javascript:inserttext(':-D')"><img src="pix/s/biggrin.gif" class="icon" alt="" /></a></td>
       <td>big grin</td>
       <td><font face="courier">:-D</font></td>
     </tr>
     <tr>
-      <td><a href="javascript:inserttext(';-)')"><img border="0" hspace="10" src="pix/s/wink.gif" width="15" height="15" alt="" /></a></td>
+      <td><a href="javascript:inserttext(';-)')"><img src="pix/s/wink.gif" class="icon" alt="" /></a></td>
       <td>wink</td>
       <td><font face="courier">;-)</font></td>
     </tr>
     <tr>
-      <td><a href="javascript:inserttext(':-/')"><img border="0" hspace="10" src="pix/s/mixed.gif" width="15" height="15" alt="" /></a></td>
+      <td><a href="javascript:inserttext(':-/')"><img src="pix/s/mixed.gif" class="icon" alt="" /></a></td>
       <td>mixed</td>
       <td><font face="courier">:-/</font></td>
     </tr>
     <tr>
-      <td><a href="javascript:inserttext('V-.')"><img border="0" hspace="10" src="pix/s/thoughtful.gif" width="15" height="15" alt="" /></a></td>
+      <td><a href="javascript:inserttext('V-.')"><img src="pix/s/thoughtful.gif" class="icon" alt="" /></a></td>
       <td>thoughtful</td>
       <td><font face="courier">V-.</font></td>
     </tr>
     <tr>
-      <td><a href="javascript:inserttext(':-P')"><img border="0" hspace="10" src="pix/s/tongueout.gif" width="15" height="15" alt="" /></a></td>
+      <td><a href="javascript:inserttext(':-P')"><img src="pix/s/tongueout.gif" class="icon" alt="" /></a></td>
       <td>tongue out</td>
       <td><font face="courier">:-P</font></td>
     </tr>
     <tr>
-      <td><a href="javascript:inserttext('B-)')"><img border="0" hspace="10" src="pix/s/cool.gif" width="15" height="15" alt="" /></a></td>
+      <td><a href="javascript:inserttext('B-)')"><img src="pix/s/cool.gif" class="icon" alt="" /></a></td>
       <td>cool</td>
       <td><font face="courier">B-)</font></td>
     </tr>
     <tr>
-      <td><a href="javascript:inserttext('^-)')"><img border="0" hspace="10" src="pix/s/approve.gif" width="15" height="15" alt="" /></a></td>
+      <td><a href="javascript:inserttext('^-)')"><img src="pix/s/approve.gif" class="icon" alt="" /></a></td>
       <td>approve</td>
       <td><font face="courier">^-)</font></td>
     </tr>
     <tr>
-      <td><a href="javascript:inserttext('8-)')"><img border="0" hspace="10" src="pix/s/wideeyes.gif" width="15" height="15" alt="" /></a></td>
+      <td><a href="javascript:inserttext('8-)')"><img src="pix/s/wideeyes.gif" class="icon" alt="" /></a></td>
       <td>wide eyes</td>
       <td><font face="courier">8-)</font></td>
     </tr>
     <tr>
-      <td><a href="javascript:inserttext('8-o')"><img border="0" hspace="10" src="pix/s/surprise.gif" width="15" height="15" alt="" /></a></td>
+      <td><a href="javascript:inserttext('8-o')"><img src="pix/s/surprise.gif" class="icon" alt="" /></a></td>
       <td>surprise</td>
       <td><font face="courier">8-o</font></td>
     </tr>
   <td>
     <table border="0" align="center" cellpadding="5">
     <tr>
-      <td><a href="javascript:inserttext(':-(')"><img border="0" hspace="10" src="pix/s/sad.gif" width="15" height="15" alt="" /></a></td>
+      <td><a href="javascript:inserttext(':-(')"><img src="pix/s/sad.gif" class="icon" alt="" /></a></td>
       <td>sad</td>
       <td><font face="courier">:-(</font></td>
     </tr>
     <tr>
-      <td><a href="javascript:inserttext('8-.')"><img border="0" hspace="10" src="pix/s/shy.gif" width="15" height="15" alt="" /></a></td>
+      <td><a href="javascript:inserttext('8-.')"><img src="pix/s/shy.gif" class="icon" alt="" /></a></td>
       <td>shy</td>
       <td><font face="courier">8-.</font></td>
     </tr>
     <tr>
-      <td><a href="javascript:inserttext(':-I')"><img border="0" hspace="10" src="pix/s/blush.gif" width="15" height="15" alt="" /></a></td>
+      <td><a href="javascript:inserttext(':-I')"><img src="pix/s/blush.gif" class="icon" alt="" /></a></td>
       <td>blush</td>
       <td><font face="courier">:-I</font></td>
     </tr>
     <tr>
-      <td><a href="javascript:inserttext(':-X')"><img border="0" hspace="10" src="pix/s/kiss.gif" width="15" height="15" alt="" /></a></td>
+      <td><a href="javascript:inserttext(':-X')"><img src="pix/s/kiss.gif" class="icon" alt="" /></a></td>
       <td>kisses</td>
       <td><font face="courier">:-X</font></td>
     </tr>
     <tr>
-      <td><a href="javascript:inserttext(':o)')"><img border="0" hspace="10" src="pix/s/clown.gif" width="15" height="15" alt="" /></a></td>
+      <td><a href="javascript:inserttext(':o)')"><img src="pix/s/clown.gif" class="icon" alt="" /></a></td>
       <td>clown</td>
       <td><font face="courier">:o)</font></td>
     </tr>
     <tr>
-      <td><a href="javascript:inserttext('P-|')"><img border="0" hspace="10" src="pix/s/blackeye.gif" width="15" height="15" alt="" /></a></td>
+      <td><a href="javascript:inserttext('P-|')"><img src="pix/s/blackeye.gif" class="icon" alt="" /></a></td>
       <td>black eye</td>
       <td><font face="courier">P-|</font></td>
     </tr>
     <tr>
-      <td><a href="javascript:inserttext('8-[')"><img border="0" hspace="10" src="pix/s/angry.gif" width="15" height="15" alt="" /></a></td>
+      <td><a href="javascript:inserttext('8-[')"><img src="pix/s/angry.gif" class="icon" alt="" /></a></td>
       <td>angry</td>
       <td><font face="courier">8-[</font></td>
     </tr>
     <tr>
-      <td><a href="javascript:inserttext('xx-P')"><img border="0" hspace="10" src="pix/s/dead.gif" width="15" height="15" alt="" /></a></td>
+      <td><a href="javascript:inserttext('xx-P')"><img src="pix/s/dead.gif" class="icon" alt="" /></a></td>
       <td>dead</td>
       <td><font face="courier">xx-P</font></td>
     </tr>
     <tr>
-      <td><a href="javascript:inserttext('|-.')"><img border="0" hspace="10" src="pix/s/sleepy.gif" width="15" height="15" alt="" /></a></td>
+      <td><a href="javascript:inserttext('|-.')"><img src="pix/s/sleepy.gif" class="icon" alt="" /></a></td>
       <td>sleepy</td>
       <td><font face="courier">|-.</font></td>
     </tr>
     <tr>
-      <td><a href="javascript:inserttext('}-]')"><img border="0" hspace="10" src="pix/s/evil.gif" width="15" height="15" alt="" /></a></td>
+      <td><a href="javascript:inserttext('}-]')"><img src="pix/s/evil.gif" class="icon" alt="" /></a></td>
       <td>evil</td>
       <td><font face="courier">}-]</font></td>
     </tr>
index 649dd85d681d947edeebf1ceee0ea83599c971eb..455b4bd912bdb7da008e40a42837849f39e4de3f 100644 (file)
    menus in your web browser (or Control-C and Control-V).</p>
 </ul>
 
-<p><b>Inserting images <img alt="" border="0" hspace="10" src="lib/editor/htmlarea/images/ed_image.gif" /></b></p>
+<p><b>Inserting images <img alt="" src="lib/editor/htmlarea/images/ed_image.gif" /></b></p>
 <ul>
 <p>If you have images that are already published on a web site and accessible via a URL, you can include these images in your texts using the "Insert Image" button.</p>
 </ul>
 
-<p><b>Inserting Tables <img alt="" border="0" hspace="10" src="lib/editor/htmlarea/images/insert_table.gif" /></b></p>
+<p><b>Inserting Tables <img alt="" src="lib/editor/htmlarea/images/insert_table.gif" /></b></p>
 <ul>
 <p>To add layout to your texts, you can use the "Insert Tables" button in the toolbar.  
 </ul>
 
-<p><b>Inserting Links <img alt="" border="0" hspace="10" src="lib/editor/htmlarea/images/ed_link.gif" /> /</b></p>
+<p><b>Inserting Links <img alt="" src="lib/editor/htmlarea/images/ed_link.gif" /> /</b></p>
 <ul>
 <p>To make a new link, first type the text that you want to be a link.  Then select it and click the link button in the toolbar.  Type the URL you want to link to and it's done!</p>
 </ul>
 
 
-<p><b>Inserting smilies (emoticons) <img alt="" border="0" hspace="10" src="pix/s/smiley.gif" width="15" height="15" /></b></p>
+<p><b>Inserting smilies (emoticons) <img alt="" src="pix/s/smiley.gif" class="icon" /></b></p>
 <ul>
 <p>To embed these small icons in your text, click on the smiley icon in the toolbar.  A dialog will pop up that allows you to select from the following smiley icons. (Alternatively, you can just type the corresponding code straight into your text and it will be converted later when your text is displayed).</p>
 
         <td>
         <table border="0" align="center" cellpadding="10">
           <tr>
-            <td><img alt="" border="0" hspace="10" src="pix/s/smiley.gif" width="15" height="15" /></td>
+            <td><img alt="" src="pix/s/smiley.gif" class="icon" /></td>
             <td>smile</td>
             <td nowrap="nowrap"><font face="Courier">:-)</font></td>
           </tr>
           <tr>
-            <td><img alt="" border="0" hspace="10" src="pix/s/biggrin.gif" width="15" height="15" /></td>
+            <td><img alt="" src="pix/s/biggrin.gif" class="icon" /></td>
             <td>big grin</td>
             <td nowrap="nowrap"><font face="Courier">:-D</font></td>
           </tr>
           <tr>
-            <td><img alt="" border="0" hspace="10" src="pix/s/wink.gif" width="15" height="15" /></td>
+            <td><img alt="" src="pix/s/wink.gif" class="icon" /></td>
             <td>wink</td>
             <td nowrap="nowrap"><font face="Courier">;-)</font></td>
           </tr>
           <tr>
-            <td><img alt="" border="0" hspace="10" src="pix/s/mixed.gif" width="15" height="15" /></td>
+            <td><img alt="" src="pix/s/mixed.gif" class="icon" /></td>
             <td>mixed</td>
             <td nowrap="nowrap"><font face="Courier">:-/</font></td>
           </tr>
             <tr>
-              <td><img alt="" border="0" hspace="10" src="pix/s/thoughtful.gif" width="15" height="15" /></td>
+              <td><img alt="" src="pix/s/thoughtful.gif" class="icon" /></td>
               <td>thoughtful</td>
               <td nowrap="nowrap"><font face="Courier">V-.</font></td>
             </tr>
           <tr>
-            <td><img alt="" border="0" hspace="10" src="pix/s/tongueout.gif" width="15" height="15" /></td>
+            <td><img alt="" src="pix/s/tongueout.gif" class="icon" /></td>
             <td>tongue out</td>
             <td nowrap="nowrap"><font face="Courier">:-P</font></td>
          </tr>
           <tr>
-            <td><img alt="" border="0" hspace="10" src="pix/s/cool.gif" width="15" height="15" /></td>
+            <td><img alt="" src="pix/s/cool.gif" class="icon" /></td>
             <td>cool</td>
             <td nowrap="nowrap"><font face="Courier">B-)</font></td>
           </tr>
             <tr>
-              <td><img alt="" border="0" hspace="10" src="pix/s/approve.gif" width="15" height="15" /></td>
+              <td><img alt="" src="pix/s/approve.gif" class="icon" /></td>
               <td>approve</td>
               <td nowrap="nowrap"><font face="Courier">^-)</font></td>
             </tr>
             <tr>
-              <td><img alt="" border="0" hspace="10" src="pix/s/wideeyes.gif" width="15" height="15" /></td>
+              <td><img alt="" src="pix/s/wideeyes.gif" class="icon" /></td>
               <td>wide eyes</td>
               <td nowrap="nowrap"><font face="Courier">8-)</font></td>
             </tr>
             <tr>
-              <td><img alt="" border="0" hspace="10" src="pix/s/surprise.gif" width="15" height="15" /></td>
+              <td><img alt="" src="pix/s/surprise.gif" class="icon" /></td>
               <td>surprise</td>
               <td nowrap="nowrap"><font face="Courier">8-o</font></td>
             </tr>
         <td>
         <table border="0" align="center" cellpadding="10">
             <tr>
-              <td><img alt="" border="0" hspace="10" src="pix/s/sad.gif" width="15" height="15" /></td>
+              <td><img alt="" src="pix/s/sad.gif" class="icon" /></td>
               <td>sad</td>
               <td nowrap="nowrap"><font face="Courier">:-(</font></td>
             </tr>
             <tr>
-              <td><img alt="" border="0" hspace="10" src="pix/s/shy.gif" width="15" height="15" /></td>
+              <td><img alt="" src="pix/s/shy.gif" class="icon" /></td>
               <td>shy</td>
               <td nowrap="nowrap"><font face="Courier">8-.</font></td>
             </tr>
           <tr>
-            <td><img alt="" border="0" hspace="10" src="pix/s/blush.gif" width="15" height="15" /></td>
+            <td><img alt="" src="pix/s/blush.gif" class="icon" /></td>
             <td>blush</td>
             <td nowrap="nowrap"><font face="Courier">:-I</font></td>
           </tr>
             <tr>
-              <td><img alt="" border="0" hspace="10" src="pix/s/kiss.gif" width="15" height="15" /></td>
+              <td><img alt="" src="pix/s/kiss.gif" class="icon" /></td>
               <td>kisses</td>
               <td nowrap="nowrap"><font face="Courier">:-X</font></td>
             </tr>
           <tr>
-            <td><img alt="" border="0" hspace="10" src="pix/s/clown.gif" width="15" height="15" /></td>
+            <td><img alt="" src="pix/s/clown.gif" class="icon" /></td>
             <td>clown</td>
             <td nowrap="nowrap"><font face="Courier">:o)</font></td>
           </tr>
           <tr>
-            <td><img alt="" border="0" hspace="10" src="pix/s/blackeye.gif" width="15" height="15" /></td>
+            <td><img alt="" src="pix/s/blackeye.gif" class="icon" /></td>
             <td>black eye</td>
             <td nowrap="nowrap"><font face="Courier">P-|</font></td>
           </tr>
             <tr>
-              <td><img alt="" border="0" hspace="10" src="pix/s/angry.gif" width="15" height="15" /></td>
+              <td><img alt="" src="pix/s/angry.gif" class="icon" /></td>
               <td>angry</td>
               <td nowrap="nowrap"><font face="Courier">8-[</font></td>
             </tr>
             <tr>
-              <td><img alt="" border="0" hspace="10" src="pix/s/dead.gif" width="15" height="15" /></td>
+              <td><img alt="" src="pix/s/dead.gif" class="icon" /></td>
               <td>dead</td>
               <td nowrap="nowrap"><font face="Courier">xx-P</font></td>
             </tr>
             <tr>
-              <td><img alt="" border="0" hspace="10" src="pix/s/sleepy.gif" width="15" height="15" /></td>
+              <td><img alt="" src="pix/s/sleepy.gif" class="icon" /></td>
               <td>sleepy</td>
               <td nowrap="nowrap"><font face="Courier">|-.</font></td>
             </tr>
           <tr>
-            <td><img alt="" border="0" hspace="10" src="pix/s/evil.gif" width="15" height="15" /></td>
+            <td><img alt="" src="pix/s/evil.gif" class="icon" /></td>
             <td>evil</td>
             <td nowrap="nowrap"><font face="Courier">}-]</font></td>
           </tr>
index c537754ddaa24a55f0638f7bb400dcb64c466b31..2eca397c8b3e87bbfd5c8943e0f3671eeba71e5a 100644 (file)
@@ -11,52 +11,52 @@ Writing text in Moodle works pretty much the way you would expect, but you also
         <td>
         <table border="0" align="center" cellpadding="10">
           <tr>
-            <td><img alt="" border="0" hspace="10" src="pix/s/smiley.gif" width="15" height="15" /></td>
+            <td><img alt="" src="pix/s/smiley.gif" class="icon" /></td>
             <td>smile</td>
             <td><font face="Courier">:-)</font></td>
           </tr>
           <tr>
-            <td><img alt="" border="0" hspace="10" src="pix/s/biggrin.gif" width="15" height="15" /></td>
+            <td><img alt="" src="pix/s/biggrin.gif" class="icon" /></td>
             <td>big grin</td>
             <td><font face="Courier">:-D</font></td>
           </tr>
           <tr>
-            <td><img alt="" border="0" hspace="10" src="pix/s/wink.gif" width="15" height="15" /></td>
+            <td><img alt="" src="pix/s/wink.gif" class="icon" /></td>
             <td>wink</td>
             <td><font face="Courier">;-)</font></td>
           </tr>
           <tr>
-            <td><img alt="" border="0" hspace="10" src="pix/s/mixed.gif" width="15" height="15" /></td>
+            <td><img alt="" src="pix/s/mixed.gif" class="icon" /></td>
             <td>mixed</td>
             <td><font face="Courier">:-/</font></td>
           </tr>
             <tr>
-              <td><img alt="" border="0" hspace="10" src="pix/s/thoughtful.gif" width="15" height="15" /></td>
+              <td><img alt="" src="pix/s/thoughtful.gif" class="icon" /></td>
               <td>thoughtful</td>
               <td><font face="Courier">V-.</font></td>
             </tr>
           <tr>
-            <td><img alt="" border="0" hspace="10" src="pix/s/tongueout.gif" width="15" height="15" /></td>
+            <td><img alt="" src="pix/s/tongueout.gif" class="icon" /></td>
             <td>tongue out</td>
             <td><font face="Courier">:-P</font></td>
          </tr>
           <tr>
-            <td><img alt="" border="0" hspace="10" src="pix/s/cool.gif" width="15" height="15" /></td>
+            <td><img alt="" src="pix/s/cool.gif" class="icon" /></td>
             <td>cool</td>
             <td><font face="Courier">B-)</font></td>
           </tr>
             <tr>
-              <td><img alt="" border="0" hspace="10" src="pix/s/approve.gif" width="15" height="15" /></td>
+              <td><img alt="" src="pix/s/approve.gif" class="icon" /></td>
               <td>approve</td>
               <td><font face="Courier">^-)</font></td>
             </tr>
             <tr>
-              <td><img alt="" border="0" hspace="10" src="pix/s/wideeyes.gif" width="15" height="15" /></td>
+              <td><img alt="" src="pix/s/wideeyes.gif" class="icon" /></td>
               <td>wide eyes</td>
               <td><font face="Courier">8-)</font></td>
             </tr>
             <tr>
-              <td><img alt="" border="0" hspace="10" src="pix/s/surprise.gif" width="15" height="15" /></td>
+              <td><img alt="" src="pix/s/surprise.gif" class="icon" /></td>
               <td>surprise</td>
               <td><font face="Courier">8-o</font></td>
             </tr>
@@ -65,52 +65,52 @@ Writing text in Moodle works pretty much the way you would expect, but you also
         <td>
         <table border="0" align="center" cellpadding="10">
             <tr>
-              <td><img alt="" border="0" hspace="10" src="pix/s/sad.gif" width="15" height="15" /></td>
+              <td><img alt="" src="pix/s/sad.gif" class="icon" /></td>
               <td>sad</td>
               <td><font face="Courier">:-(</font></td>
             </tr>
             <tr>
-              <td><img alt="" border="0" hspace="10" src="pix/s/shy.gif" width="15" height="15" /></td>
+              <td><img alt="" src="pix/s/shy.gif" class="icon" /></td>
               <td>shy</td>
               <td><font face="Courier">8-.</font></td>
             </tr>
           <tr>
-            <td><img alt="" border="0" hspace="10" src="pix/s/blush.gif" width="15" height="15" /></td>
+            <td><img alt="" src="pix/s/blush.gif" class="icon" /></td>
             <td>blush</td>
             <td><font face="Courier">:-I</font></td>
           </tr>
             <tr>
-              <td><img alt="" border="0" hspace="10" src="pix/s/kiss.gif" width="15" height="15" /></td>
+              <td><img alt="" src="pix/s/kiss.gif" class="icon" /></td>
               <td>kisses</td>
               <td><font face="Courier">:-X</font></td>
             </tr>
           <tr>
-            <td><img alt="" border="0" hspace="10" src="pix/s/clown.gif" width="15" height="15" /></td>
+            <td><img alt="" src="pix/s/clown.gif" class="icon" /></td>
             <td>clown</td>
             <td><font face="Courier">:o)</font></td>
           </tr>
           <tr>
-            <td><img alt="" border="0" hspace="10" src="pix/s/blackeye.gif" width="15" height="15" /></td>
+            <td><img alt="" src="pix/s/blackeye.gif" class="icon" /></td>
             <td>black eye</td>
             <td><font face="Courier">P-|</font></td>
           </tr>
             <tr>
-              <td><img alt="" border="0" hspace="10" src="pix/s/angry.gif" width="15" height="15" /></td>
+              <td><img alt="" src="pix/s/angry.gif" class="icon" /></td>
               <td>angry</td>
               <td><font face="Courier">8-[</font></td>
             </tr>
             <tr>
-              <td><img alt="" border="0" hspace="10" src="pix/s/dead.gif" width="15" height="15" /></td>
+              <td><img alt="" src="pix/s/dead.gif" class="icon" /></td>
               <td>dead</td>
               <td><font face="Courier">xx-P</font></td>
             </tr>
             <tr>
-              <td><img alt="" border="0" hspace="10" src="pix/s/sleepy.gif" width="15" height="15" /></td>
+              <td><img alt="" src="pix/s/sleepy.gif" class="icon" /></td>
               <td>sleepy</td>
               <td><font face="Courier">|-.</font></td>
             </tr>
           <tr>
-            <td><img alt="" border="0" hspace="10" src="pix/s/evil.gif" width="15" height="15" /></td>
+            <td><img alt="" src="pix/s/evil.gif" class="icon" /></td>
             <td>evil</td>
             <td><font face="Courier">}-]</font></td>
           </tr>
index 8ace9069492295ec6159a689c91faf59aaf09039..0ced0282abd49f8b131fe11ab9fb9f193765d7da 100644 (file)
@@ -84,8 +84,8 @@ function cancel() {
             $name = $fullnames[$image];
             $icon = $emoticons[$image];
             echo '<tr>';
-            echo "<td><img alt=\"$name\" border=\"0\" hspace=\"10\" src=\"$pixpath/$image.gif\" ".
-                 " onclick=\"insert('$pixpath/$image.gif','$name')\" width=\"15\" height=\"15\" /></td>";
+            echo "<td><img alt=\"$name\" class=\"icon\" src=\"$pixpath/$image.gif\" ".
+                 " onclick=\"insert('$pixpath/$image.gif','$name')\" /></td>";
             echo "<td>$name</td>";
             echo "<td class=\"smile\">$icon</td>";
             echo "</tr>";
@@ -103,8 +103,8 @@ function cancel() {
             $name = $fullnames[$image];
             $icon = $emoticons[$image];
             echo '<tr>';
-            echo "<td><img alt=\"$name\" border=\"0\" hspace=\"10\" src=\"$pixpath/$image.gif\" ".
-                 " onclick=\"insert('$pixpath/$image.gif','$name')\" width=\"15\" height=\"15\" /></td>";
+            echo "<td><img alt=\"$name\" class=\"icon\" src=\"$pixpath/$image.gif\" ".
+                 " onclick=\"insert('$pixpath/$image.gif','$name')\" /></td>";
             echo "<td>$name</td>";
             echo "<td class=\"smile\">$icon</td>";
             echo "</tr>";
index 441a4ac7a2f46b80d7babfa8bb3fe4d87bed5f55..034384ddebb6675d576ba0ba6b9a3f41dcb4bac4 100644 (file)
@@ -4461,7 +4461,7 @@ function print_grade_menu($courseid, $name, $current, $includenograde=true, $ret
     }
     $output .= choose_from_menu($grades, $name, $current, '', '', 0, true);
 
-    $linkobject = '<span class="helplink"><img height="17" width="17" alt="'.$strscales.'" src="'.$CFG->pixpath .'/help.gif" /></span>';
+    $linkobject = '<span class="helplink"><img class="iconhelp" alt="'.$strscales.'" src="'.$CFG->pixpath .'/help.gif" /></span>';
     $output .= link_to_popup_window ('/course/scales.php?id='. $courseid .'&amp;list=true', 'ratingscales',
                                      $linkobject, 400, 500, $strscales, 'none', true);
 
@@ -4489,7 +4489,7 @@ function print_scale_menu($courseid, $name, $current, $return=false) {
     $strscales = get_string('scales');
     $output .= choose_from_menu(get_scales_menu($courseid), $name, $current, '', '', 0, true);
 
-    $linkobject = '<span class="helplink"><img height="17" width="17" alt="'.$strscales.'" src="'.$CFG->pixpath .'/help.gif" /></span>';
+    $linkobject = '<span class="helplink"><img class="iconhelp" alt="'.$strscales.'" src="'.$CFG->pixpath .'/help.gif" /></span>';
     $output .= link_to_popup_window ('/course/scales.php?id='. $courseid .'&amp;list=true', 'ratingscales',
                                      $linkobject, 400, 500, $strscales, 'none', true);
     if ($return) {
@@ -4514,7 +4514,7 @@ function print_scale_menu_helpbutton($courseid, $scale, $return=false) {
     $output = '';
     $strscales = get_string('scales');
 
-    $linkobject = '<span class="helplink"><img height="17" width="17" alt="'.$scale->name.'" src="'.$CFG->pixpath .'/help.gif" /></span>';
+    $linkobject = '<span class="helplink"><img class="iconhelp" alt="'.$scale->name.'" src="'.$CFG->pixpath .'/help.gif" /></span>';
     $output .= link_to_popup_window ('/course/scales.php?id='. $courseid .'&amp;list=true&amp;scaleid='. $scale->id, 'ratingscale',
                                      $linkobject, 400, 500, $scale->name, 'none', true);
     if ($return) {
@@ -4675,7 +4675,7 @@ function editorhelpbutton(){
     $alttag = join (', ', $titles);
 
     $paramstring = join('&', $urlparams);
-    $linkobject = '<img alt="'.$alttag.'" src="'.$CFG->pixpath .'/help.gif" />';
+    $linkobject = '<img alt="'.$alttag.'" class="iconhelp" src="'.$CFG->pixpath .'/help.gif" />';
     return link_to_popup_window(s('/lib/form/editorhelp.php?'.$paramstring), $alttag, $linkobject, 400, 500, $alttag, 'none', true);
 }
 
@@ -4724,7 +4724,7 @@ function helpbutton ($page, $title='', $module='moodle', $image=true, $linktext=
         if ($imagetext) {
             $linkobject .= $imagetext;
         } else {
-            $linkobject .= '<img alt="'.$tooltip.'" src="'.
+            $linkobject .= '<img class="iconhelp" alt="'.$tooltip.'" src="'.
                        $CFG->pixpath .'/help.gif" />';
         }
     } else {
@@ -4786,7 +4786,7 @@ function editorshortcutshelpbutton() {
 
     global $CFG;
     $imagetext = '<img src="' . $CFG->wwwroot . '/lib/editor/htmlarea/images/kbhelp.gif" alt="'.
-                                       get_string('editorshortcutkeys').'" style="width:49px; height:17px; margin:0;" />';
+                                       get_string('editorshortcutkeys').'" class="iconkbhelp" />';
 
     return helpbutton('editorshortcuts', get_string('editorshortcutkeys'), 'moodle', true, false, '', true, $imagetext);
 }
@@ -5569,7 +5569,7 @@ function page_doc_link($text='', $iconpath='') {
     }
 
     // alt left blank intentionally to prevent repetition in screenreaders
-    $str .= '<img src="' .$iconpath. '" alt="" />' .$text. '</a>';
+    $str .= '<img class="iconhelp" src="' .$iconpath. '" alt="" />' .$text. '</a>';
 
     return $str;
 }
index 6335079635b9dd7d5864ea80502093f6044cba58..46038811655ba86debac1ec3305abf2616cdd55b 100755 (executable)
@@ -104,11 +104,11 @@ class data_field_picture extends data_field_file {
                 $width = $this->field->param4 ? ' width="'.s($this->field->param4).'" ' : ' ';
                 $height = $this->field->param5 ? ' height="'.s($this->field->param5).'" ' : ' ';
                 $str = '<a href="view.php?d='.$this->field->dataid.'&amp;rid='.$recordid.'"><img '.
-                     $width.$height.' src="'.$thumbnailsource.'" alt="'.s($alt).'" title="'.s($title).'" border="0" /></a>';
+                     $width.$height.' src="'.$thumbnailsource.'" alt="'.s($alt).'" title="'.s($title).'" style="border:0px" /></a>';
             } else {
                 $width = $this->field->param1 ? ' width="'.s($this->field->param1).'" ':' ';
                 $height = $this->field->param2 ? ' height="'.s($this->field->param2).'" ':' ';
-                $str = '<a href="'.$source.'"><img '.$width.$height.' src="'.$source.'" alt="'.s($alt).'" title="'.s($title).'" border="0"/></a>';
+                $str = '<a href="'.$source.'"><img '.$width.$height.' src="'.$source.'" alt="'.s($alt).'" title="'.s($title).'" style="border:0px" /></a>';
             }
             return $str;
         }
index 7c4953da526786f62c9c7e0777bf528176eff263..e3d295c14a04415678858f6baa77216452478709 100644 (file)
         $recformat = get_record('glossary_formats','id',$formatid);
         echo '<tr>';
         echo '<td>' . $formatname . '</td>';
-        $eicon = "<a title=\"" . get_string("edit") . "\" href=\"$CFG->wwwroot/mod/glossary/formats.php?id=$formatid&mode=edit\"><img border=\"0\" src=\"../pix/t/edit.gif\" alt=\"".get_string("edit")."\" /></a>";
+        $eicon = "<a title=\"" . get_string("edit") . "\" href=\"$CFG->wwwroot/mod/glossary/formats.php?id=$formatid&mode=edit\"><img class=\"iconsmall\" src=\"../pix/t/edit.gif\" alt=\"".get_string("edit")."\" /></a>";
         if ( $recformat->visible ) {
             $vtitle = get_string("hide");
             $vicon = "hide.gif";
             $vtitle = get_string("show");
             $vicon = "show.gif";
         }
-        $vicon = "<a title=\"" . $vtitle . "\" href=\"$CFG->wwwroot/mod/glossary/formats.php?id=$formatid&mode=visible\"><img border=\"0\" src=\"../pix/t/" . $vicon . "\" alt=\"$vtitle\" /></a>";
+        $vicon = "<a title=\"" . $vtitle . "\" href=\"$CFG->wwwroot/mod/glossary/formats.php?id=$formatid&mode=visible\"><img class=\"iconsmall\" src=\"../pix/t/" . $vicon . "\" alt=\"$vtitle\" /></a>";
 
         echo '<td align="center" nowrap="nowrap">' . $eicon . '&nbsp;&nbsp;' . $vicon . '</td>';
         echo '</tr>';
index 88aac4fea9d7f0be3e09f6ed39a6b89d3c9abcb9..a1531d9219e684f1f67d304e84c46aebeeef8dd4 100644 (file)
     $printicon = '';
     if ( $isuserframe and $mode != 'search') {
         if (has_capability('mod/glossary:manageentries', $context) or $glossary->allowprintview) {
-            $printicon = " <a title =\"". get_string("printerfriendly","glossary") ."\" target=\"printview\" href=\"print.php?id=$cm->id&amp;mode=$mode&amp;hook=$hook&amp;sortkey=$sortkey&amp;sortorder=$sortorder&amp;offset=$offset\"><img border=\"0\" src=\"print.gif\" alt=\"". get_string("printerfriendly","glossary") . "\" /></a>";
+            $printicon = " <a title =\"". get_string("printerfriendly","glossary") ."\" target=\"printview\" href=\"print.php?id=$cm->id&amp;mode=$mode&amp;hook=$hook&amp;sortkey=$sortkey&amp;sortorder=$sortorder&amp;offset=$offset\"><img class=\"icon\" src=\"print.gif\" alt=\"". get_string("printerfriendly","glossary") . "\" /></a>";
         }
     }
     print_heading(format_string($glossary->name).$printicon);
index c474a700bb69b9abf4e5bcbe1b887b0ddb58d65f..274f9bb9f7c64ceff764ba230b5adf0aff59348e 100644 (file)
@@ -609,7 +609,7 @@ function quiz_get_question_review($quiz, $question) {
     $quiz_id = $quiz->id ? '&amp;quizid=' . $quiz->id : '';
     return "<a title=\"$strpreview\" href=\"javascript:void(0)\" onClick=\"openpopup('/question/preview.php?id=$qnum$quiz_id','questionpreview', " .
             QUESTION_PREVIEW_POPUP_OPTIONS . ", false)\">
-            <img src=\"../../pix/t/preview.gif\" border=\"0\" alt=\"$strpreview\" /></a>";
+            <img src=\"../../pix/t/preview.gif\" class=\"iconsmall\" alt=\"$strpreview\" /></a>";
 }
 
 
index a90fa55b6f1502d98d1b642968205fd40e377173..e9ce98f6d1859c34791d16559ae2f0bb8f0b6bf0 100644 (file)
@@ -334,7 +334,7 @@ function ewiki_entry_downloads($row, $show_section=0, $fullinfo=false) {
 
    $info->id = $id;
    $info->size = $p_size;
-   $info->icon = ($p_icon ? '<img src="'.$p_icon.'" alt="['.$p_icon_t.']" align="left" width="14" height="14" border="0" /> ' : '');
+   $info->icon = ($p_icon ? '<img src="'.$p_icon.'" alt="['.$p_icon_t.']" class="icon" /> ' : '');
    $info->time = $p_time;
    $info->hits = $p_hits;
    $info->section = ($show_section ? ewiki_t('dwnl_section') . ": $p_section<br />" : '');
index 056e7a44164760f8ec2c2533ea5e909677aa9e88..1cde6d2fb8d2efc6a5b3091b8a2543f35b395e1d 100644 (file)
@@ -294,21 +294,35 @@ form.popupform {
 }
 
 img.icon {      
-  vertical-align: middle;   
-  margin-right: 4px;    
+  vertical-align:middle;   
+  margin-right:4px;
   width:16px;   
   height:16px;      
   border:0px;   
 }   
     
 img.iconsmall {     
-  vertical-align: middle;   
-  margin-right: 1px;    
+  vertical-align:middle;   
+  margin-right:1px;
   width:11px;   
   height:11px;      
   border:0px;   
 }
 
+img.iconhelp {     
+  vertical-align:middle;   
+  margin-right:4px;
+  width:17px;   
+  height:17px;      
+  border:0px;   
+}
+
+img.iconkbhelp {     
+  width:49px;   
+  height:17px;      
+  border:0px;   
+}
+
 /*Accessibility: text 'seen' by screen readers but not visual users. Fixed for RTL languages, example Farsi. */
 .accesshide {
   position:absolute;