You are here

function _site_map_video in Site map 7

Same name and namespace in other branches
  1. 8 site_map.module \_site_map_video()
  2. 5 site_map.module \_site_map_video()
  3. 6.2 site_map.module \_site_map_video()
  4. 6 site_map.module \_site_map_video()

Render the latest maps for video.

Return value

string Returns HTML string of site map for video.

File

./site_map.module, line 390
site_map.module

Code

function _site_map_video() {
  $output = '';
  $class = array();
  $options = array();
  if (module_exists('video')) {
    $title = t('Video');
    $output = l(t('Video content'), 'video');
    if (variable_get('site_map_show_rss_links', 1) != 0) {
      $rss_link = theme('site_map_feed_icon', array(
        'url' => 'video/feed',
        'name' => 'video 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-video';
    $attributes = array(
      'class' => $class,
    );
    $output = theme('site_map_box', array(
      'title' => $title,
      'content' => $output,
      'attributes' => $attributes,
      'options' => $options,
    ));
  }
  return $output;
}