Closed (fixed)
Project:
I love this
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
28 Dec 2007 at 22:31 UTC
Updated:
18 Jan 2008 at 18:32 UTC
Jump to comment: Most recent file
Thanks for the module!
The attached patch makes the ilovethis widget themable. The reason I would like this, is that I would like to change the text in the 3 links. "I Love This" is cute, but in this case, I'd prefer to say something like "I support this." You can sortof do this with the locale module, but I've always found that kinda kludgy, and I'm not quite sure that it works right for real multi-lingual sites (as mine is).
I thought about making each of the links themable or even as settings, but I think that this is the smallest change, with the least impact, that gives complete flexibility to control the display.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 204503.patch | 6.64 KB | douggreen |
| #2 | 204503.patch | 6.64 KB | douggreen |
| #1 | 204503.patch | 6.57 KB | douggreen |
| theme-ilovethis.patch | 3.43 KB | douggreen |
Comments
Comment #1
douggreen commentedHere's an updated patch that allows a little easier theming of the theme_ilovethis_view_table. Theme functions should mostly control output display, so I've moved some of the logic that builds the rows into the invoking function. If the theme function doesn't like the header and rows, they are still free to change them.
Comment #2
douggreen commentedThis additional change won't theme the widget or the link to all people, if the user doesn't have access.
Comment #3
douggreen commenteddoh, sorry, this patch fixes the access
Comment #4
douggreen commentedcommitted
Comment #5
(not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.