|
2 | 2 | <div class="wp-block-cover alignfull has-neutral-dark-background-color has-background-dim-100 has-background-dim"> |
3 | 3 | <div class="wp-block-cover__inner-container"> |
4 | 4 | <div class="wp-block-columns"> |
5 | | - <div class="wp-block-column three-column"> |
6 | | - <?php get_template_part( 'template-parts/featured-image', 'cropped' ); ?> |
7 | | - <?php the_title( '<h1>', '</h1>' ); ?> |
8 | | - <?php if( osi_field_check( 'pronouns' ) ) : ?> |
9 | | - <span class="member-pronouns"><?php osi_the_valid_field( 'pronouns' ); ?></span> |
| 5 | + <!-- Left Column --> |
| 6 | + <div class="wp-block-column"> |
| 7 | + <?php if (has_post_thumbnail()) : ?> |
| 8 | + <div class="member-image"> |
| 9 | + <?php the_post_thumbnail('full', array('class' => 'circular-image')); ?> |
| 10 | + </div> |
10 | 11 | <?php endif; ?> |
11 | | - <?php if( osi_field_check( 'board_position' ) ) : ?> |
12 | | - <span class="member-position"> |
13 | | - <?php osi_the_valid_field( 'board_position' ); ?> |
14 | | - </span> |
| 12 | + |
| 13 | + <h1><?php echo get_the_title(); ?></h1> |
| 14 | + |
| 15 | + <?php if(osi_field_check('pronouns')) : ?> |
| 16 | + <span class="member-pronouns"><?php osi_the_valid_field('pronouns'); ?></span> |
15 | 17 | <?php endif; ?> |
16 | 18 | </div> |
| 19 | + |
| 20 | + <!-- Right Column --> |
17 | 21 | <div class="wp-block-column"> |
18 | | - <span class="pill-taxonomy"> |
19 | | - <?php echo wp_kses_post( osi_get_single_taxonomy_terms_links( $post, 'taxonomy-status' ) ); ?> |
20 | | - </span> |
21 | | - <?php if( osi_field_check( 'proposed_by' ) ) : ?> |
22 | | - <p><?php echo __( 'Proposed by', 'osi' ); ?>: <span class="member-pronouns"><?php osi_the_valid_field( 'proposed_by' ); ?></span></p> |
| 22 | + <?php if(osi_field_check('board_position')) : ?> |
| 23 | + <span class="member-position"> |
| 24 | + <?php osi_the_valid_field('board_position'); ?> |
| 25 | + </span> |
23 | 26 | <?php endif; ?> |
24 | | - <?php if( osi_field_check( 'current_term_start_date' ) ) : ?> |
| 27 | + |
| 28 | + <?php if(osi_field_check('current_term_start_date')) : ?> |
25 | 29 | <span class="member-dates"> |
26 | 30 | <?php |
27 | | - echo __( 'Candidacy Period', 'osi' ) . ': '; |
28 | | - osi_the_valid_date_field( 'current_term_start_date' ); |
29 | | - if( osi_field_check( 'current_term_end_date' ) ) : |
| 31 | + echo __('Candidacy Period', 'osi') . ': '; |
| 32 | + osi_the_valid_date_field('current_term_start_date'); |
| 33 | + if(osi_field_check('current_term_end_date')) : |
30 | 34 | echo ' – '; |
31 | | - osi_the_valid_date_field( 'current_term_end_date' ); |
| 35 | + osi_the_valid_date_field('current_term_end_date'); |
32 | 36 | endif; |
33 | 37 | ?> |
34 | 38 | </span> |
35 | 39 | <?php endif; ?> |
36 | | - <span class="member-seat inline-list"> |
37 | | - <?php echo __( 'Type of Seat', 'osi' ) . ': ' . wp_kses_post( osi_get_single_taxonomy_terms_links( $post, 'taxonomy-seat-type' ) ); ?> |
| 40 | + |
| 41 | + <span class="member-seat"> |
| 42 | + <?php echo __('Type of Seat', 'osi') . ': ' . wp_kses_post(osi_get_single_taxonomy_terms_links($post, 'taxonomy-seat-type')); ?> |
38 | 43 | </span> |
39 | 44 | </div> |
40 | 45 | </div> |
41 | 46 | </div> |
42 | 47 | </div> |
43 | 48 | </header> |
| 49 | + |
| 50 | +<style> |
| 51 | +.member-image { |
| 52 | + margin-bottom: 1.5rem; |
| 53 | +} |
| 54 | +.member-image img.circular-image { |
| 55 | + border-radius: 50%; |
| 56 | + border: 4px solid #FFF; |
| 57 | + width: 300px; |
| 58 | + height: 300px; |
| 59 | + object-fit: cover; |
| 60 | +} |
| 61 | +.member-position, |
| 62 | +.member-dates, |
| 63 | +.member-seat { |
| 64 | + display: block; |
| 65 | + margin-bottom: 1rem; |
| 66 | +} |
| 67 | +.member-pronouns { |
| 68 | + font-family: 'Space Mono', monospace; |
| 69 | + display: inline-block; |
| 70 | + margin-top: 0.5rem; |
| 71 | +} |
| 72 | +</style> |
0 commit comments