Revision 7e161f1f
Von Sven Schöling vor mehr als 12 Jahren hinzugefügt
bin/mozilla/menunew.pl | ||
---|---|---|
137 | 137 |
|
138 | 138 |
if ($menu_item->{submenu} || !defined($menu_item->{module}) || ($menu_item->{module} eq "menu.pl")) { |
139 | 139 |
$item->{subitems} = []; |
140 |
$item->{image} = _icon_path("$name.png"); |
|
140 | 141 |
create_menu($menu, $item->{subitems}, "${parent}${name}", $depth * 1 + 1); |
141 | 142 |
|
142 | 143 |
} else { |
144 |
$item->{image} = _icon_path("${parent}${name}.png"); |
|
143 | 145 |
$menu->menuitem_new("${parent}${name}", $item); |
144 | 146 |
} |
145 | 147 |
} |
146 | 148 |
} |
149 |
|
|
150 |
sub _icon_path { |
|
151 |
my ($label, $size) = @_; |
|
152 |
|
|
153 |
$size ||= 16; |
|
154 |
|
|
155 |
return "image/icons/${size}x${size}/$label"; |
|
156 |
} |
|
157 |
|
Auch abrufbar als: Unified diff
Icons im Javascriptmenü