You are here

social_media.settings.yml in Social media share 8

config/install/social_media.settings.yml

File

config/install/social_media.settings.yml
View source
  1. social_media:
  2. facebook_share:
  3. enable: 1
  4. text: "Facebook"
  5. api_url: "http://www.facebook.com/share.php?u=[current-page:url]&title=[current-page:title]"
  6. api_event : "href"
  7. default_img: 1
  8. weight: 1
  9. attributes : "target|_blank\nclass|facebook-share\nrel|noopener noreferrer"
  10. facebook_msg:
  11. enable: 1
  12. api_url: "FB.ui({method: 'send',link: '[current-page:url]'})"
  13. api_event : "onclick"
  14. drupalSettings: "application_id|Your Application ID"
  15. library: "social_media/facebook"
  16. text: "Facebook messenger"
  17. default_img: 1
  18. weight: 2
  19. attributes : "target|_blank\nclass|facebook-msg\nrel|noopener noreferrer"
  20. linkedin:
  21. enable: 1
  22. api_url: "http://www.linkedin.com/shareArticle?mini=true&url=[current-page:url]&title=[current-page:title]&source=[current-page:url]"
  23. api_event : "href"
  24. text: "Linkedin"
  25. default_img: 1
  26. weight: 3
  27. attributes : "target|_blank\nclass|linkedin\nrel|noopener noreferrer"
  28. twitter:
  29. enable: 1
  30. api_url: "https://twitter.com/intent/tweet?url=[current-page:url]&url=[current-page:url]&hashtags=Hashtag"
  31. api_event : "href"
  32. text: "Twitter"
  33. default_img: 1
  34. weight: 4
  35. attributes : "target|_blank\nclass|twitter\nrel|noopener noreferrer"
  36. pinterest:
  37. enable: 1
  38. api_url: "https://www.pinterest.com/pin/create/button/?url=[current-page:url]&description=[current-page:title]"
  39. api_event : "href"
  40. text: "Pinterest"
  41. default_img: 1
  42. weight: 5
  43. attributes : "target|_blank\nclass|pinterest\nrel|noopener noreferrer"
  44. whatsapp:
  45. enable: 0
  46. api_url: "https://wa.me/?text=[current-page:url]"
  47. api_event: "href"
  48. default_img: 1
  49. attributes: "class|whatsapp show-for-small-only\ndata-action|share/whatsapp/share"
  50. weight: 6
  51. email:
  52. enable: 1
  53. api_url: "mailto:?subject=[current-page:title]&body=Check out this site [current-page:url]"
  54. api_event : "href"
  55. text: "Email"
  56. default_img: 1
  57. weight: 7
  58. attributes : "class|email"
  59. print:
  60. enable: 0
  61. api_url: "window.print()"
  62. api_event : "onclick"
  63. text: "Print"
  64. default_img: 1
  65. attributes : "class|print"
  66. weight: 8
  67. langcode: en