Closed (fixed)
Project:
Ridiculously Responsive Social Sharing Buttons
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Apr 2016 at 20:28 UTC
Updated:
16 May 2016 at 23:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
adamps commentedHi thanks for pointing out the new button is available. I am happy to add it to the module.
Please read the guidelines here https://www.drupal.org/patch/submit for how to submit a patch file. The patch should add all new buttons (also looks like there is one for print) and should be against the dev version.
If we are moving to a new RRSSB library version, this would need to be thoroughly tested, and the version number referenced in this module then can be updated. However the patch to add the new buttons would be a good starting point without the new library version and I would still accept it.
FYI In future I'm hoping to move to a system where tight binding of module and library version levels isn't needed. You will see the dev version has the colours stored in the module and we can auto-generate CSS from that. I've not quite finished testing it yet
Comment #3
adamps commentedComment #4
abarpetia commentedHere is patch with whatsapp and print button.
Note: Print button will only work if we remove class="popup". I am not sure what will be the proper way to just render print button without that class.
Comment #5
adamps commentedThanks for the patch.
I think the solution for the popup is to have a new optional parameter in the buttons config named 'popup'. Set this to FALSE for print. Default it to TRUE in rrssb_settings. Check $button['popup'] in theme_rrssb_button to decide whether to add the class.
Comment #6
abarpetia commentedYes, I agree with you. It will be good to have one optional parameter to set popup class. I'll try to create one more patch with this updates.
Comment #7
adamps commented@abarpetia Thanks.
I have now committed the code that auto-generates button CSS. So the new buttons should work fine with the older 1.8 library if you do a git pull of the latest code.
Comment #9
adamps commentedOK, I've committed the part in the patch so far, with a few changes:
Please can you confirm this works for you?
We still need another patch to turn off the popup.
Comment #11
adamps commentedOK, I did the popup part too
Comment #12
abarpetia commentedNice! Tested whatsapp and print buttons, they are working for me.
Thanks