function tep_show_sections_map($parent_id = 0, $level = 0) { global $languages_id; $sections_string = ''; if ($level == 0) { $sections_string .= '<div id="sitemap_sections">' . "\n"; } $first_page_found = false; $menu = tep_get_sections_for_sitemap($parent_id); reset($menu); while (list($i, $menu_item) = each($menu)) { if (tep_not_null($menu_item['link'])) { if ($menu_item['link'] == tep_href_link(FILENAME_DEFAULT)) { $sections_string .= ' <a href="' . $menu_item['link'] . '" class="level_0">' . $menu_item['title'] . '</a>' . "\n" . ' <div class="level_0">' . "\n"; $first_page_found = true; } else { $sections_string .= ' <a href="' . $menu_item['link'] . '" class="level_' . ($level + 1) . '">' . $menu_item['title'] . '</a>' . "\n"; } if ($menu_item['type'] == 'section' && $level < SITEMAP_LEVEL) { $sections_string .= ' <div class="level_' . ($level + 1) . '">' . "\n" . tep_show_sections_map($menu_item['id'], $level + 1) . '</div>' . "\n"; } } } if ($first_page_found) { $sections_string .= ' </div><br />' . "\n"; } if ($level == 0) { $sections_string .= ' <a href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '" class="level_0">' . SITEMAP_SEARCH_LINK . '</a><br /><br />' . "\n" . '</div>' . "\n"; } return $sections_string; }
<?php echo $page['pages_description']; echo ' <table border="0" cellspacing="0" cellpadding="0">' . "\n" . ' <tr>' . "\n" . ' <td class="sitemap_left_column">' . "\n" . tep_show_categories_map() . '</td>' . "\n" . ' <td class="sitemap_right_column">' . "\n"; reset($active_products_types_array); while (list(, $product_type_id) = each($active_products_types_array)) { if ($product_type_id > 1) { echo tep_show_categories_map(0, 0, $product_type_id); } } echo '' . tep_show_sections_map() . tep_show_manufacturers_map() . tep_show_authors_map() . tep_show_series_map() . tep_show_specials_map() . tep_show_account_map() . '</td>' . "\n" . ' </tr>' . "\n" . ' </table>' . "\n";