Revision 94fbacae
Added by Colin Fleming over 12 years ago
usr/local/www/shortcuts.inc | ||
---|---|---|
93 | 93 |
break; |
94 | 94 |
} |
95 | 95 |
if(!empty($link) && ($_SERVER['REQUEST_URI'] != "/{$link}")) |
96 |
return "{$space}<a href=\"{$link}\" title=\"" . gettext("Main page for this section") . "\"><img style=\"vertical-align:middle\" src=\"/themes/{$g['theme']}/images/icons/icon_plus.gif\" border=\"0\"></a>"; |
|
96 |
return "{$space}<a href=\"{$link}\" title=\"" . gettext("Main page for this section") . "\"><img style=\"vertical-align:middle\" src=\"/themes/{$g['theme']}/images/icons/icon_plus.gif\" border=\"0\" alt=\"plus\" /></a>";
|
|
97 | 97 |
} |
98 | 98 |
|
99 | 99 |
function get_shortcut_status_link($shortcut_section, $addspace = true, $service = array()) { |
... | ... | |
117 | 117 |
break; |
118 | 118 |
} |
119 | 119 |
if(!empty($link)) |
120 |
return "{$space}<a href=\"{$link}\" title=\"" . gettext("Status of items on this page") . "\"><img style=\"vertical-align:middle\" src=\"/themes/{$g['theme']}/images/icons/icon_service_status.gif\" border=\"0\"></a>"; |
|
120 |
return "{$space}<a href=\"{$link}\" title=\"" . gettext("Status of items on this page") . "\"><img style=\"vertical-align:middle\" src=\"/themes/{$g['theme']}/images/icons/icon_service_status.gif\" border=\"0\" alt=\"status\" /></a>";
|
|
121 | 121 |
} |
122 | 122 |
|
123 | 123 |
function get_shortcut_log_link($shortcut_section, $addspace = true) { |
124 | 124 |
global $g, $shortcuts; |
125 | 125 |
$space = ($addspace) ? " " : "" ; |
126 | 126 |
if(!empty($shortcut_section) && !empty($shortcuts[$shortcut_section]['log'])) { |
127 |
return "{$space}<a href=\"{$shortcuts[$shortcut_section]['log']}\" title=\"" . gettext("Log entries for items on this page") . "\"><img style=\"vertical-align:middle\" src=\"/themes/{$g['theme']}/images/icons/icon_logs.gif\" border=\"0\"></a>"; |
|
127 |
return "{$space}<a href=\"{$shortcuts[$shortcut_section]['log']}\" title=\"" . gettext("Log entries for items on this page") . "\"><img style=\"vertical-align:middle\" src=\"/themes/{$g['theme']}/images/icons/icon_logs.gif\" border=\"0\" alt=\"logs\" /></a>";
|
|
128 | 128 |
} |
129 | 129 |
} |
130 | 130 |
|
Also available in: Unified diff
Tidy up XHTML
Added ALT to img tag