From 7abe3f88769c15717ad580aa96d059c17e3649f2 Mon Sep 17 00:00:00 2001 From: "ivan.hrytsai" Date: Wed, 9 Apr 2025 12:55:14 +0300 Subject: [PATCH] 13223-BlueSky-new-social-sharing-button --- Model/Config/Source/SocialNetworks.php | 3 ++- view/frontend/templates/addthis-js.phtml | 3 +++ view/frontend/web/css/blog-m.css | 1 + view/frontend/web/css/blog-new.css | 1 + view/frontend/web/images/social/bluesky.svg | 4 ++++ 5 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 view/frontend/web/images/social/bluesky.svg diff --git a/Model/Config/Source/SocialNetworks.php b/Model/Config/Source/SocialNetworks.php index 90209373..6fd03500 100644 --- a/Model/Config/Source/SocialNetworks.php +++ b/Model/Config/Source/SocialNetworks.php @@ -21,7 +21,8 @@ public function toOptionArray() ['value' => 'Facebook', 'label' => 'Facebook'], ['value' => 'Twitter', 'label' => 'X (Twitter)'], ['value' => 'Pinterest', 'label' => 'Pinterest'], - ['value' => 'LinkedIn', 'label' => 'LinkedIn'] + ['value' => 'LinkedIn', 'label' => 'LinkedIn'], + ['value' => 'BlueSky', 'label' => 'BlueSky'] ]; } diff --git a/view/frontend/templates/addthis-js.phtml b/view/frontend/templates/addthis-js.phtml index 0be7b20e..599ed5ea 100644 --- a/view/frontend/templates/addthis-js.phtml +++ b/view/frontend/templates/addthis-js.phtml @@ -32,6 +32,9 @@ case 'linkedin': u =reverse('" . strrev('https://www.linkedin.com/sharing/share-offsite/?url=') . "') + url; break; + case 'bluesky': + u =reverse('" . strrev('https://bsky.app/intent/compose?text=') . "') + url; + break; } if (u) { window.open (u, null, 'width=600,height=400'); diff --git a/view/frontend/web/css/blog-m.css b/view/frontend/web/css/blog-m.css index 6c5dc53c..2a6d22c5 100644 --- a/view/frontend/web/css/blog-m.css +++ b/view/frontend/web/css/blog-m.css @@ -237,6 +237,7 @@ .post-sharing-top .icon-wrapper.icon-twitter {background-color: rgb(0, 0, 0);} .post-sharing-top .icon-wrapper.icon-pinterest {background-color: rgb(203, 32, 39);} .post-sharing-top .icon-wrapper.icon-linkedin {background-color: rgb(2, 136, 209);} +.post-sharing-top .icon-wrapper.icon-bluesky {background-color: rgb(32, 139, 254);} .post-sharing-top .icon-wrapper .icon {line-height: 16px;height: 16px;width: 16px;display: inline-block;overflow: hidden;vertical-align: top;} .post-sharing-top .icon-wrapper .icon svg {width: 16px;height: 16px;line-height: 16px;} .post-sharing-top .icon-wrapper:hover {transform: translateY(-2px);} diff --git a/view/frontend/web/css/blog-new.css b/view/frontend/web/css/blog-new.css index cbb7eb48..a86f512d 100755 --- a/view/frontend/web/css/blog-new.css +++ b/view/frontend/web/css/blog-new.css @@ -147,6 +147,7 @@ body.blog-page { .post-sharing-bottom .share-elements .icon-wrapper.icon-twitter {background-color: rgb(0, 0, 0);} .post-sharing-bottom .share-elements .icon-wrapper.icon-pinterest {background-color: rgb(203, 32, 39);} .post-sharing-bottom .share-elements .icon-wrapper.icon-linkedin {background-color: rgb(2, 136, 209);} +.post-sharing-bottom .icon-wrapper.icon-bluesky {background-color: rgb(32, 139, 254);} .post-sharing-bottom .share-elements .icon-wrapper .icon {line-height: 48px;height: 48px;width: 48px;display: inline-block;overflow: hidden;vertical-align: top;} .post-sharing-bottom .share-elements .icon-wrapper .label {font-size: 13px;line-height: 48px;height: 48px;color: #ffffff;display: inline-block;padding: 0 15px 0 3px;vertical-align: top;} .post-sharing-bottom .share-elements .icon-wrapper:hover {transform: translateY(-4px);} diff --git a/view/frontend/web/images/social/bluesky.svg b/view/frontend/web/images/social/bluesky.svg new file mode 100644 index 00000000..5f33e417 --- /dev/null +++ b/view/frontend/web/images/social/bluesky.svg @@ -0,0 +1,4 @@ + + Share on Bluesky + + \ No newline at end of file