function _site_map_audio in Site map 6
Same name and namespace in other branches
- 8 site_map.module \_site_map_audio()
- 5 site_map.module \_site_map_audio()
- 6.2 site_map.module \_site_map_audio()
- 7 site_map.module \_site_map_audio()
Returns audio content if audio module is enabled.
File
- ./
site_map.module, line 284 - Original author: Nic Ivy Now maintained by by Fredrik Jonsson fredrik at combonet dot se
Code
function _site_map_audio() {
$output = '';
$class = '';
if (module_exists('audio')) {
$title = t('Audio');
$output = l(t('Audio content'), 'audio');
if (variable_get('site_map_show_rss_links', 1) != 0) {
$rss_link = theme('site_map_feed_icon', 'audio/feed');
if (variable_get('site_map_show_rss_links', 1) == 1) {
$output .= ' ' . $rss_link;
}
else {
$class = ' sitemap-rss-left';
$output = $rss_link . ' ' . $output;
}
}
$output = theme('site_map_box', $title, $output, 'sitemap-audio' . $class);
}
return $output;
}