Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Regards,
i was trying to modify the presentation of the buttons on share this, which is not that complicated since we have css overwriting, however my project request that some buttons show a different text, per instance, "email to a friend" instead of just "email", it turns that the function name is get_button_HTML, i can't overwrite this code, and since what this does is return html we probably want to add as a drupal theme function.
wait for an answer, in the mean time I'm going to create a patch for this.
thanks. :)
Comment | File | Size | Author |
---|---|---|---|
#17 | 1335836-sharethis-theme-17.patch | 3.9 KB | Chaulky |
#14 | 1335836_12-sharethis-use-theme.patch | 7.36 KB | cweagans |
#12 | 1335836-share-this-theme-9.patch | 5.2 KB | RobLoach |
#9 | 1335836-share-this-theme-9.patch | 5.2 KB | Chaulky |
#8 | 1335836-share-this-theme-8.patch | 5.03 KB | Chaulky |
Comments
Comment #1
RobLoachAgreed!
Comment #2
tatewaky CreditAttribution: tatewaky commentedHi,
as i said i have create a patch to fix this, would be greate to add in the next version, or probably you want to improve this code, thanks in advance
Comment #3
aaron.r.carlton CreditAttribution: aaron.r.carlton commentedI re-implemented this patch against the current dev version and also change the name of the theme function to theme_sharethis to make the namespace a little nicer. It would be really nice to get this in soon, as I'm planning to submit another patch for views integration in 7.x for a project I'm working on.
Comment #4
aaron.r.carlton CreditAttribution: aaron.r.carlton commentedNew patch calls the theme function with keyed args and extracts args from variables array explicitly.
Comment #5
theunraveler CreditAttribution: theunraveler commentedRe-rolled for latest dev.
Comment #6
theunraveler CreditAttribution: theunraveler commented[Dupe]
Comment #7
theunraveler CreditAttribution: theunraveler commentedSorry, missed a couple lines.
Comment #8
Chaulky CreditAttribution: Chaulky commentedRe-rolled patch from #7 against latest dev. Applies cleanly to commit 607fa49e.
Note: Missed a variable name change in this patch, will post correction shortly.
Comment #9
Chaulky CreditAttribution: Chaulky commentedFixed patch from #8 to include variable rename.
Also, tested and everything seems to be working just fine.
Comment #10
ahimsauziHi Chaulky, did your patch made it to the 7.x.2.4 version?
Comment #11
Chaulky CreditAttribution: Chaulky commentedI haven't seen any commit notices from the maintainer, so I'm assuming it hasn't.
Comment #12
RobLoachThis still good?
Comment #13
Chaulky CreditAttribution: Chaulky commentedStill applies cleanly and seems to work
Comment #14
cweagansReroll.
Comment #15
MXT#14 doesn't apply against latest dev version:
Comment #16
MXTmoreover, there is a small error in #14:
in this part:
the line:
should be:
(notice the case for $Title should be $title)
Comment #17
Chaulky CreditAttribution: Chaulky commentedRe-rolled with case fix from #16
Comment #18
Gaofengzzz CreditAttribution: Gaofengzzz commentedThanks very much @tatewaky for your patch.
After more than two weeks, with no particular objections or further issues on this ticket, I went ahead and got it committed against the 7.x-2.x branch at 8d85432.
I allowed myself to mark this issue as fixed for now, but feel free to re-open it, or post a new ticket, at any time if you have any further objections with this patch (we would surely be happy to hear your feedback).
Please let me know if you would have any further comments, feedback, questions, issues, objections, suggestions or concerns on any aspects in the commits or this ticket in general, I would be glad to provide more information or explain in more details.
Special thanks to @Chaulky, @MXT, @aaron.r.carlton, @theunraveler for re-implementing, Re-rolling, testing this patch.
Thanks again to everyone for your help, reviews, feedback and comments on this issue.
Cheers!