theme_feed_icon

Versions
mediamosa-21
theme_feed_icon($variables)

Return code that emits an feed icon.

Parameters

$variables An associative array containing:

  • url: The url of the feed.
  • title: A descriptive title of the feed.

Related topics

Code

includes/theme.inc, line 1889

<?php
function theme_feed_icon($variables) {
  $text = t('Subscribe to @feed-title', array('@feed-title' => $variables['title']));
  if ($image = theme('image', array('path' => 'misc/feed.png', 'alt' => $text))) {
    return '<a href="' . check_url($variables['url']) . '" title="' . $text . '" class="feed-icon">' . $image . '</a>';
  }
}
?>