Skip to content

Commit c06d0da

Browse files
author
Ariel Jolo
committed
trying new layout
1 parent 2046256 commit c06d0da

File tree

1 file changed

+50
-21
lines changed

1 file changed

+50
-21
lines changed

themes/osi/template-parts/header-board-member.php

Lines changed: 50 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,42 +2,71 @@
22
<div class="wp-block-cover alignfull has-neutral-dark-background-color has-background-dim-100 has-background-dim">
33
<div class="wp-block-cover__inner-container">
44
<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>
1011
<?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>
1517
<?php endif; ?>
1618
</div>
19+
20+
<!-- Right Column -->
1721
<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>
2326
<?php endif; ?>
24-
<?php if( osi_field_check( 'current_term_start_date' ) ) : ?>
27+
28+
<?php if(osi_field_check('current_term_start_date')) : ?>
2529
<span class="member-dates">
2630
<?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')) :
3034
echo '';
31-
osi_the_valid_date_field( 'current_term_end_date' );
35+
osi_the_valid_date_field('current_term_end_date');
3236
endif;
3337
?>
3438
</span>
3539
<?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')); ?>
3843
</span>
3944
</div>
4045
</div>
4146
</div>
4247
</div>
4348
</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

Comments
 (0)