theme_feed_icon
Definition
theme_feed_icon($url, $title)
includes/theme.inc, line 1487
Description
Return code that emits an feed icon.
Parameters
$url The url of the feed.
$title A descriptive title of the feed.
Related topics
| Name | Description |
|---|---|
| Default theme implementations | Functions and templates that present output to the user, and can be implemented by themes. |
Code
<?php
function theme_feed_icon($url, $title) {
if ($image = theme('image', 'misc/feed.png', t('Syndicate content'), $title)) {
return '<a href="'. check_url($url) .'" class="feed-icon">'. $image .'</a>';
}
}
?> 