From 7bb3a57d21c9957cc47d75f1646715a8779182f4 Mon Sep 17 00:00:00 2001 From: Chris Abraham Date: Tue, 3 Dec 2024 10:38:54 -0800 Subject: [PATCH] Add Golden Kubestronaut capability Signed-off-by: Chris Abraham --- .../wp-mu-plugins/lf-mu/admin/partials/cpts.php | 2 +- .../themes/cncf-twenty-two/components/people-item.php | 9 +++++++-- .../cncf-twenty-two/images/map-markers/person-golden.svg | 1 + .../cncf-twenty-two/includes/shortcodes/people-map.php | 7 +++++++ .../cncf-twenty-two/source/js/on-demand/people-map.js | 8 +++++++- .../cncf-twenty-two/source/scss/components/_people.scss | 4 ++++ 6 files changed, 27 insertions(+), 4 deletions(-) create mode 100644 web/wp-content/themes/cncf-twenty-two/images/map-markers/person-golden.svg diff --git a/web/wp-content/mu-plugins/wp-mu-plugins/lf-mu/admin/partials/cpts.php b/web/wp-content/mu-plugins/wp-mu-plugins/lf-mu/admin/partials/cpts.php index d1512a22b..9ddc27f34 100644 --- a/web/wp-content/mu-plugins/wp-mu-plugins/lf-mu/admin/partials/cpts.php +++ b/web/wp-content/mu-plugins/wp-mu-plugins/lf-mu/admin/partials/cpts.php @@ -180,7 +180,7 @@ 'singular_name' => __( 'Person' ), 'all_items' => __( 'All People' ), ), - 'public' => false, + 'public' => true, 'has_archive' => false, 'show_in_nav_menus' => false, 'show_in_rest' => true, diff --git a/web/wp-content/themes/cncf-twenty-two/components/people-item.php b/web/wp-content/themes/cncf-twenty-two/components/people-item.php index 4c28ffbde..bc230b6f1 100644 --- a/web/wp-content/themes/cncf-twenty-two/components/people-item.php +++ b/web/wp-content/themes/cncf-twenty-two/components/people-item.php @@ -36,8 +36,13 @@ $show_modal = isset( $args['show_profile'] ) && $args['show_profile'] ? true : false; $show_logos = isset( $args['show_logos'] ) && $args['show_logos'] ? true : false; + +$extra_classes = ''; +if ( has_term( 'golden-kubestronaut', 'lf-person-category' ) ) { + $extra_classes = 'golden-kubestronaut'; +} ?> -
+
"> ?>