{% extends "@molecules/tm-social/social-share/social-share.twig" %}
{% set share_attrs = create_attribute().setAttribute('data-network', 'sharethis') %}
{% set wrapper_class = 'mb-4' %}
{% set style = 'share' %}
{% set links = [
  {
    'url': "https://www.facebook.com/sharer/sharer.php?u=#{items.page_url|render}&title=#{items.title}",
    'title': 'Facebook',
    'share': ' Share',
    'icon_links': 'fa-facebook-square',
    'icon_share': 'fa-facebook-f',
    'class': 'facebook-link',
  },
  {
    'url': "http://twitter.com/intent/tweet?text=#{items.title}+#{items.page_url|render}",
    'title': 'Twitter',
    'share': ' Tweet',
    'icon_links': 'fa-twitter-square',
    'icon_share': 'fa-twitter',
    'class': 'twitter-link',
  },
  {
    'url': "http://pinterest.com/pin/create/link/?url=#{items.page_url|render}&amp;description=#{items.title}",
    'title': 'Pinterest',
    'share': ' Pin',
    'icon_links': 'fa-pinterest-square',
    'icon_share': 'fa-pinterest',
    'class': 'pinterest-link',
  },
  {
    'url': "#",
    'title': 'Sharethis',
    'share': ' Share',
    'icon_links': 'fa-share-alt-square',
    'icon_share': 'fa-share-alt',
    'class': 'share-link st-custom-button',
    'fa_family': 'fas',
    'attr': share_attrs,
  }
] %}
