Parcourir la source

All images must have an alternate text.

Fredrik Jervfors il y a 18 ans
Parent
commit
fabf27acb9
2 fichiers modifiés avec 4 ajouts et 5 suppressions
  1. 2 3
      functions/template/general_util.php
  2. 2 2
      templates/default_advanced/login.tpl

+ 2 - 3
functions/template/general_util.php

@@ -79,7 +79,7 @@ function create_css_link($uri, $name='', $alt=TRUE, $mtype='screen') {
  * @param string $icon_theme_path User's chosen icon set
  * @param string $icon_theme_path User's chosen icon set
  * @param string $icon_name File name of the desired icon
  * @param string $icon_name File name of the desired icon
  * @param string $text_icon Text-based icon to display if desired
  * @param string $text_icon Text-based icon to display if desired
- * @param string $alt_text Optional.  Text for alt/title attribute of image
+ * @param string $alt_text Text for alt/title attribute of image
  * @param integer $w Optional.  Width of requested image.
  * @param integer $w Optional.  Width of requested image.
  * @param integer $h Optional.  Height of requested image.
  * @param integer $h Optional.  Height of requested image.
  *
  *
@@ -87,9 +87,8 @@ function create_css_link($uri, $name='', $alt=TRUE, $mtype='screen') {
  *
  *
  * @author Steve Brown
  * @author Steve Brown
  * @since 1.5.2
  * @since 1.5.2
- *
  */
  */
-function getIcon($icon_theme_path, $icon_name, $text_icon, $alt_text='', $w=NULL, $h=NULL) {
+function getIcon($icon_theme_path, $icon_name, $text_icon, $alt_text, $w=NULL, $h=NULL) {
     $icon = '';
     $icon = '';
     if (is_null($icon_theme_path)) {
     if (is_null($icon_theme_path)) {
         $icon = $text_icon;
         $icon = $text_icon;

+ 2 - 2
templates/default_advanced/login.tpl

@@ -34,7 +34,7 @@ extract($t);
 <table cellspacing="0">
 <table cellspacing="0">
  <tr>
  <tr>
   <td colspan="2">
   <td colspan="2">
-   <?php echo getIcon($icon_theme_path, 'login1.png', ''); ?>
+   <?php echo getIcon($icon_theme_path, 'login1.png', '', _("The SquirrelMail logo")); ?>
   </td>
   </td>
  </tr>
  </tr>
  <tr>
  <tr>
@@ -49,7 +49,7 @@ extract($t);
  </tr>
  </tr>
  <tr>
  <tr>
   <td class="orgLogo">
   <td class="orgLogo">
-   <img src="<?php echo $logo_path; ?>" width="50px" />
+   <img src="<?php echo $logo_path; ?>" width="50" alt="<?php echo _("The service provider's logo"); ?>" />
   </td>
   </td>
   <td>
   <td>
    <table cellspacing="0">
    <table cellspacing="0">