This module adds social sharing buttons to your website, including options for LinkedIn, Twitter, and email, with support for many more services. It is configurable and designed to be GDPR compliant.
The Sector Social Share module — part of the Starter Kit in Sector 10 — is built on the Drupal core Block module and the Drupal contribution module: AddtoAny.
Sector Social Share includes:
- an opt-in module AddToAny share buttons module and block which is placed in the block layout when the Sector Social Share module is enabled.
- The block is placed last in the main content region and classes like "my-2" can be added, to add margins, in the block's config.
- We added three default, customisable "service buttons" with a #000 (dark) theme.
Service Buttons HTML code:
<a class="a2a_button_linkedin"></a>
<a class="a2a_button_twitter"></a>
<a class="a2a_button_email"></a>
Additional Javascript:
- a2a_config.icon_color = "#000";
Related entities and configuration
- /admin/structure/block/manage/sector_starter_addtoanysharebuttons
- /admin/config/services/addtoany
Sector permissions for AddToAny
- /admin/people/permissions#module-addtoany
Features and Functionality
- AddToAny's universal sharing button with SVG icons for many services like Facebook, Twitter, Pinterest, WhatsApp, Reddit, SMS, email and many more.
- The share menu is translated into over 50 languages
- Allows customisation globally or per block.
Further documentation:
AddtoAny module and https://www.addtoany.com/buttons/customize/drupal.
A worthy read about data privacy when using AddToAny.
TLDR: AddToAny is GDPR compliant. "By design, AddToAny does not store personal data."