From 9d8ce8476f61acc7ff667db3ba6b83e1f24f6d93 Mon Sep 17 00:00:00 2001 From: Nathan Booker Date: Thu, 25 Feb 2021 23:10:53 -0600 Subject: [PATCH] Remove AddThis for social sharing, replace with provider sharing links --- templates/components/common/share.html | 117 +++++++++++------- .../components/products/product-view.html | 4 +- 2 files changed, 76 insertions(+), 45 deletions(-) diff --git a/templates/components/common/share.html b/templates/components/common/share.html index dee1c94340..1244506c74 100644 --- a/templates/components/common/share.html +++ b/templates/components/common/share.html @@ -1,57 +1,90 @@ {{#if settings.add_this.buttons}} -
+ {{assignVar 'encodedUrl' (encodeURI url)}} + {{assignVar 'encodedTitle' (encodeURI head.title)}} +
- -
{{/if}} {{#if settings.facebook_like_button.enabled}} diff --git a/templates/components/products/product-view.html b/templates/components/products/product-view.html index 456befb2b9..3be04e722e 100644 --- a/templates/components/products/product-view.html +++ b/templates/components/products/product-view.html @@ -249,9 +249,7 @@

components/common/wishlist-dropdown}} {{/if}}

- {{#unless is_ajax}} - {{> components/common/share}} - {{/unless}} + {{> components/common/share url=product.url}}