function theme_site_map_box in Site map 6.2
Same name and namespace in other branches
- 6 site_map.module \theme_site_map_box()
- 7 includes/site_map.theme.inc \theme_site_map_box()
Return a themed site map box.
Parameters
string $title: The subject of the box.
string $content: The content of the box.
string $class: Optional extra class for the box.
Return value
string A string containing the box output.
8 theme calls to theme_site_map_box()
- _site_map_audio in ./
site_map.module - Returns audio content if audio module exists.
- _site_map_blogs in ./
site_map.module - Render the latest blog authors.
- _site_map_books in ./
site_map.module - Render books.
- _site_map_faq in ./
site_map.module - Returns themed faq if faq module exists.
- _site_map_front_page in ./
site_map.module - Returns themed front page link.
File
- ./
site_map.theme.inc, line 33 - Site map theme functions.
Code
function theme_site_map_box($title, $content, $class = '') {
$output = '';
if ($title || $content) {
$class = $class ? 'site-map-box ' . $class : 'site-map-box';
$output .= '<div class="' . $class . '">';
if ($title) {
$output .= '<h2 class="title">' . $title . '</h2>';
}
if ($content) {
$output .= '<div class="content">' . $content . '</div>';
}
$output .= '</div>';
}
return $output;
}