Skip to content

Commit

Permalink
Add bluesky to people profiles
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Abraham <[email protected]>
  • Loading branch information
cjyabraham committed Nov 5, 2024
1 parent 5e49fb3 commit b671e7d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,9 @@ function geocode_location( $id ) {
if ( property_exists( $p, 'linkedin' ) ) {
$params['meta_input']['lf_person_linkedin'] = $p->linkedin;
}
if ( property_exists( $p, 'bluesky' ) ) {
$params['meta_input']['lf_person_bluesky'] = $p->bluesky;
}
if ( property_exists( $p, 'twitter' ) ) {
$params['meta_input']['lf_person_twitter'] = $p->twitter;
}
Expand Down
17 changes: 15 additions & 2 deletions web/wp-content/themes/cncf-twenty-two/components/people-item.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
$toc_role = get_post_meta( get_the_ID(), 'lf_person_toc_role', true );
$tab_role = get_post_meta( get_the_ID(), 'lf_person_tab_role', true );
$linkedin = get_post_meta( get_the_ID(), 'lf_person_linkedin', true );
$bluesky = get_post_meta( get_the_ID(), 'lf_person_bluesky', true );
$twitter = get_post_meta( get_the_ID(), 'lf_person_twitter', true );
$mastodon = get_post_meta( get_the_ID(), 'lf_person_mastodon', true );
$github = get_post_meta( get_the_ID(), 'lf_person_github', true );
Expand Down Expand Up @@ -137,7 +138,7 @@ class="js-modal button-reset modal-<?php echo esc_html( $person_slug ); ?>">
<div class="person__social">
<?php
// Social Icons.
if ( $linkedin || $twitter || $mastodon || $github || $wechat || $website || $youtube ) :
if ( $linkedin || $bluesky || $twitter || $mastodon || $github || $wechat || $website || $youtube ) :
?>
<div class="person__social-margin">
<?php
Expand All @@ -146,6 +147,12 @@ class="js-modal button-reset modal-<?php echo esc_html( $person_slug ); ?>">
<a
href="<?php echo esc_url( $linkedin ); ?>"><?php LF_Utils::get_svg( 'social/boxed-linkedin.svg' ); ?></a>
<?php
endif;
if ( $bluesky ) :
?>
<a
href="<?php echo esc_url( $bluesky ); ?>"><?php LF_Utils::get_svg( 'social/boxed-bluesky.svg' ); ?></a>
<?php
endif;
if ( $twitter ) :
?>
Expand Down Expand Up @@ -308,7 +315,7 @@ class="person__pronouns">(<?php echo esc_html( $pronouns ); ?>)</span>
<div class="person__social">
<?php
// Social Icons.
if ( $linkedin || $twitter || $mastodon || $github || $wechat || $website || $youtube ) :
if ( $linkedin || $bluesky || $twitter || $mastodon || $github || $wechat || $website || $youtube ) :
?>
<div class="person__social-margin">
<?php
Expand All @@ -318,6 +325,12 @@ class="person__pronouns">(<?php echo esc_html( $pronouns ); ?>)</span>
href="<?php echo esc_url( $linkedin ); ?>"><?php LF_Utils::get_svg( 'social/boxed-linkedin.svg' ); ?></a>
<?php
endif;
if ( $bluesky ) :
?>
<a
href="<?php echo esc_url( $bluesky ); ?>"><?php LF_Utils::get_svg( 'social/boxed-bluesky.svg' ); ?></a>
<?php
endif;
if ( $twitter ) :
?>
<a
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b671e7d

Please sign in to comment.