Development

Changeset 12982

You must first sign up to be able to contribute.

Changeset 12982

Show
Ignore:
Timestamp:
11/13/08 18:25:10 (8 months ago)
Author:
hartym
Message:

[1.2] added alt attributes to web debug toolbar icons to be xhtml valid

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.2/lib/debug/sfWebDebug.class.php

    r12587 r12982  
    197197      <div id="sfWebDebug"> 
    198198        <div id="sfWebDebugBar" class="sfWebDebug'.ucfirst($this->getPriority($this->logger->getHighestPriority())).'"> 
    199           <a href="#" onclick="sfWebDebugToggleMenu(); return false;"><img src="'.$this->options['image_root_path'].'/sf.png" /></a> 
     199          <a href="#" onclick="sfWebDebugToggleMenu(); return false;"><img src="'.$this->options['image_root_path'].'/sf.png" alt="Debug toolbar" /></a> 
    200200 
    201201          <ul id="sfWebDebugDetails" class="menu"> 
    202202            '.implode("\n", $titles).' 
    203203            <li class="last"> 
    204               <a href="#" onclick="document.getElementById(\'sfWebDebug\').style.display=\'none\'; return false;"><img src="'.$this->options['image_root_path'].'/close.png" /></a> 
     204              <a href="#" onclick="document.getElementById(\'sfWebDebug\').style.display=\'none\'; return false;"><img src="'.$this->options['image_root_path'].'/close.png" alt="Close" /></a> 
    205205            </li> 
    206206          </ul> 
  • branches/1.2/lib/debug/sfWebDebugPanelCache.class.php

    r11164 r12982  
    2222  public function getTitle() 
    2323  { 
    24     return '<img src="'.$this->webDebug->getOption('image_root_path').'/reload.png'.'" />'; 
     24    return '<img src="'.$this->webDebug->getOption('image_root_path').'/reload.png" alt="Reload" />'; 
    2525  } 
    2626 
  • branches/1.2/lib/debug/sfWebDebugPanelConfig.class.php

    r11164 r12982  
    2121  public function getTitle() 
    2222  { 
    23     return '<img src="'.$this->webDebug->getOption('image_root_path').'/config.png" /> config'; 
     23    return '<img src="'.$this->webDebug->getOption('image_root_path').'/config.png" alt="Config" /> config'; 
    2424  } 
    2525 
     
    7575 
    7676    return ' 
    77     <h2>'.$id.' <a href="#" onclick="sfWebDebugToggle(\'sfWebDebug'.$id.'\'); return false;"><img src="'.$this->webDebug->getOption('image_root_path').'/toggle.gif" /></a></h2> 
     77    <h2>'.$id.' <a href="#" onclick="sfWebDebugToggle(\'sfWebDebug'.$id.'\'); return false;"><img src="'.$this->webDebug->getOption('image_root_path').'/toggle.gif" alt="Toggle details" /></a></h2> 
    7878    <div id="sfWebDebug'.$id.'" style="display: none"><pre>'.htmlspecialchars(sfYaml::dump(self::removeObjects($values)), ENT_QUOTES, sfConfig::get('sf_charset')).'</pre></div> 
    7979    '; 
  • branches/1.2/lib/debug/sfWebDebugPanelLogs.class.php

    r11726 r12982  
    2121  public function getTitle() 
    2222  { 
    23     return '<img src="'.$this->webDebug->getOption('image_root_path').'/log.png" /> logs'; 
     23    return '<img src="'.$this->webDebug->getOption('image_root_path').'/log.png" alt="Log" /> logs'; 
    2424  } 
    2525 
     
    5454      if (count($log['debug_stack'])) 
    5555      { 
    56         $debug_info .= '&nbsp;<a href="#" onclick="sfWebDebugToggle(\'debug_'.$line_nb.'\'); return false;"><img src="'.$this->webDebug->getOption('image_root_path').'/toggle.gif" /></a><div class="sfWebDebugDebugInfo" id="debug_'.$line_nb.'" style="display:none">'; 
     56        $debug_info .= '&nbsp;<a href="#" onclick="sfWebDebugToggle(\'debug_'.$line_nb.'\'); return false;"><img src="'.$this->webDebug->getOption('image_root_path').'/toggle.gif" alt="Toggle XDebug details" /></a><div class="sfWebDebugDebugInfo" id="debug_'.$line_nb.'" style="display:none">'; 
    5757        foreach ($log['debug_stack'] as $i => $logLine) 
    5858        { 
     
    6767        $log['type'], 
    6868        $line_nb, 
    69         '<img src="'.$this->webDebug->getOption('image_root_path').'/'.$priority.'.png" />', 
     69        '<img src="'.$this->webDebug->getOption('image_root_path').'/'.$priority.'.png" alt="'.ucfirst($priority).'"/>', 
    7070        $type, 
    7171        $this->formatLogLine($log['message']), 
     
    8585        <li><a href="#" onclick="sfWebDebugToggleAllLogLines(true, \'sfWebDebugLogLine\'); return false;">[all]</a></li> 
    8686        <li><a href="#" onclick="sfWebDebugToggleAllLogLines(false, \'sfWebDebugLogLine\'); return false;">[none]</a></li> 
    87         <li><a href="#" onclick="sfWebDebugShowOnlyLogLines(\'info\'); return false;"><img src="'.$this->webDebug->getOption('image_root_path').'/info.png" /></a></li> 
    88         <li><a href="#" onclick="sfWebDebugShowOnlyLogLines(\'warning\'); return false;"><img src="'.$this->webDebug->getOption('image_root_path').'/warning.png" /></a></li> 
    89         <li><a href="#" onclick="sfWebDebugShowOnlyLogLines(\'error\'); return false;"><img src="'.$this->webDebug->getOption('image_root_path').'/error.png" /></a></li> 
     87        <li><a href="#" onclick="sfWebDebugShowOnlyLogLines(\'info\'); return false;"><img src="'.$this->webDebug->getOption('image_root_path').'/info.png" alt="Show only infos" /></a></li> 
     88        <li><a href="#" onclick="sfWebDebugShowOnlyLogLines(\'warning\'); return false;"><img src="'.$this->webDebug->getOption('image_root_path').'/warning.png" alt="Show only warnings" /></a></li> 
     89        <li><a href="#" onclick="sfWebDebugShowOnlyLogLines(\'error\'); return false;"><img src="'.$this->webDebug->getOption('image_root_path').'/error.png" alt="Show only errors" /></a></li> 
    9090        <li>'.implode("</li>\n<li>", $types).'</li> 
    9191      </ul> 
  • branches/1.2/lib/debug/sfWebDebugPanelMemory.class.php

    r11164 r12982  
    2525      $totalMemory = sprintf('%.1f', (memory_get_usage() / 1024)); 
    2626 
    27       return '<img src="'.$this->webDebug->getOption('image_root_path').'/memory.png" /> '.$totalMemory.' KB'; 
     27      return '<img src="'.$this->webDebug->getOption('image_root_path').'/memory.png" alt="Memory" /> '.$totalMemory.' KB'; 
    2828    } 
    2929  } 
  • branches/1.2/lib/debug/sfWebDebugPanelTimer.class.php

    r12698 r12982  
    3636  public function getTitle() 
    3737  { 
    38     return '<img src="'.$this->webDebug->getOption('image_root_path').'/time.png" /> '.$this->getTotalTime().' ms'; 
     38    return '<img src="'.$this->webDebug->getOption('image_root_path').'/time.png" alt="Time" /> '.$this->getTotalTime().' ms'; 
    3939  } 
    4040 

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting, and supporting several large Open-Source projects.