diff --git a/web/wp-content/mu-plugins/custom/lfevents/admin/class-lfevents-admin.php b/web/wp-content/mu-plugins/custom/lfevents/admin/class-lfevents-admin.php index fe9cdcfa..853f1ed4 100755 --- a/web/wp-content/mu-plugins/custom/lfevents/admin/class-lfevents-admin.php +++ b/web/wp-content/mu-plugins/custom/lfevents/admin/class-lfevents-admin.php @@ -397,6 +397,9 @@ public function speaker_custom_column_data( $column, $post_id ) { case 'twitter_url': echo get_post_meta( $post_id, 'lfes_speaker_twitter', true ) ? '' : ''; break; + case 'bluesky_url': + echo get_post_meta( $post_id, 'lfes_speaker_bluesky', true ) ? '' : ''; + break; case 'github_url': echo get_post_meta( $post_id, 'lfes_speaker_github', true ) ? '' : ''; break; @@ -419,14 +422,15 @@ public function speaker_custom_column( $columns ) { unset( $columns['date'] ); unset( $columns['author'] ); // add new columns. - $columns['featured_image'] = 'Speaker Image'; + $columns['featured_image'] = 'Image'; $columns['job_title'] = 'Title'; $columns['company'] = 'Company'; - $columns['company_logo'] = 'Company Logo'; - $columns['linkedin_url'] = 'Linkedin URL'; - $columns['twitter_url'] = 'X URL'; - $columns['github_url'] = 'GitHub URL'; - $columns['website_url'] = 'Website URL'; + $columns['company_logo'] = 'Logo'; + $columns['linkedin_url'] = 'Linkedin'; + $columns['twitter_url'] = 'X'; + $columns['bluesky_url'] = 'Bluesky'; + $columns['github_url'] = 'GitHub'; + $columns['website_url'] = 'Website'; // add back in old columns. $columns['author'] = $author; $columns['date'] = $date; diff --git a/web/wp-content/mu-plugins/custom/lfevents/admin/partials/sidebars.php b/web/wp-content/mu-plugins/custom/lfevents/admin/partials/sidebars.php index 96952b22..9c579150 100644 --- a/web/wp-content/mu-plugins/custom/lfevents/admin/partials/sidebars.php +++ b/web/wp-content/mu-plugins/custom/lfevents/admin/partials/sidebars.php @@ -433,6 +433,17 @@ 'default_value' => '', 'placeholder' => __( 'https://twitter.com/CloudNativeFdn' ), ), + array( + 'type' => 'text', + 'id' => 'bluesky', + 'data_type' => 'meta', + 'data_key' => 'bluesky', + 'label' => __( 'Bluesky' ), + 'register_meta' => true, + 'ui_border_top' => true, + 'default_value' => '', + 'placeholder' => __( 'https://bsky.app/profile/cncf.io' ), + ), array( 'type' => 'text', 'id' => 'github', @@ -897,6 +908,17 @@ 'default_value' => '', 'placeholder' => __( 'https://twitter.com/username' ), ), + array( + 'type' => 'text', + 'id' => 'bluesky', + 'data_type' => 'meta', + 'data_key' => 'bluesky', + 'label' => __( 'Bluesky' ), + 'register_meta' => true, + 'ui_border_top' => false, + 'default_value' => '', + 'placeholder' => __( 'https://bsky.app/profile/cncf.io' ), + ), array( 'type' => 'text', 'id' => 'github', diff --git a/web/wp-content/plugins/speakers-block-2/includes/speaker-block.php b/web/wp-content/plugins/speakers-block-2/includes/speaker-block.php index 10532d78..45fc2c8f 100644 --- a/web/wp-content/plugins/speakers-block-2/includes/speaker-block.php +++ b/web/wp-content/plugins/speakers-block-2/includes/speaker-block.php @@ -14,6 +14,7 @@ $company_logo = get_post_meta( $speaker_id, 'lfes_speaker_company_logo', true ); $linkedin = get_post_meta( $speaker_id, 'lfes_speaker_linkedin', true ); $twitter = get_post_meta( $speaker_id, 'lfes_speaker_twitter', true ); +$bluesky = get_post_meta( $speaker_id, 'lfes_speaker_bluesky', true ); $github = get_post_meta( $speaker_id, 'lfes_speaker_github', true ); $website = get_post_meta( $speaker_id, 'lfes_speaker_website', true ); $content = get_the_content(); @@ -177,7 +178,7 @@
@@ -192,6 +193,14 @@ + + + + "> get_template_part( 'template-parts/svg/twitter' ); echo ''; } + if ( $bluesky ) { + echo '
  • '; + get_template_part( 'template-parts/svg/bluesky' ); + echo '
  • '; + } if ( $linkedin ) { echo '
  • '; get_template_part( 'template-parts/svg/linkedin' ); diff --git a/web/wp-content/themes/lfevents/singular.php b/web/wp-content/themes/lfevents/singular.php index 57170e3c..689bff1f 100755 --- a/web/wp-content/themes/lfevents/singular.php +++ b/web/wp-content/themes/lfevents/singular.php @@ -295,6 +295,7 @@ class="event-footer-newsletter__title">
  • '; } + if ( $bluesky ) { + echo '
  • '; + get_template_part( 'template-parts/svg/bluesky' ); + echo '
  • '; + } if ( $github ) { echo '
  • '; get_template_part( 'template-parts/svg/github' ); diff --git a/web/wp-content/themes/lfevents/src/scss/modules/_non-event-footer.scss b/web/wp-content/themes/lfevents/src/scss/modules/_non-event-footer.scss index 416149b2..c8abebe5 100644 --- a/web/wp-content/themes/lfevents/src/scss/modules/_non-event-footer.scss +++ b/web/wp-content/themes/lfevents/src/scss/modules/_non-event-footer.scss @@ -31,10 +31,13 @@ align-items: center; &.s-tw:hover { - background-color: #46d4fe; + background-color: #5d5d5d; + } + &.s-bs:hover { + background-color: #1083fe; } &.s-li:hover { - background-color: #419cca; + background-color: #0a66c2; } &.s-yt:hover { background-color: #a72b1d; diff --git a/web/wp-content/themes/lfevents/template-parts/svg/bluesky.php b/web/wp-content/themes/lfevents/template-parts/svg/bluesky.php new file mode 100644 index 00000000..67320931 --- /dev/null +++ b/web/wp-content/themes/lfevents/template-parts/svg/bluesky.php @@ -0,0 +1,10 @@ + + \ No newline at end of file