-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage-wwp-crew.php
192 lines (150 loc) · 6.82 KB
/
page-wwp-crew.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
<?php
/* Template Name: Winter Wonder Program Crew */
get_header();
get_template_part("components/sections/featured-image");
?>
<link rel="stylesheet" href="<?php bloginfo('template_url');?>/css/winterwonder.css">
<section class="page-content winterwonder">
<?php if(!isset($wp)) { return; }
$sidebar_menus = sb_get_sidebar_menus();
$sidebar_content = sb_get_sidebar_content();
$show_sidebar = $sidebar_menus || $sidebar_content;
?>
<div class="row">
<?php if($show_sidebar) { ?>
<div class="large-3 columns sidebar">
<?php foreach($sidebar_menus as $menu_title => $menu) { ?>
<h3><?php echo esc_html($menu_title); ?></h3>
<?php echo $menu; ?>
<?php } ?>
<?php if($sidebar_content) { ?>
<div>
<?php echo $sidebar_content; ?>
</div>
<?php } ?>
</div>
<div class="large-9 columns">
<?php } else { ?>
<div class="small-12 columns">
<?php } ?>
<h2>Production Team</h2>
<ul class="small-block-grid-1 medium-block-grid-4">
<?php
global $post;
$args = array(
'numberposts' => -1,
'post_type' => 'f1_staffgrid_cpt',
'f1_staffgrid_tax' => 'production-crew', // Department Taxonomy (per site).
'meta_key' => 'last_name',
'orderby' => 'meta_value',
//'post__in' => array( 2, 5, 12, 14, 20 );, // Use ID's in an array for specific ordering.
'order' => 'ASC'
);
$staffgrid = get_posts( $args );
foreach( $staffgrid as $post ) : setup_postdata($post); ?>
<li>
<a data-remodal-target="modal-<?php the_ID(); ?>" style="text-align:center">
<!-- Photo -->
<div class="f1_mentor_photo_container">
<?php if(has_post_thumbnail()) {
the_post_thumbnail('staff_grid');
} else { }
?>
</div>
<div class="f1_mentor_summary_name"><strong><?php the_field( "first_name" ); ?> <?php the_field( "last_name" ); ?></strong></div>
<div class="f1_mentor_summary_title"><small><?php if(get_field( "title" )) : the_field( "title" ); endif; ?></small></div>
</a>
<!-- Remodal -->
<div class="remodal" data-remodal-id="modal-<?php the_ID();?>">
<div class="row">
<div class="medium-4 columns">
<div class="f1_mentor_details_photo_container">
<?php if(has_post_thumbnail()) {
the_post_thumbnail();
} else { }
?>
</div>
<div class="f1_mentor_details_social_container">
<?php if(get_field( "phone" )) : echo('Phone: '); the_field( "phone" ); endif; ?></br>
<?php if(get_field( "email_address" )) : echo('<a href="mailto:'); the_field( "email_address"); echo('">Email '); the_field( "first_name" ); echo('</a></br>'); endif; ?>
<?php if(get_field( "twitter_url" )) : echo('<a href="'); the_field( "twitter_url" ); echo('">Twitter</a>'); endif; ?>
<?php if(get_field( "facebook_url" )) : echo('<a href="'); the_field( "facebook_url" ); echo('">Facebook</a>'); endif; ?>
<?php if(get_field( "linkedin_irl" )) : echo('<a href="'); the_field( "linkedin_url" ); echo('">LinkedIn</a>'); endif; ?>
<?php if(get_field( "instagram_url" )) : echo('<a href="'); the_field( "instagram_url" ); echo('">Instagram</a>'); endif; ?>
</div>
</div>
<div class="medium-8 columns">
<p class="f1_mentor_details_name"><strong><?php the_field( "first_name" ); ?> <?php the_field( "last_name" ); ?></strong></br>
<span class="f1_mentor_summary_title"><small> <?php if(get_field( "title" )) : the_field( "title" ); endif; ?></small></span></p>
<div class="f1_mentor_details_bio">
<?php if(get_field( "staff_bio" )) : the_field( "staff_bio" ); endif; ?>
</div>
</div>
</div>
</div>
</li>
<?php endforeach; wp_reset_postdata();?>
</ul>
<h2>Featured Performers</h2>
<ul class="small-block-grid-1 medium-block-grid-4">
<?php
global $post;
$args = array(
'numberposts' => -1,
'post_type' => 'f1_staffgrid_cpt',
'f1_staffgrid_tax' => 'featured-performers', // Department Taxonomy (per site).
'meta_key' => 'last_name',
'orderby' => 'meta_value',
//'post__in' => array( 2, 5, 12, 14, 20 );, // Use ID's in an array for specific ordering.
'order' => 'ASC'
);
$staffgrid = get_posts( $args );
foreach( $staffgrid as $post ) : setup_postdata($post); ?>
<li>
<a data-remodal-target="modal-<?php the_ID(); ?>" style="text-align:center">
<!-- Photo -->
<div class="f1_mentor_photo_container">
<?php if(has_post_thumbnail()) {
the_post_thumbnail('staff_grid');
} else { }
?>
</div>
<div class="f1_mentor_summary_name"><strong><?php the_field( "first_name" ); ?> <?php the_field( "last_name" ); ?></strong></div>
<div class="f1_mentor_summary_title"><small><?php if(get_field( "title" )) : the_field( "title" ); endif; ?></small></div>
</a>
<!-- Remodal -->
<div class="remodal" data-remodal-id="modal-<?php the_ID();?>">
<div class="row">
<div class="medium-4 columns">
<div class="f1_mentor_details_photo_container">
<?php if(has_post_thumbnail()) {
the_post_thumbnail();
} else { }
?>
</div>
<div class="f1_mentor_details_social_container">
<?php if(get_field( "phone" )) : echo('Phone: '); the_field( "phone" ); endif; ?></br>
<?php if(get_field( "email_address" )) : echo('<a href="mailto:'); the_field( "email_address"); echo('">Email '); the_field( "first_name" ); echo('</a></br>'); endif; ?>
<?php if(get_field( "twitter_url" )) : echo('<a href="'); the_field( "twitter_url" ); echo('">Twitter</a>'); endif; ?>
<?php if(get_field( "facebook_url" )) : echo('<a href="'); the_field( "facebook_url" ); echo('">Facebook</a>'); endif; ?>
<?php if(get_field( "linkedin_irl" )) : echo('<a href="'); the_field( "linkedin_url" ); echo('">LinkedIn</a>'); endif; ?>
<?php if(get_field( "instagram_url" )) : echo('<a href="'); the_field( "instagram_url" ); echo('">Instagram</a>'); endif; ?>
</div>
</div>
<div class="medium-8 columns">
<p class="f1_mentor_details_name"><strong><?php the_field( "first_name" ); ?> <?php the_field( "last_name" ); ?></strong></br>
<span class="f1_mentor_summary_title"><small> <?php if(get_field( "title" )) : the_field( "title" ); endif; ?></small></span></p>
<div class="f1_mentor_details_bio">
<?php if(get_field( "staff_bio" )) : the_field( "staff_bio" ); endif; ?>
</div>
</div>
</div>
</div>
</li>
<?php endforeach; wp_reset_postdata();?>
</ul>
</div>
</div>
</div>
</section>
<?php get_footer();?>