Revision 492189e2
Von Sven Donath vor etwa 14 Jahren hinzugefügt
bin/mozilla/menu.pl | ||
---|---|---|
118 | 118 |
my $form = $main::form; |
119 | 119 |
my %myconfig = %main::myconfig; |
120 | 120 |
my $locale = $main::locale; |
121 |
my $is_links_browser = 1; |
|
122 |
if ( _calc_framesize() eq 240) { $is_links_browser = 0; } |
|
121 |
my $is_not_links_browser = $ENV{HTTP_USER_AGENT} =~ /links/i ? 0 : 1; |
|
123 | 122 |
|
124 | 123 |
my $zeige; |
125 | 124 |
|
... | ... | |
204 | 203 |
qq|<tr><td class="hover" height="16" >$spacer| |
205 | 204 |
. $menu->menuitem(\%myconfig, \%$form, $item, $level) ; |
206 | 205 |
|
207 |
if (-f "image/icons/16x16/$label_icon" && ($is_links_browser)) |
|
206 |
if (-f "image/icons/16x16/$label_icon" && ($is_not_links_browser))
|
|
208 | 207 |
|
209 | 208 |
qq|<img src="image/icons/16x16/$label_icon" border="0" style="vertical-align:text-top" title="| |
210 | 209 |
. $label |
211 | 210 |
. qq|"> | } |
212 | 211 |
else { |
213 |
if ($is_links_browser) { |
|
212 |
if ($is_not_links_browser) {
|
|
214 | 213 |
print qq|<img src="image/unterpunkt.png" border="0" style="vertical-align:text-top">|; |
215 | 214 |
} |
216 | 215 |
} |
... | ... | |
237 | 236 |
|
238 | 237 |
qq|<tr><td class="bg" height="24" align="left" valign="middle"> |
239 | 238 |
<a href="menu.pl?action=acc_menu&level=$ml_" class="nohover" title="$label">|; |
240 |
if ($is_links_browser) { |
|
239 |
if ($is_not_links_browser) {
|
|
241 | 240 |
print qq|<img src="image/icons/24x24/$item.png" border="0" style="vertical-align:middle" title="$label">|; |
242 | 241 |
} |
243 | 242 |
print qq| $label</a> </td></tr>\n|; |
Auch abrufbar als: Unified diff
HTML-Menü, interne Logik verbessert.