function theme_site_map_box in Site map 7
Same name and namespace in other branches
- 6.2 site_map.theme.inc \theme_site_map_box()
 - 6 site_map.module \theme_site_map_box()
 
Returns HTML for a themed site map box.
@codingStandardsIgnoreStart
Parameters
array $variables: An associative array containing:
- title: The subject of the box.
 - content: The content of the box.
 - attributes: Optional attributes for the box.
 
Return value
string Returns sitemap display in DIV.
8 theme calls to theme_site_map_box()
- _site_map_audio in ./
site_map.module  - Render the latest maps for audio.
 - _site_map_blogs in ./
site_map.module  - Render the latest blogs.
 - _site_map_books in ./
site_map.module  - Render the latest maps for books.
 - _site_map_faq in ./
site_map.module  - Render the latest maps for faq.
 - _site_map_front_page in ./
site_map.module  - Menu callback for the site map front page.
 
File
- includes/
site_map.theme.inc, line 43  - site_map.theme.inc
 
Code
function theme_site_map_box($variables) {
  // @codingStandardsIgnoreEnd
  $title = $variables['title'];
  $content = $variables['content'];
  $attributes = $variables['attributes'];
  $options = $variables['options'];
  $output = '';
  if (!empty($title) || !empty($content)) {
    $output .= '<div' . drupal_attributes($attributes) . '>';
    if (!empty($title) && isset($options['show_titles'])) {
      $output .= '<h2 class="title">' . $title . '</h2>';
    }
    if (!empty($content)) {
      $output .= '<div class="content">' . $content . '</div>';
    }
    $output .= '</div>';
  }
  return $output;
}