Closed (fixed)
Project:
Drupal core
Component:
theme system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
8 Feb 2005 at 22:44 UTC
Updated:
9 Jun 2005 at 19:15 UTC
Jump to comment: Most recent file
theme('xml_icon') uses hardcoded DIVS, which is great. But what Drupal really needs is some method (and implemetations!) to allow xml icons in lists. i.e. each forum should list an icon.
This patch allows none-inline icons If Param inline is set to true, a span is returned as wrapper, otherwise the default div is returned.s
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | theme_xml_icon_allow_inline_0.patch | 507 bytes | Bèr Kessels |
| theme_xml_icon_allow_inline.patch | 862 bytes | Bèr Kessels |
Comments
Comment #1
tangent commentedWhy aren't all xml icons inline? There is no reason I can think of. Can't we just change them to span to eliminate the need for another argument?
Comment #2
Bèr Kessels commentedwe could.
But I beleive a block element should be a div and an inline should be span. Off course you can achieve this with CSS, but I would like to follow the semantics.
And a lot of XML icons are block elements. In fact: all of them areblock elements in drupal ATM. So changing that would be semantically incorrect.
Comment #3
tangent commentedYes, they are ALL currently block elements because theme_xml_icon() marks them up that way. My argument is that there is no justification for using a block level tag (DIV) for an image. If it should be displayed as a block then it will be contained in a block by the calling code. If it should not then it will not be. I still see no reason that it should be marked up with DIV.
Comment #4
Bèr Kessels commentedthis one changes it into a span;, like tangent suggests.
Comment #5
Bèr Kessels commentedstatus must be patch
Comment #6
dries commentedCommitted to HEAD.
Comment #7
(not verified) commented