function theme_site_map_display in Site map 6
Same name and namespace in other branches
- 5 site_map.module \theme_site_map_display()
Return a themed site map.
Return value
string A string containing the site map output.
1 theme call to theme_site_map_display()
- site_map_page in ./
site_map.module - Menu callback for the site map.
File
- ./
site_map.module, line 111 - Original author: Nic Ivy Now maintained by by Fredrik Jonsson fredrik at combonet dot se
Code
function theme_site_map_display() {
$output = '';
if (variable_get('site_map_show_rss_links', 1) != 0 && module_exists('commentrss') && variable_get('commentrss_site', COMMENTRSS_SITE_FRONT_PAGE)) {
$output .= '<p><span class="rss">' . theme('site_map_feed_icon', NULL) . '</span> ' . t('Link to a content RSS feed');
$output .= '<br /><span class="rss">' . theme('site_map_feed_icon', NULL, 'comment') . '</span> ' . t('Link to a comment RSS feed');
$output .= '</p>';
}
if (variable_get('site_map_show_front', 1)) {
$output .= _site_map_front_page();
}
if (variable_get('site_map_show_blogs', 1)) {
$output .= _site_map_blogs();
}
/* $output .= _site_map_audio(); */
/* $output .= _site_map_video(); */
// Compile the books trees.
$output .= _site_map_books();
// Compile the menu trees.
$output .= _site_map_menus();
if (variable_get('site_map_show_faq', 1)) {
$output .= _site_map_faq();
}
// Compile the vocabulary trees.
$output .= _site_map_taxonomys();
// Invoke all modules and get themed HTML to be integrated into the site map.
$additional = module_invoke_all('site_map');
foreach ($additional as $themed_site_map_code) {
$output .= $themed_site_map_code;
}
$output = '<div id="site-map" class="site-map">' . $output . '</div>';
return $output;
}