I wish to add the standard twitter icons for the web intents, so I added a web intents field to views, but there are no classes (and there is no way to add separate classes) as all the web intents come together, so I can't achieve this.
Here's the code produced when addind the field to views... I need classes in those span tags e.g., class="web-intents-reply" or something...
<div class="views-field views-field-web-intents"><span class="field-content"><span><a href="https://twitter.com/intent/tweet?in_reply_to=439049743285907456">Reply</a></span> <span><a href="https://twitter.com/intent/retweet?tweet_id=439049743285907456">Retweet</a></span> <span><a href="https://twitter.com/intent/favorite?tweet_id=439049743285907456">Favorite</a></span></span> </div>
I know you're not supporting views themeing, but I don't believe it's possible at the moment unless I'm missing something. One way I tried was to rewrite the field.. but there's no option to print a single intent, just all of them.
Help appreciated :)
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | twitter-n2207963-3-7.x-5.x.patch | 1.25 KB | damienmckenna |
Comments
Comment #1
benjarlett commentedtwitter_web_intents module gives this functionality:
which solves it for me.. but it'd be better if the twitter module just did something simmilar out of the box as it comes very close...
Comment #2
nicole_vz commentedThis is done by editing the "twitter_views_field_handlers.inc" file. Lines 109 to 115 is the function you need to edit. It's a super simple change and I would submit a patch, but I don't know how to do that.
Comment #3
damienmckennaSo something like this?