function theme_site_map_display in Site map 5
Same name and namespace in other branches
- 6 site_map.module \theme_site_map_display()
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 242 - 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)) {
$output .= '<p><span class="rss">' . theme('site_map_feed_icon', NULL) . '</span> ' . t('This is a link to a content RSS feed');
if (module_exists('commentrss')) {
$output .= '<br /><span class="rss">' . theme('site_map_feed_icon', NULL, 'comment') . '</span> ' . t('This is a 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 custom 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 class="site-map">' . $output . '</div>';
return $output;
}