Skip to content

Commit 49d3fdc

Browse files
committed
updated board
1 parent 1fa4195 commit 49d3fdc

File tree

4 files changed

+53
-34
lines changed

4 files changed

+53
-34
lines changed

board.php

Lines changed: 42 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,11 @@
8080
<div class="col-sm-4 col-xs-4">
8181
<li class="member-details">
8282
<!--<img src="member.jpg">-->
83-
<?php the_post_thumbnail(); ?>
83+
<?php $member_url = get_post_meta( get_the_ID(), 'external_url', true ); ?>
84+
<a href="<?php echo $member_url; ?>" target="_blank"><?php the_post_thumbnail(); ?></a>
8485
<div class="member-name">
85-
<?php the_title(); ?>
86+
<?php $member_url = get_post_meta( get_the_ID(), 'external_url', true ); ?>
87+
<a href="<?php echo $member_url; ?>" target="_blank"><?php the_title(); ?></a>
8688
</div>
8789
<div class="member-position">
8890
<?php the_field('member_position'); ?>
@@ -103,42 +105,61 @@
103105

104106
<section class="join-board">
105107
<div class="container-fluid">
106-
<h1>Joining the board</h1>
108+
<?php $join_args = array(
109+
'name' => 'joining-the-board',
110+
'post-type' => 'post',
111+
'post-status' => 'publish',
112+
); ?>
113+
<?php $join_query = new WP_Query( $join_args ); ?>
114+
<?php if ( $join_query->have_posts() ) : while ( $join_query->have_posts() ) : $join_query->the_post(); ?>
115+
<h1><?php the_title(); ?></h1>
107116
<div class="row">
108117
<div class="joining-text">
109118
<div class="col-md-12">
110-
<p>Nominations for the Board of Directors may be made by the general membership at any time throughout the year by email to any Board Member</p>
111-
<p>The Board tries on an ongoing basis to create opportunities for members of the community to serve, while also ensuring stability of the Board, through expansion of the Board, by replacing a Board member whose term expires, or by volunteers from the community interested in serving</p>
119+
<p><?php the_content(); ?></p>
112120
</div>
113121
</div>
114122
</div>
123+
<?php endwhile; else : ?>
124+
<p><?php __('No post found'); ?></p>
125+
<?php endif;
126+
wp_reset_postdata(); ?>
127+
115128
<div class="row expectations-heading">
129+
<?php $expectations_args = array(
130+
'name' => 'board-expectations',
131+
'post-type' => 'post',
132+
'post-status' => 'publish',
133+
); ?>
134+
<?php $expectations_query = new WP_Query( $expectations_args ); ?>
135+
<?php if ( $expectations_query->have_posts() ) : while ( $expectations_query->have_posts() ) : $expectations_query->the_post(); ?>
116136
<div class="col-xs-12">
117-
<h2>Board Expectations</h2>
137+
<h2><?php the_title(); ?></h2>
118138
</div>
119139

120140
<div class="expectations-text-wrapper">
121-
<ul class="expectations-list list-unstyled row">
141+
<!--<ul class="expectations-list list-unstyled row">-->
122142
<div class="col-xs-12">
123-
<li class="expectations">
124-
<p>Participate in the (informal) <strong>regular meetings</strong> of Board members. Meetings are currently about 1 hour, <strong>once a month</strong>, held by Google Hangout. These meetings are for communicating and discussing <strong>current OBF operations and issues</strong>, as well as brainstorming strategic <strong>directions and initiatives</strong>.</p>
125-
</li>
126-
<li class="expectations">
127-
<p>Participate in <strong>public Board meetings</strong>, including <strong>voting in elections</strong> and on matters brought before the OBF Board for approval. Public Board meetings take place <strong>1-2 times a year </strong>via conference call, are about 1 hour in duration, and are usually scheduled in place of a Board hangout.</p>
143+
144+
<!--<li class="expectations">-->
145+
<?php the_content(); ?>
128146

129-
</li>
130-
<li class="expectations">
131-
<p>Help <strong>promote the causes and objectives</strong> of the OBF, as set and approved by the Board, such as <strong>lobbying funders, employers, and other decision makers</strong> in your network about these objectives and ways to achieve them, as well as promoting the causes of the OBF at community gatherings you attend.</p>
132-
</li>
133-
<li class="expectations">
134-
<p>Contribute to identifying strategies, opportunities, and mechanisms to better <strong>sustain the OBF</strong>, to <strong>grow its member communities</strong>, and to increase its overall <strong>diversity</strong>, including demographic diversity.</p>
135-
</li>
147+
<!--</li>-->
148+
136149
</div>
137-
</ul>
150+
<!--</ul>-->
138151
</div>
152+
<?php endwhile; else : ?>
153+
<p><?php __('No post found'); ?></p>
154+
<?php endif;
155+
wp_reset_postdata(); ?>
139156
</div>
140157
</div>
141-
</section>
158+
</section>
159+
160+
161+
162+
142163
</div>
143164

144165
<?php get_footer(); ?>

css/style-board.css

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Theme Name: obf-new
33
Author: kushinauwu
44
Description: basic revised obf homepage theme
5-
Version: 5.0.5
5+
Version: 5.0.6
66
License: GNU General Public License v2 or later
77
License URI: http://www.gnu.org/licenses/gpl-2.0.html
88
@@ -280,7 +280,7 @@ i {
280280
color: whitesmoke;
281281
}
282282

283-
.past-members .members-list .member-name {
283+
.past-members .members-list .member-name a{
284284
color: lightblue;
285285
}
286286

@@ -308,7 +308,11 @@ i {
308308
text-transform: uppercase;
309309
}
310310

311-
.expectations-list li {
311+
.expectations-text-wrapper ul{
312+
list-style: none;
313+
}
314+
315+
.expectations-text-wrapper ul li {
312316
font-family: 'Slabo 27px', serif;
313317
font-size: 20px;
314318
padding: 10px 15px;
@@ -317,12 +321,12 @@ i {
317321
text-align: justify;
318322
}
319323

320-
.expectations:nth-child(odd) {
324+
.expectations-text-wrapper ul li:nth-child(odd) {
321325
background-color: #cfffff;
322326

323327
}
324328

325-
.expectations:nth-child(even) {
329+
.expectations-text-wrapper ul li:nth-child(even) {
326330
background-color: #cccccf;
327331
}
328332

@@ -539,7 +543,7 @@ a:hover {
539543
font-size: 3.6vh;
540544
}
541545

542-
.expectations-list li {
546+
.expectations-text-wrapper ul li {
543547
font-family: 'Lato', serif;
544548
font-size: 2.5vh;
545549
padding: 2vh 2.5vh;
14 MB
Binary file not shown.

functions.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,12 @@ function obf_scripts_styles() {
1212
else if ( is_page( 'fellowships' ) ) {
1313
wp_enqueue_style('style-fellowships.css', get_template_directory_uri().'/css/style-fellowships.css',false,'1.0','all');
1414
}
15-
<<<<<<< HEAD
1615
else if ( is_page( 'board' ) ) {
17-
wp_enqueue_style('style-board.css', get_template_directory_uri().'/css/style-board.css',false,'5.0.5','all');
16+
wp_enqueue_style('style-board.css', get_template_directory_uri().'/css/style-board.css',false,'5.0.6','all');
1817
}
1918
else if ( is_page( 'meeting-minutes' ) ) {
2019
wp_enqueue_style('style-meeting-minutes.css', get_template_directory_uri().'/css/style-meeting-minutes.css',false,'1.0','all');
2120
}
22-
=======
23-
>>>>>>> ee4f0450e09b64cdfe8f8e27b780b670ef701cb1
2421

2522
else if ( is_single() ) {
2623
wp_enqueue_style('style-single.css', get_template_directory_uri().'/css/style-single.css',false,'1.0','all');
@@ -93,7 +90,6 @@ function obf_theme_setup() {
9390
);
9491
}
9592
add_action( 'init', 'create_posttype' );*/
96-
<<<<<<< HEAD
9793

9894
//basic function to edit
9995
/*function team_post_type() {
@@ -201,7 +197,5 @@ function obf_member_taxonomy() {
201197

202198

203199

204-
=======
205-
>>>>>>> ee4f0450e09b64cdfe8f8e27b780b670ef701cb1
206200

207201

0 commit comments

Comments
 (0)