|
27 | 27 | $wechat = get_post_meta( get_the_ID(), 'lf_person_wechat', true );
|
28 | 28 | $website = get_post_meta( get_the_ID(), 'lf_person_website', true );
|
29 | 29 | $youtube = get_post_meta( get_the_ID(), 'lf_person_youtube', true );
|
| 30 | +$certdirectory = get_post_meta( get_the_ID(), 'lf_person_certdirectory', true ); |
30 | 31 | $image_url = get_post_meta( get_the_ID(), 'lf_person_image', true );
|
31 | 32 | $location = get_post_meta( get_the_ID(), 'lf_person_location', true );
|
32 | 33 | $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 ); ?>">
|
138 | 139 | <div class="person__social">
|
139 | 140 | <?php
|
140 | 141 | // Social Icons.
|
141 |
| - if ( $linkedin || $bluesky || $twitter || $mastodon || $github || $wechat || $website || $youtube ) : |
| 142 | + if ( $linkedin || $bluesky || $twitter || $mastodon || $github || $wechat || $website || $youtube || $certdirectory ) : |
142 | 143 | ?>
|
143 | 144 | <div class="person__social-margin">
|
144 | 145 | <?php
|
@@ -189,6 +190,12 @@ class="js-modal button-reset modal-<?php echo esc_html( $person_slug ); ?>">
|
189 | 190 | <a
|
190 | 191 | href="<?php echo esc_url( $youtube ); ?>"><?php LF_Utils::get_svg( 'social/boxed-youtube.svg' ); ?></a>
|
191 | 192 | <?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 |
192 | 199 | endif;
|
193 | 200 | ?>
|
194 | 201 | </div>
|
@@ -315,7 +322,7 @@ class="person__pronouns">(<?php echo esc_html( $pronouns ); ?>)</span>
|
315 | 322 | <div class="person__social">
|
316 | 323 | <?php
|
317 | 324 | // Social Icons.
|
318 |
| - if ( $linkedin || $bluesky || $twitter || $mastodon || $github || $wechat || $website || $youtube ) : |
| 325 | + if ( $linkedin || $bluesky || $twitter || $mastodon || $github || $wechat || $website || $youtube || $certdirectory) : |
319 | 326 | ?>
|
320 | 327 | <div class="person__social-margin">
|
321 | 328 | <?php
|
@@ -367,6 +374,12 @@ class="person__pronouns">(<?php echo esc_html( $pronouns ); ?>)</span>
|
367 | 374 | href="<?php echo esc_url( $youtube ); ?>"><?php LF_Utils::get_svg( 'social/boxed-youtube.svg' ); ?></a>
|
368 | 375 | <?php
|
369 | 376 | 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; |
370 | 383 | ?>
|
371 | 384 | </div>
|
372 | 385 | <?php endif; ?>
|
|
0 commit comments