| Versions | |
|---|---|
| 4.7 – 5 | theme_feed_icon($url) |
| 6 | theme_feed_icon( |
| 7 | theme_feed_icon($variables) |
Returns HTML for a feed icon.
$variables An associative array containing:
drupal/
<?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 l($image, $variables['url'], array('html' => TRUE, 'attributes' => array('class' => array('feed-icon'), 'title' => $text)));
}
}
?>