--- D:\Downloads\theme.inc Thu Aug 31 19:53:05 2006
+++ D:\Downloads\theme_updated.inc Fri Sep 01 00:47:42 2006
@@ -917,17 +917,17 @@
/**
* Return code that emits an XML icon.
*/
-function theme_xml_icon($url) {
- if ($image = theme('image', 'misc/xml.png', t('XML feed'), t('XML feed'))) {
- return ''. $image. '';
+function theme_xml_icon($url, $alt = t('XML feed'), $title = t('XML feed'), $img = 'misc/xml.png') {
+ if ($image = theme('image', check_url($img), check_plain($alt), check_plain($title))) {
+ return ''. $image. '';
}
}
/**
* Return code that emits an feed icon.
*/
-function theme_feed_icon($url) {
- if ($image = theme('image', 'misc/feed.png', t('Syndicate content'), t('Syndicate content'))) {
+function theme_feed_icon($url, $alt = t('Syndicate content'), $title = t('Syndicate content'), $img = 'misc/feed.png') {
+ if ($image = theme('image', check_url($img), check_plain($alt), check_plain($title))) {
return ''. $image. '';
}
}