';
// iterate through all icons for the map
foreach ($icons as $genre) {
if (count($genre->parents) == 1 && $genre->parents[0] == 0) {
// display genres
$key .= '
' . t($genre->name) . '
';
$key .= '
';
foreach ($icons as $category) {
if (in_array($genre->tid, $category->parents)) {
// display child categories
$key .= '
' . t($category->name) . '
';
$key .= '
';
foreach ($icons as $icon) {
if (in_array($category->tid, $icon->parents)) {
// display child icons
$key .= '';
// TT: Resizing taxonomy images for key by overriding the size. This is basically a CSS resize. Quick.
$key .= taxonomy_image_display($icon->tid, NULL, NULL, array('resize' => '1', 'width' => '21', 'height' => '18', 'imagecache_preset' => 'ORIGINAL'));
$key .= '';
}
}
$key .= '