function _site_map_audio in Site map 7
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()
- 6 site_map.module \_site_map_audio()
Render the latest maps for audio.
Return value
string Returns HTML string of site map for audio.
File
- ./
site_map.module, line 351 - site_map.module
Code
function _site_map_audio() {
$output = '';
$class = array();
$options = array();
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', array(
'url' => 'audio/feed',
'name' => 'audio content',
));
if (variable_get('site_map_show_rss_links', 1) == 1) {
$output .= ' ' . $rss_link;
}
else {
$class[] = 'site-map-rss-left';
$output = $rss_link . ' ' . $output;
}
}
_site_map_set_option($options, 'site_map_show_titles', 1, 1, 'show_titles', TRUE);
$class[] = 'site-map-box-audio';
$attributes = array(
'class' => $class,
);
$output = theme('site_map_box', array(
'title' => $title,
'content' => $output,
'attributes' => $attributes,
'options' => $options,
));
}
return $output;
}