Problem/Motivation
A site I work on would like to utilize the more share pop-up as the primary sharing mechanism but we don't want to support 100 different social media platforms many of which are niche or geographically specific. It would be great if this module enabled the customization of what platforms are shown so that a subset of the platforms could be selected.
Steps to reproduce
Proposed resolution
It would be great if the order and the enabled platforms could be added to the configuration in a way that enabled both a draggable list and a checkbox to enable or disable the platforms that show up under more.
I see that the list and order is hardcoded into the function better_social_share_platforms()
and that a twig function uses the platforms variable pulled from this to iterate over the array generated by this.
For the purposes of the primary icons there is already the ability to enable or disable services but the "pop-up" doesn't use this order. One simple way would be to program the twig template call to utilize the order and to limit the number of platforms to some fixed number.
Comments
Comment #2
sujan shrestha commentedHi Robb, thanks for the suggestion. i am planning to work on making it easier to customize the platforms listed under the "More" pop-up. The idea is to add checkboxes to enable/disable platforms and a drag feature to change the order, similar to the 'Button order' social media configuration.
Comment #3
sujan shrestha commentedDone in 1.1.8 (commit 2388a9e). The settings page has a new table, Platforms listed in the "More" popup, where you choose the platforms with checkboxes and drag them into order, like the button order. Sites that never use it keep listing every platform.