Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Social Menu & Social Media Icons: Add Threads support #31873

Merged
merged 4 commits into from
Jul 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion projects/plugins/jetpack/_inc/social-logos/social-logos.css

Large diffs are not rendered by default.

9 changes: 8 additions & 1 deletion projects/plugins/jetpack/_inc/social-logos/social-logos.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Binary file modified projects/plugins/jetpack/_inc/social-logos/social-logos.woff2
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: enhancement

Social Menu & Social Media Icons: Add support for the Threads service.
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ function jetpack_social_menu_social_links_icons() {
'strava.com' => 'strava',
'stumbleupon.com' => 'stumbleupon',
'telegram.me' => 'telegram',
'threads.net' => 'threads',
'tiktok.com' => 'tiktok',
'tumblr.com' => 'tumblr',
'twitch.tv' => 'twitch',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,11 @@ Genericons
content: "\f223";
}

/* Threads */
.jetpack-social-navigation-genericons a[href*="threads.net"]:before {
content: "\f10d";
}

/* Tumblr */
.jetpack-social-navigation-genericons a[href*="tumblr.com"]:before {
content: "\f214";
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions projects/plugins/jetpack/modules/widgets/social-icons.php
Original file line number Diff line number Diff line change
Expand Up @@ -675,6 +675,11 @@ public function get_supported_icons() {
'icon' => 'telegram',
'label' => 'Telegram',
),
array(
'url' => array( 'threads.net' ),
'icon' => 'threads',
'label' => 'Threads',
),
array(
'url' => array( 'tiktok.com' ),
'icon' => 'tiktok',
Expand Down
2 changes: 1 addition & 1 deletion projects/plugins/jetpack/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
"resize-observer-polyfill": "1.5.1",
"sass": "1.38.1",
"semver": "7.5.2",
"social-logos": "2.5.3",
"social-logos": "2.5.4",
"swiper": "6.7.0",
"tinycolor2": "1.4.2",
"turndown": "7.1.2",
Expand Down
Loading