Bug 34584: Remove Twitter share button from the OPAC

This patch removes the option to share content in the OPAC via Twitter
now that Twitter doesn't exist anymore.

To test, apply the patch and go to Administration -> System preferences.

- Search for "SocialNetworks."
- The menu of options should contain only email, Facebook, and LinkedIn.
- Select all options and save.
- In the OPAC, locate a bibliographic record and view its details.
- In the right-hand sidebar, you should only see options to share via
  email, Facebook, and LinkedIn.

Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Owen Leonard 2023-08-21 16:51:59 +00:00 committed by Tomas Cohen Arazi
parent 5d3b7cf089
commit 1162629cf0
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F
3 changed files with 0 additions and 7 deletions

View file

@ -477,7 +477,6 @@ OPAC:
facebook: Facebook
linkedin: LinkedIn
email: Email
twitter: Twitter
- "social network links on the OPAC detail pages."
-

View file

@ -1594,10 +1594,6 @@ nav {
color: #4267B2;
}
#twitter {
color: #1DA1F2;
}
#linkedin {
color: #0073B0;
}

View file

@ -1090,8 +1090,6 @@
<div><a id="linkedin" href="https://www.linkedin.com/shareArticle?mini=true&amp;url=[% current_url |url %]&amp;title=[% title |url %]" title="Share on LinkedIn"><i class="fab fa-linkedin" aria-hidden="true"></i></a></div>
[% CASE "email" -%]
<div><a id="email" href="mailto:?subject=[% title |url %]&amp;body=[% title |url %]%20([% current_url |url %])" title="Share by email"><i class="fa-solid fa-envelope" aria-hidden="true"></i></a></div>
[% CASE "twitter" -%]
<div><a id="twitter" href="https://twitter.com/share?url=[% current_url|url %]&text=[% title | uri %]" class="twitter-share-button" data-count="none" data-lang="[% lang | html %]" title="Share on Twitter"><i class="fab fa-twitter" aria-hidden="true"></i></a></div>
[% END # /SWITCH network -%]
[% END # /FOREACH network %]
</div> <!-- /#social_networks -->