-
Notifications
You must be signed in to change notification settings - Fork 0
/
template-team.php
81 lines (67 loc) · 2.6 KB
/
template-team.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?php /* Template name: Team */ get_header();
include( locate_template('components/page-intro.php') );
$current_page = 'team';
include( locate_template('components/team-nav.php') );
// vars
$leadership = get_field('leadership');
$advisors = get_field('advisors');
$volunteers = get_field('volunteers');
$interns = get_field('interns'); ?>
<div class="wt_face-grid large">
<h1>Leadership</h1>
<p>Governing Board and Staff</p>
<?php foreach( $leadership as $post ) {
setup_postdata( $post );
$name = get_the_title($post);
$profile_picture = get_field('profile_picture');
$location = get_field('contributor_location');
$bio = get_field('bio');
$title = get_field('title');
// we might want to change the name of this
include( locate_template('components/member-profile.php') );
} wp_reset_postdata(); ?>
<h1>Advisory Board</h1>
<p>Field experts who lend their knowledge on a volunteer basis</p>
<?php foreach( $advisors as $post ) {
setup_postdata( $post );
$name = get_the_title($post);
$profile_picture = get_field('profile_picture');
$location = get_field('contributor_location');
$bio = get_field('bio');
$title = get_field('title');
// we might want to change the name of this
include( locate_template('components/member-profile.php') );
} wp_reset_postdata(); ?>
<h1>Core Volunteers</h1>
<p>Individuals who contribute their skillsets to core projects</p>
<?php foreach( $volunteers as $post ) {
setup_postdata( $post );
$name = get_the_title($post);
$profile_picture = get_field('profile_picture');
$location = get_field('contributor_location');
$bio = get_field('bio');
$title = get_field('title');
// we might want to change the name of this
include( locate_template('components/member-profile.php') );
} wp_reset_postdata(); ?>
<h1>Interns</h1>
<p>Students who have completed a semester-long internships for credit</p>
<?php foreach( $interns as $post ) {
setup_postdata( $post );
$name = get_the_title($post);
$profile_picture = get_field('profile_picture');
$location = get_field('contributor_location');
$bio = get_field('bio');
$title = get_field('title');
// we might want to change the name of this
include( locate_template('components/member-profile.php') );
} wp_reset_postdata(); ?>
</div><!-- /.wt_face-grid -->
<?php
// define variables for donate CTA at bottom of layout
$donate_banner_header = get_field('donate_banner_header');
$donate_banner_copy = get_field('donate_banner_copy');
$donate_banner_form_embed = get_field('donate_banner_form_embed');
// load donate CTA
//include( locate_template('components/donate-banner.php') );
get_footer(); ?>