| Versions | |
|---|---|
| 4.7 – 5 | theme_feed_icon($url) |
| 6 | theme_feed_icon( |
| 7 | theme_feed_icon($variables) |
Return code that emits an feed icon.
includes/
<?php
function theme_feed_icon($url) {
if ($image = theme('image', 'misc/feed.png', t('Syndicate content'), t('Syndicate content'))) {
return '<a href="' . check_url($url) . '" class="feed-icon">' . $image . '</a>';
}
}
?>