Changeset 12982
- Timestamp:
- 11/13/08 18:25:10 (8 months ago)
- Files:
-
- branches/1.2/lib/debug/sfWebDebug.class.php (modified) (1 diff)
- branches/1.2/lib/debug/sfWebDebugPanelCache.class.php (modified) (1 diff)
- branches/1.2/lib/debug/sfWebDebugPanelConfig.class.php (modified) (2 diffs)
- branches/1.2/lib/debug/sfWebDebugPanelLogs.class.php (modified) (4 diffs)
- branches/1.2/lib/debug/sfWebDebugPanelMemory.class.php (modified) (1 diff)
- branches/1.2/lib/debug/sfWebDebugPanelTimer.class.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.2/lib/debug/sfWebDebug.class.php
r12587 r12982 197 197 <div id="sfWebDebug"> 198 198 <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> 200 200 201 201 <ul id="sfWebDebugDetails" class="menu"> 202 202 '.implode("\n", $titles).' 203 203 <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> 205 205 </li> 206 206 </ul> branches/1.2/lib/debug/sfWebDebugPanelCache.class.php
r11164 r12982 22 22 public function getTitle() 23 23 { 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" />'; 25 25 } 26 26 branches/1.2/lib/debug/sfWebDebugPanelConfig.class.php
r11164 r12982 21 21 public function getTitle() 22 22 { 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'; 24 24 } 25 25 … … 75 75 76 76 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> 78 78 <div id="sfWebDebug'.$id.'" style="display: none"><pre>'.htmlspecialchars(sfYaml::dump(self::removeObjects($values)), ENT_QUOTES, sfConfig::get('sf_charset')).'</pre></div> 79 79 '; branches/1.2/lib/debug/sfWebDebugPanelLogs.class.php
r11726 r12982 21 21 public function getTitle() 22 22 { 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'; 24 24 } 25 25 … … 54 54 if (count($log['debug_stack'])) 55 55 { 56 $debug_info .= ' <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 .= ' <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">'; 57 57 foreach ($log['debug_stack'] as $i => $logLine) 58 58 { … … 67 67 $log['type'], 68 68 $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).'"/>', 70 70 $type, 71 71 $this->formatLogLine($log['message']), … … 85 85 <li><a href="#" onclick="sfWebDebugToggleAllLogLines(true, \'sfWebDebugLogLine\'); return false;">[all]</a></li> 86 86 <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> 90 90 <li>'.implode("</li>\n<li>", $types).'</li> 91 91 </ul> branches/1.2/lib/debug/sfWebDebugPanelMemory.class.php
r11164 r12982 25 25 $totalMemory = sprintf('%.1f', (memory_get_usage() / 1024)); 26 26 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'; 28 28 } 29 29 } branches/1.2/lib/debug/sfWebDebugPanelTimer.class.php
r12698 r12982 36 36 public function getTitle() 37 37 { 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'; 39 39 } 40 40

