Skip to content

Commit

Permalink
add Bluesky to social media fields.
Browse files Browse the repository at this point in the history
See #3468.
  • Loading branch information
boonebgorges committed Dec 18, 2024
1 parent d04de41 commit e8bbbbf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions wp-content/themes/openlab/lib/member-funcs.php
Original file line number Diff line number Diff line change
Expand Up @@ -1886,6 +1886,10 @@ function openlab_social_media_fields() {
'title' => 'Behance',
'field_id' => 0,
],
'bluesky' => [
'title' => 'Bluesky',
'field_id' => 0,
],
'cuny-academic-commons' => [
'title' => 'CUNY Academic Commons',
'field_id' => 0,
Expand Down Expand Up @@ -2094,6 +2098,11 @@ function openlab_format_social_media_field( $value, $slug ) {
$text = $value;
} else {
switch ( $slug ) {
case 'bluesky' :
$do_link = true;
$url = 'https://bsky.app/profile/' . $sanitize_cb( $value );
break;

case 'cuny-academic-commons' :
$do_link = true;
$url = 'https://commons.gc.cuny.edu/members/' . $sanitize_cb( $value ) . '/';
Expand Down

0 comments on commit e8bbbbf

Please sign in to comment.