You are here

function _site_map_front_page in Site map 6

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

Returns front page details.

1 call to _site_map_front_page()
theme_site_map_display in ./site_map.module
Return a themed site map.

File

./site_map.module, line 207
Original author: Nic Ivy Now maintained by by Fredrik Jonsson fredrik at combonet dot se

Code

function _site_map_front_page() {
  $output = '';
  $class = '';
  $title = t('Front page');
  $output = l(t("Front page of %sn", array(
    "%sn" => variable_get('site_name', 'Drupal'),
  )), '<front>', array(
    'html' => TRUE,
  ));
  if (variable_get('site_map_show_rss_links', 1) != 0) {
    $rss_link = theme('site_map_feed_icon', variable_get('site_map_rss_front', 'rss.xml'));
    if (module_exists('commentrss') && variable_get('commentrss_site', COMMENTRSS_SITE_FRONT_PAGE)) {
      $rss_link .= ' ' . theme('site_map_feed_icon', 'crss', 'comment');
    }
    if (variable_get('site_map_show_rss_links', 1) == 1) {
      $output .= ' ' . $rss_link;
    }
    else {
      $class = ' sitemap-rss-left';
      $output = $rss_link . ' ' . $output;
    }
  }
  return theme('site_map_box', $title, $output, 'sitemap-front' . $class);
}