function theme_feed_icon
theme_feed_icon($variables)
Returns HTML for a feed icon.
Parameters
$variables: An associative array containing:
- url: An internal system path or a fully qualified external URL of the feed.
- title: A descriptive title of the feed.
Related topics
File
- includes/theme.inc, line 2251
- The theme system, which controls the output of Drupal.
Code
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', 'width' => 16, 'height' => 16, 'alt' => $text))) { return l($image, $variables['url'], array('html' => TRUE, 'attributes' => array('class' => array('feed-icon'), 'title' => $text))); } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!theme.inc/function/theme_feed_icon/7.x