|
1 | 1 | <?php |
2 | 2 | /** |
3 | | - * Template part for displaying board memeber post type content |
| 3 | + * Template part for displaying board member post type content |
4 | 4 | * |
5 | 5 | * @link https://codex.wordpress.org/Template_Hierarchy |
6 | 6 | * |
7 | 7 | * @package osi |
8 | 8 | */ |
9 | 9 |
|
10 | 10 | ?> |
11 | | - <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
12 | | - <?php get_template_part( 'template-parts/header-board-member' ); ?> |
13 | | - |
14 | | - <div class="entry-content post--content"> |
15 | | - <?php the_content(); ?> |
16 | | - </div><!-- .entry-content --> |
17 | | - <section class="alignwide email-block"> |
18 | | - <?php // get_template_part( 'template-parts/nav-postname-pager' ); ?> |
19 | | - <?php // get_template_part( 'template-parts/email-block' ); ?> |
20 | | - </section> |
21 | | - |
22 | | - </article><!-- #post-<?php the_ID(); ?> --> |
| 11 | +<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
| 12 | + <div class="board-member-layout"> |
| 13 | + <!-- Include the header for the board member --> |
| 14 | + <div class="left-column"> |
| 15 | + <?php get_template_part('template-parts/header-board-member'); ?> |
| 16 | + </div> |
| 17 | + |
| 18 | + <!-- Right Column for the post content --> |
| 19 | + <div class="right-column"> |
| 20 | + <div class="entry-content post--content"> |
| 21 | + <?php the_content(); ?> |
| 22 | + </div><!-- .entry-content --> |
| 23 | + </div> |
| 24 | + </div> |
| 25 | +</article><!-- #post-<?php the_ID(); ?> --> |
| 26 | + |
| 27 | +<style> |
| 28 | +.board-member-layout { |
| 29 | + display: flex; |
| 30 | +} |
| 31 | + |
| 32 | +.left-column { |
| 33 | + flex: 0 0 30%; /* Fixed width of 30% */ |
| 34 | + padding: 20px; /* Optional padding */ |
| 35 | + text-align: center; /* Center content */ |
| 36 | +} |
| 37 | + |
| 38 | +.right-column { |
| 39 | + flex: 1; /* Takes the remaining space */ |
| 40 | + overflow-y: auto; /* Makes it scrollable if content overflows */ |
| 41 | + padding: 20px; /* Optional padding */ |
| 42 | +} |
| 43 | + |
| 44 | +.member-image { |
| 45 | + margin-bottom: 1.5rem; |
| 46 | +} |
| 47 | + |
| 48 | +.member-image img.circular-image { |
| 49 | + border-radius: 50%; |
| 50 | + border: 4px solid #FFF; |
| 51 | + width: 300px; /* adjust as needed */ |
| 52 | + height: 300px; |
| 53 | + object-fit: cover; |
| 54 | +} |
| 55 | + |
| 56 | +.member-position, |
| 57 | +.member-dates, |
| 58 | +.member-seat, |
| 59 | +.member-term-item { |
| 60 | + display: block; |
| 61 | + margin-bottom: 1rem; |
| 62 | +} |
| 63 | + |
| 64 | +.member-pronouns { |
| 65 | + font-family: 'Space Mono', monospace; |
| 66 | + display: inline-block; |
| 67 | +} |
| 68 | +</style> |
0 commit comments