You are here

function theme_views_rss_feed_icon in Views RSS 7

Same name and namespace in other branches
  1. 6 views/views_rss_views_fields.theme.inc \theme_views_rss_feed_icon()

Theme function for feed icon.

File

views/views_rss_views_fields.theme.inc, line 120

Code

function theme_views_rss_feed_icon($variables) {
  $url = $variables['0'];
  $title = $variables['1'];
  $icon = $variables['2'];
  if ($image = theme('image', array(
    'path' => $icon,
    'width' => t('Download RSS Feed'),
    'height' => $title,
  ))) {
    return '<a href="' . check_url($url) . '" class="feed-icon">' . $image . '</a>';
  }
}