| Versionen | |
|---|---|
| drupal6 – drupal7 | theme_feed_icon($url, $title) |
Return code that emits an feed icon.
$url The url of the feed.
$title A descriptive title of the feed.
includes/
<?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>';
}
}
?>
Kommentare
Kommentar hinzufügen