1+ <?php
2+ /**
3+ * Template part for displaying board member header details.
4+ *
5+ * @package osi
6+ */
7+ ?>
18<header class="entry-header cover--header no-thumbnail">
29 <div class="wp-block-cover alignfull has-neutral-dark-background-color has-background-dim-100 has-background-dim">
310 <div class="wp-block-cover__inner-container">
4- <div class="board-member-layout ">
5- <!-- Left Column -->
6- <div class="left- column">
7- <?php if (has_post_thumbnail ()) : ?>
11+ <div class="wp-block-columns ">
12+ <!-- Left Column: Image and Title -->
13+ <div class="wp-block- column" style="text-align: center; ">
14+ <?php if ( has_post_thumbnail () ) : ?>
815 <div class="member-image">
9- <?php the_post_thumbnail ('full ' , array ('class ' => 'circular-image ' ) ); ?>
16+ <?php the_post_thumbnail ( 'full ' , array ( 'class ' => 'circular-image ' ) ); ?>
1017 </div>
1118 <?php endif ; ?>
1219
1320 <h1><?php echo get_the_title (); ?> </h1>
1421
15- <?php if ( osi_field_check ('pronouns ' ) ) : ?>
16- <span class="member-pronouns"><?php osi_the_valid_field ('pronouns ' ); ?> </span>
22+ <?php if ( osi_field_check ( 'pronouns ' ) ) : ?>
23+ <span class="member-pronouns"><?php osi_the_valid_field ( 'pronouns ' ); ?> </span>
1724 <?php endif ; ?>
1825 </div>
1926
20- <!-- Right Column -->
21- <div class="right-column">
27+ <!-- Right Column: Additional Details -->
28+ <div class="wp-block-column">
29+ <?php if ( osi_field_check ( 'board_position ' ) ) : ?>
30+ <span class="member-position">
31+ <?php osi_the_valid_field ( 'board_position ' ); ?>
32+ </span>
33+ <?php endif ; ?>
2234 <span class="pill-taxonomy">
2335 <?php echo wp_kses_post ( osi_get_single_taxonomy_terms_links ( $ post , 'taxonomy-status ' ) ); ?>
2436 </span>
25- <?php if ( osi_field_check ( 'proposed_by ' ) ) : ?>
26- <p><?php echo __ ( 'Proposed by ' , 'osi ' ); ?> : <span class="member-pronouns"><?php osi_the_valid_field ( 'proposed_by ' ); ?> </span></p>
27- <?php endif ; ?>
28- <?php if (osi_field_check ('board_position ' )) : ?>
29- <span class="member-position">
30- <?php osi_the_valid_field ('board_position ' ); ?>
31- </span>
37+ <?php if ( osi_field_check ( 'proposed_by ' ) ) : ?>
38+ <p>
39+ <?php echo __ ( 'Proposed by ' , 'osi ' ); ?> :
40+ <span class="member-pronouns"><?php osi_the_valid_field ( 'proposed_by ' ); ?> </span>
41+ </p>
3242 <?php endif ; ?>
3343
34- <?php if ( osi_field_check ('current_term_start_date ' ) ) : ?>
44+ <?php if ( osi_field_check ( 'current_term_start_date ' ) ) : ?>
3545 <span class="member-dates">
3646 <?php
37- echo __ ('Candidacy Period ' , 'osi ' ) . ': ' ;
38- osi_the_valid_date_field ('current_term_start_date ' );
39- if ( osi_field_check ('current_term_end_date ' ) ) :
47+ echo __ ( 'Candidacy Period ' , 'osi ' ) . ': ' ;
48+ osi_the_valid_date_field ( 'current_term_start_date ' );
49+ if ( osi_field_check ( 'current_term_end_date ' ) ) :
4050 echo ' – ' ;
41- osi_the_valid_date_field ('current_term_end_date ' );
51+ osi_the_valid_date_field ( 'current_term_end_date ' );
4252 endif ;
4353 ?>
4454 </span>
4555 <?php endif ; ?>
4656
4757 <span class="member-seat">
48- <?php echo __ ('Type of Seat ' , 'osi ' ) . ': ' . wp_kses_post (osi_get_single_taxonomy_terms_links ($ post , 'taxonomy-seat-type ' ) ); ?>
58+ <?php echo __ ( 'Type of Seat ' , 'osi ' ) . ': ' . wp_kses_post ( osi_get_single_taxonomy_terms_links ( $ post , 'taxonomy-seat-type ' ) ); ?>
4959 </span>
5060
51- <!-- Add back the term item -->
52- <?php if (osi_field_check ('term_item ' )) : ?>
61+ <?php if ( osi_field_check ( 'term_item ' ) ) : ?>
5362 <span class="member-term-item">
54- <?php osi_the_valid_field ('term_item ' ); ?>
63+ <?php osi_the_valid_field ( 'term_item ' ); ?>
5564 </span>
5665 <?php endif ; ?>
5766 </div>
6170</header>
6271
6372<style>
64- .board-member-layout {
65- display: flex;
66- }
67-
68- .left-column {
69- flex: 0 0 30%; /* Fixed width of 30% */
70- padding: 20px; /* Optional padding */
71- text-align: center; /* Center content */
72- }
73-
74- .right-column {
75- flex: 1; /* Takes the remaining space */
76- overflow-y: auto; /* Makes it scrollable if content overflows */
77- padding: 20px; /* Optional padding */
78- }
79-
8073.member-image {
8174 margin-bottom: 1.5rem;
8275}
83-
8476.member-image img.circular-image {
8577 border-radius: 50%;
8678 border: 4px solid #FFF;
8779 width: 300px; /* adjust as needed */
8880 height: 300px;
8981 object-fit: cover;
9082}
91-
9283.member-position,
9384.member-dates,
9485.member-seat,
9586.member-term-item {
9687 display: block;
9788 margin-bottom: 1rem;
9889}
99-
10090.member-pronouns {
10191 font-family: 'Space Mono', monospace;
10292 display: inline-block;
10393}
104- </style>
94+ </style>
0 commit comments