Closed (fixed)
Project:
Social media presence On The Web
Version:
7.x-1.2
Component:
Code
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
17 Oct 2012 at 07:31 UTC
Updated:
10 Dec 2012 at 21:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
c31ck commentedPatch that adds the $delta to the theme function and adds a more specific class.
Comment #2
jarune commentedComment #3
jenlamptonI don't think the delta is necessary, can't we just use the service to identify which one is which? I could see adding a first and last, as well as service. But is knowing which is 3 important? Let me know if I'm wrong here :)
Comment #4
c31ck commentedIn my use case, knowing which is 3 was important :). I needed to apply some specific CSS to the third element in a row. I could have used the service name to identify that element, but if the order of the services changes then my CSS would no longer apply to the third element.
Apart from that, adding the service name too would be a nice addition.
Comment #5
jenlamptonOkay, let's do both. But since we're now getting very Drupalish by adding all these crazy classes, let's create a $classes variable and pass that in, instead of just the delta.
Comment #6
jenlamptonSomething more like this.
Comment #7
jenlamptonminor bugfix, and a version for D6 too. Now committed. Thanks for your help on this :)