The following code would fix it, I would make a patch but no time.The following code would fix it, I would make a patch but no time.
The documentation for the l function (not word) can be found at the following url:
http://drupaldocs.org/api/4.6/function/l
l("<img src=\"misc/xml.png\" alt=\"XML Feed\"\>",'article/feed',array(),NULL,NULL,FALSE,TRUE)
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | article_module_feed_link_themed.patch | 868 bytes | mhutch |
| #4 | article_module_feed_link.patch | 941 bytes | jose reyero |
Comments
Comment #1
druvision commentedI've made a temporary fix by removing the "l" arround the PNG.
This causes www.example.com/article to get displayed correctly.
Can somebody review the correction and enter it into the CVS?
Thanks
Amnon
Comment #2
sami_k commentedThis is the proper fix, replace line 162 with this:
$body = theme('box', variable_get('article_recent_box_title', t('Latest Articles')), module_invoke('node', 'title_list', article_get_latest(variable_get('article_recent_display', '5')), '') . theme('more_info', l("
ng\" alt=\"XML Feed\"\>",'article/feed',array(),NULL,NULL,FALSE,TRUE)));
Comment #3
mhutch commentedEven better, use the proper theming functions. Replace line 162 with
body = theme('box', variable_get('article_recent_box_title', t('Latest Articles')), module_invoke('node', 'title_list', article_get_latest(variable_get('article_recent_display', '5')), '') . theme_xml_icon('article/feed'));Comment #4
jose reyero commentedComment #5
mhutch commentedHere's a better patch using the theme_xml_icon function instead.
Comment #6
jose reyero commentedAgreed, it is a better patch
Comment #7
JuniorZ commentedUsing the Drupal API
This is my one.
Comment #8
smartango commented.. and this is my one,
$body = theme('box', variable_get('article_recent_box_title', t('Latest Articles')), module_invoke('node', 'title_list', article_get_latest(variable_get('article_recent_display', '5')), '') . theme('more_info', l(theme_image("misc/xml.png", $alt = 'XML Feed',
'Articles Feed', NULL, TRUE), 'article/feed',NULL,NULL,NULL,FALSE,TRUE)));
I think using theme_image is better, though using configuration var is good too
Comment #9
sami_k commentedi am going to close this as we're moving to 4.7... reduce the cruft, i think the people who needed it fixed got their versions fixed.