You are here

function theme_site_map_feed_icon in Site map 5

Same name and namespace in other branches
  1. 6.2 site_map.theme.inc \theme_site_map_feed_icon()
  2. 6 site_map.module \theme_site_map_feed_icon()
  3. 7 includes/site_map.theme.inc \theme_site_map_feed_icon()
6 theme calls to theme_site_map_feed_icon()
theme_site_map_display in ./site_map.module
_site_map_audio in ./site_map.module
_site_map_blogs in ./site_map.module
Render the latest blog authors
_site_map_front_page in ./site_map.module
_site_map_taxonomy_tree in ./site_map.module
Render taxonomy tree

... See full list

File

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

Code

function theme_site_map_feed_icon($url, $type = 'node') {
  switch ($type) {
    case 'node':
      $output = theme('image', drupal_get_path('module', 'site_map') . '/feed-small.png', t('Syndicate content'), t('Syndicate content'));
      if ($url) {
        $output = '<a href="' . check_url($url) . '" class="feed-link">' . $output . '</a>';
      }
      break;
    case 'comment':
      $output = theme('image', drupal_get_path('module', 'site_map') . '/feed-small-comment.png', t('Syndicate comments'), t('Syndicate comments'));
      if ($url) {
        $output = '<a href="' . check_url($url) . '" class="feed-link">' . $output . '</a>';
      }
      break;
  }
  return $output;
}