Re: Admin menu icon
Reply #3 –
if (isset($area['icon']))Right now the code allows you to pass an icon name and use that as the image or use the class name on the transparent image. So its easy for addons to use a non-sprite image in the menu with icon.
$menu_context['sections'][$section_id]['areas'][$area_id]['icon'] = '<img ' . (isset($area['class']) ? 'class="' . $area['class'] . '" ' : 'style="background: none"') . ' src="' . $context['menu_image_path'] . '/' . $area['icon'] . '" alt="" /> ';
I think you can remove it and just change that code around a bit, maybe isset($area['class']) do a sprite else isset($area['icon']) do an icon? Could probably update the css as well, use a pseudo instead of the image tag for the class call.