Skip to content

Commit 82be9b3

Browse files
committed
Add CertDirectory as a social link for people (#915)
Signed-off-by: Chris Abraham <[email protected]>
1 parent 2c787d4 commit 82be9b3

File tree

3 files changed

+29
-2
lines changed

3 files changed

+29
-2
lines changed

web/wp-content/mu-plugins/wp-mu-plugins/lf-mu/admin/partials/sync-people.php

+3
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ function geocode_location( $id ) {
122122
if ( property_exists( $p, 'mastodon' ) ) {
123123
$params['meta_input']['lf_person_mastodon'] = $p->mastodon;
124124
}
125+
if ( property_exists( $p, 'certdirectory' ) ) {
126+
$params['meta_input']['lf_person_certdirectory'] = $p->certdirectory;
127+
}
125128
if ( property_exists( $p, 'github' ) ) {
126129
$params['meta_input']['lf_person_github'] = $p->github;
127130
}

web/wp-content/themes/cncf-twenty-two/components/people-item.php

+15-2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
$wechat = get_post_meta( get_the_ID(), 'lf_person_wechat', true );
2828
$website = get_post_meta( get_the_ID(), 'lf_person_website', true );
2929
$youtube = get_post_meta( get_the_ID(), 'lf_person_youtube', true );
30+
$certdirectory = get_post_meta( get_the_ID(), 'lf_person_certdirectory', true );
3031
$image_url = get_post_meta( get_the_ID(), 'lf_person_image', true );
3132
$location = get_post_meta( get_the_ID(), 'lf_person_location', true );
3233
$languages = get_the_terms( get_the_ID(), 'lf-language' );
@@ -138,7 +139,7 @@ class="js-modal button-reset modal-<?php echo esc_html( $person_slug ); ?>">
138139
<div class="person__social">
139140
<?php
140141
// Social Icons.
141-
if ( $linkedin || $bluesky || $twitter || $mastodon || $github || $wechat || $website || $youtube ) :
142+
if ( $linkedin || $bluesky || $twitter || $mastodon || $github || $wechat || $website || $youtube || $certdirectory ) :
142143
?>
143144
<div class="person__social-margin">
144145
<?php
@@ -189,6 +190,12 @@ class="js-modal button-reset modal-<?php echo esc_html( $person_slug ); ?>">
189190
<a
190191
href="<?php echo esc_url( $youtube ); ?>"><?php LF_Utils::get_svg( 'social/boxed-youtube.svg' ); ?></a>
191192
<?php
193+
endif;
194+
if ( $certdirectory ) :
195+
?>
196+
<a
197+
href="<?php echo esc_url( $certdirectory ); ?>"><?php LF_Utils::get_svg( 'social/boxed-certdirectory.svg' ); ?></a>
198+
<?php
192199
endif;
193200
?>
194201
</div>
@@ -315,7 +322,7 @@ class="person__pronouns">(<?php echo esc_html( $pronouns ); ?>)</span>
315322
<div class="person__social">
316323
<?php
317324
// Social Icons.
318-
if ( $linkedin || $bluesky || $twitter || $mastodon || $github || $wechat || $website || $youtube ) :
325+
if ( $linkedin || $bluesky || $twitter || $mastodon || $github || $wechat || $website || $youtube || $certdirectory) :
319326
?>
320327
<div class="person__social-margin">
321328
<?php
@@ -367,6 +374,12 @@ class="person__pronouns">(<?php echo esc_html( $pronouns ); ?>)</span>
367374
href="<?php echo esc_url( $youtube ); ?>"><?php LF_Utils::get_svg( 'social/boxed-youtube.svg' ); ?></a>
368375
<?php
369376
endif;
377+
if ( $certdirectory ) :
378+
?>
379+
<a
380+
href="<?php echo esc_url( $certdirectory ); ?>"><?php LF_Utils::get_svg( 'social/boxed-certdirectory.svg' ); ?></a>
381+
<?php
382+
endif;
370383
?>
371384
</div>
372385
<?php endif; ?>
Loading

0 commit comments

Comments
 (0)